public string Execute( [CustomSuggestions(nameof(GetCharacterNameSuggestions))] string playerName) { if (ServerPlayerAccessSystem.SetWhiteListEntry(playerName, isEnabled: false)) { return($"{playerName} removed from the whitelist"); } return($"{playerName} is not found in the whitelist"); }
public string Execute( [CustomSuggestions(nameof(GetCharacterNameSuggestions))] string playerName) { if (ServerPlayerAccessSystem.SetWhiteListEntry(playerName, isEnabled: true)) { return ($"{playerName} added to the whitelist (please don't forget to enable the whitelist if you want to use it and still didn't done it)"); } return($"{playerName} is already in the whitelist"); }