Yassa 1.2.0
dotnet add package Yassa --version 1.2.0
NuGet\Install-Package Yassa -Version 1.2.0
<PackageReference Include="Yassa" Version="1.2.0" />
<PackageVersion Include="Yassa" Version="1.2.0" />
<PackageReference Include="Yassa" />
paket add Yassa --version 1.2.0
#r "nuget: Yassa, 1.2.0"
#:package Yassa@1.2.0
#addin nuget:?package=Yassa&version=1.2.0
#tool nuget:?package=Yassa&version=1.2.0
Yassa
Yet another server-specific settings API wrapper for EXILED.
Key Features
- Fluent builders for all option types enables declarative configuration through method chaining, making settings definitions both readable and maintainable.
- Numeric IDs have been replaced with human-readable string IDs to eliminate the magic numbers. The
OptionIdentifiersRegistryensures that persistent numeric IDs are mapped correctly, maintaining stability across server restarts. - Seamless integration with other EXILED plugins that using SSS.
How to Install
Put Yassa.dll under the release tab into %appdata%\EXILED\Plugins (Windows) or ~/.config/EXILED/Plugins (Linux) folder.
Usage Example
Here's an example of how to register settings using Yassa
OptionNode node = new OptionNodeBuilder()
.SetHeader("My honest option node")
.SetHint("Option node hint")
.AddTextInputOption(o => o
.SetCustomId("YourPlugin.NicknameContent")
.SetLabel("Custom Nickname")
.SetCharacterLimit(50)
.SetPlaceholder("Your nickname here..."))
.AddButtonOption(o => o
.SetCustomId("YourPlugin.Confirm")
.SetLabel("Save Changes")
.SetText("Confirm")
.OnClicked(OnConfirmButtonClicked))
.Build();
OptionsService.Register(node);
private void OnConfirmButtonClicked(Player player, ButtonOption button)
{
player.CustomName = player.GetStringValue("YourPlugin.NicknameContent");
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 is compatible. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Yassa 1.2.0
What's Changed
- Added silent error mode for value retrieval methods.
`GetStringValue`, `GetNumberValue`, and `GetBooleanValue` now accept an optional `silent` argument (default: false).
When `true`, method returns a type-appropriate default value instead of throwing an exception.
- A new `FallbackValue` property has been added to `TextInputOption`.