From 95086435977e667c4d01a2b7957ab84bac747ac2 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 8 Dec 2010 00:51:36 -0800 Subject: [PATCH] Added basic version of vminecrafthelp, still need to add tips to it. --- vMinecraftCommands.java | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/vMinecraftCommands.java b/vMinecraftCommands.java index 216e97274..4a66f4f74 100644 --- a/vMinecraftCommands.java +++ b/vMinecraftCommands.java @@ -29,6 +29,8 @@ public class vMinecraftCommands{ public static void loadCommands(){ //If we had commands we would add them here. cl.register("/tp", "teleport"); + cl.register("/vminecraft", "vminecrafthelp"); + cl.register("/vhelp", "vminecrafthelp"); cl.register("/colors", "colors"); cl.register("/masstp", "masstp", "Teleports those with lower permissions to you"); cl.register("/reload", "reload"); @@ -53,6 +55,36 @@ public class vMinecraftCommands{ cl.registerAlias("/wrists", "/suicide"); cl.registerAlias("/ci", "/clearinventory"); } + //===================================================================== + //Function: vminecrafthelp (/vhelp or /vminecraft) + //Input: Player player: The player using the command + //Output: int: Exit Code + //Use: Displays the current status of most vMinecraft settings + // and provides some useful tips. + //===================================================================== + public static int vminecrafthelp(Player player, String[] args){ + vMinecraftChat.sendMessage(player, player, Colors.Yellow + "Chat Settings"); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Admin Chat: " + vMinecraftSettings.getInstance().adminchat()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "FFF turns red: " + vMinecraftSettings.getInstance().FFF()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Greentext After >: " + vMinecraftSettings.getInstance().greentext()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Quake Color Script: " + vMinecraftSettings.getInstance().quakeColors()); + vMinecraftChat.sendMessage(player, player, Colors.Yellow + "Enabled Commands are TRUE, disabled are FALSE"); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /ezmodo: " + vMinecraftSettings.getInstance().cmdEzModo()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /fabulous: " + vMinecraftSettings.getInstance().cmdFabulous()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /rules: " + vMinecraftSettings.getInstance().cmdRules()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /heal: " + vMinecraftSettings.getInstance().cmdHeal()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /masstp: " + vMinecraftSettings.getInstance().cmdMasstp()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /say: " + vMinecraftSettings.getInstance().cmdSay()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /suicide: " + vMinecraftSettings.getInstance().cmdSuicide()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /whois: " + vMinecraftSettings.getInstance().cmdWhoIs()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /tp won't work on higher ranked players: " + vMinecraftSettings.getInstance().cmdTp()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /tphere won't work on higher ranked players: " + vMinecraftSettings.getInstance().cmdTphere()); + vMinecraftChat.sendMessage(player, player, Colors.Yellow + "Other Settings"); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Command /who: " + vMinecraftSettings.getInstance().cmdWho()); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "COLORED PLAYER LIST IS DEPENDENT ON /who BEING TRUE!"); + vMinecraftChat.sendMessage(player, player, Colors.LightPurple + "Global Messages: " + vMinecraftSettings.getInstance().globalmessages()); + return EXIT_SUCCESS; + } //===================================================================== //Function: colors (/colors)