예제 #1
0
 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()}.");
 }
예제 #2
0
 public string GameRule(Player player, GameRulesEnum rule)
 {
     return($"{rule.ToString().ToLower()}={player.Level.GetGameRule(rule).ToString().ToLower()}.");
 }