public Admin(CommandManager c) { c.AddTab(GameRuleComplete, "gamerule"); c.AddAdminCommand(MassPardon, "masspardon"); c.AddAdminCommand(KillJava, "killjava"); c.AddAdminCommand(NickCommand, "nick"); c.AddAdminCommand(Say, "say"); c.AddAdminCommand(Say2, "say2"); c.AddAdminCommand(Kick, "kick"); c.AddAdminCommand(Ban, "ban"); c.AddAdminCommand(BanIP, "ban-ip", "banip"); c.AddAdminCommand(CleanBannedRegions, "cleanregionsbanned"); c.AddAdminCommand(VanillaCommands, "give"); c.AddAdminCommand(VanillaCommands, "enchant"); c.AddAdminCommand(VanillaCommands, "difficulty"); c.AddAdminCommand(VanillaCommands, "gamerule"); c.AddAdminCommand(VanillaCommands, "spawnpoint"); c.AddAdminCommand(VanillaCommands, "clear"); c.AddAdminCommand(VanillaCommands, "gamemode"); c.AddAdminCommand(VanillaCommands, "effect"); c.AddAdminCommand(VanillaCommands, "scoreboard"); c.AddAdminCommand(VanillaCommands, "weather"); c.AddAdminCommand(VanillaCommands, "toggledownfall"); c.AddAdminCommand(VanillaCommands, "setidletimeout"); c.AddAdminCommand(VanillaCommands, "op", "deop"); c.AddAdminCommand(VanillaCommands, "achievement"); c.AddAdminCommand(VanillaCommands, "blockdata"); c.AddAdminCommand(VanillaCommands, "clone"); c.AddAdminCommand(VanillaCommands, "defaultgamemode"); c.AddAdminCommand(VanillaCommands, "execute"); c.AddAdminCommand(VanillaCommands, "fill"); c.AddAdminCommand(VanillaCommands, "particle"); c.AddAdminCommand(VanillaCommands, "playsound"); c.AddAdminCommand(VanillaCommands, "setblock"); c.AddAdminCommand(VanillaCommands, "summon"); c.AddAdminCommand(VanillaCommands, "title"); c.AddAdminCommand(VanillaLoad, "vanillaload"); c.AddAdminCommand(VanillaUnload, "vanillaunload"); c.AddAdminCommand(VanillaStop, "vanillarestart"); c.AddAdminCommand(AllBack, "allback"); c.AddAdminCommand(OldRestart, null, "restart", "shutdown", "stop"); c.AddAdminCommand(ProxyStop, "proxystop"); c.AddAdminCommand((player, cmd, iarg) => { Threads.DebugThreads(); }, "debugthreads"); c.AddAdminCommand((player, cmd, iarg) => { player.TellSystem(Chat.Pink, "New Usage: /ban 30 username Reason for ban"); }, null, "ban30"); c.AddAdminCommand(VanillaSuspend, "vanillastop"); c.AddAdminCommand(VanillaResume, "vanillastart"); c.AddAdminCommand(Possess, "possess", "poss"); c.AddAdminCommand(Slots, "slots"); c.AddAdminCommand(Flush, "flush"); c.AddAdminCommand(Mode, "mode", "gm", "m"); c.AddAdminCommand(Teleport, "tp", "go"); c.AddAdminCommand(Crash, "crash"); c.AddAdminCommand((player, cmd, offset) => { if (cmd.Length != 4) { throw new UsageException("/ee effectID amplification duration"); } var ee = new EntityEffect(player.EntityID, (PlayerEffects)int.Parse(cmd [1]), int.Parse(cmd [2]), int.Parse(cmd [3])); player.Queue.Queue(ee); player.TellSystem(Chat.Purple, ee.ToString()); }, "ee"); #if DEBUG c.AddCommand((player, cmd, offset) => { var steer = new Steer(); steer.Action = Steer.Actions.Unmount; player.FromClient(steer); }, "steer"); #endif }
public Admin(CommandManager c) { c.AddTab(GameRuleComplete, "gamerule"); c.AddAdminCommand(MassPardon, "masspardon"); c.AddAdminCommand(KillJava, "killjava"); c.AddAdminCommand(NickCommand, "nick"); c.AddAdminCommand(Say, "say"); c.AddAdminCommand(Say2, "say2"); c.AddAdminCommand(Kick, "kick"); c.AddAdminCommand(Ban, "ban"); c.AddAdminCommand(BanIP, "ban-ip", "banip"); c.AddAdminCommand(CleanBannedRegions, "cleanregionsbanned"); c.AddAdminCommand(VanillaCommands, "give"); c.AddAdminCommand(VanillaCommands, "enchant"); c.AddAdminCommand(VanillaCommands, "difficulty"); c.AddAdminCommand(VanillaCommands, "gamerule"); c.AddAdminCommand(VanillaCommands, "spawnpoint"); c.AddAdminCommand(VanillaCommands, "clear"); c.AddAdminCommand(VanillaCommands, "gamemode"); c.AddAdminCommand(VanillaCommands, "effect"); c.AddAdminCommand(VanillaCommands, "scoreboard"); c.AddAdminCommand(VanillaCommands, "weather"); c.AddAdminCommand(VanillaCommands, "toggledownfall"); c.AddAdminCommand(VanillaCommands, "setidletimeout"); c.AddAdminCommand(VanillaCommands, "op", "deop"); c.AddAdminCommand(VanillaCommands, "achievement"); c.AddAdminCommand(VanillaCommands, "blockdata"); c.AddAdminCommand(VanillaCommands, "clone"); c.AddAdminCommand(VanillaCommands, "defaultgamemode"); c.AddAdminCommand(VanillaCommands, "execute"); c.AddAdminCommand(VanillaCommands, "fill"); c.AddAdminCommand(VanillaCommands, "particle"); c.AddAdminCommand(VanillaCommands, "playsound"); c.AddAdminCommand(VanillaCommands, "setblock"); c.AddAdminCommand(VanillaCommands, "summon"); c.AddAdminCommand(VanillaCommands, "title"); c.AddAdminCommand(VanillaLoad, "vanillaload"); c.AddAdminCommand(VanillaUnload, "vanillaunload"); c.AddAdminCommand(VanillaStop, "vanillarestart"); c.AddAdminCommand(AllBack, "allback"); c.AddAdminCommand(OldRestart, null, "restart", "shutdown", "stop"); c.AddAdminCommand(ProxyStop, "proxystop"); c.AddAdminCommand((player, cmd, iarg) => { Threads.DebugThreads(); }, "debugthreads"); c.AddAdminCommand((player, cmd, iarg) => { player.TellSystem(Chat.Pink, "New Usage: /ban 30 username Reason for ban"); }, null, "ban30"); c.AddAdminCommand(VanillaSuspend, "vanillastop"); c.AddAdminCommand(VanillaResume, "vanillastart"); c.AddAdminCommand(Possess, "possess", "poss"); c.AddAdminCommand(Slots, "slots"); c.AddAdminCommand(Flush, "flush"); c.AddAdminCommand(Mode, "mode", "gm", "m"); c.AddAdminCommand(Teleport, "tp", "go"); c.AddAdminCommand(Crash, "crash"); c.AddAdminCommand((player, cmd, offset) => { if (cmd.Length != 4) throw new UsageException("/ee effectID amplification duration"); var ee = new EntityEffect(player.EntityID, (PlayerEffects)int.Parse(cmd [1]), int.Parse(cmd [2]), int.Parse(cmd [3])); player.Queue.Queue(ee); player.TellSystem(Chat.Purple, ee.ToString()); }, "ee"); #if DEBUG c.AddCommand((player, cmd, offset) => { var steer = new Steer(); steer.Action = Steer.Actions.Unmount; player.FromClient(steer); }, "steer"); #endif }