public string GameRule(Player player, GameRulesEnum rule, bool value) { player.Level.SetGameRule(rule, value); player.Level.BroadcastGameRules(); return($"{player.Username} set {rule.ToString().ToLower()} to {value.ToString().ToLower()}."); }
public string GameRule(Player player, GameRulesEnum rule) { return($"{rule.ToString().ToLower()}={player.Level.GetGameRule(rule).ToString().ToLower()}."); }