コード例 #1
0
ファイル: WorldCommands.cs プロジェクト: Vilder50/SharpCraft
 /// <summary>
 /// Changes the default gamemode players are in when they spawn for the first time
 /// </summary>
 /// <param name="gamemode">the new default gamemode</param>
 public void DefaultGamemode(ID.Gamemode gamemode)
 {
     ForFunction.AddCommand(new DefaultGamemodeCommand(gamemode));
 }
コード例 #2
0
 /// <summary>
 /// Changes the selected players gamemode
 /// </summary>
 /// <param name="player">the <see cref="BaseSelector"/> to use</param>
 /// <param name="mode">the gamemode to change to</param>
 public void Gamemode(BaseSelector player, ID.Gamemode mode)
 {
     ForFunction.AddCommand(new GamemodeCommand(player, mode));
 }