mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Added basic version of vminecrafthelp, still need to add tips to it.
This commit is contained in:
parent
891b7d0f43
commit
9508643597
@ -29,6 +29,8 @@ public class vMinecraftCommands{
|
|||||||
public static void loadCommands(){
|
public static void loadCommands(){
|
||||||
//If we had commands we would add them here.
|
//If we had commands we would add them here.
|
||||||
cl.register("/tp", "teleport");
|
cl.register("/tp", "teleport");
|
||||||
|
cl.register("/vminecraft", "vminecrafthelp");
|
||||||
|
cl.register("/vhelp", "vminecrafthelp");
|
||||||
cl.register("/colors", "colors");
|
cl.register("/colors", "colors");
|
||||||
cl.register("/masstp", "masstp", "Teleports those with lower permissions to you");
|
cl.register("/masstp", "masstp", "Teleports those with lower permissions to you");
|
||||||
cl.register("/reload", "reload");
|
cl.register("/reload", "reload");
|
||||||
@ -53,6 +55,36 @@ public class vMinecraftCommands{
|
|||||||
cl.registerAlias("/wrists", "/suicide");
|
cl.registerAlias("/wrists", "/suicide");
|
||||||
cl.registerAlias("/ci", "/clearinventory");
|
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)
|
//Function: colors (/colors)
|
||||||
|
Loading…
Reference in New Issue
Block a user