diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-08-06 00:26:42 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-08-06 00:26:42 +0100 |
commit | 9e975568bef61c44783c6320b3176ce069f57ec7 (patch) | |
tree | 8d086e64a00ea29b1c1e7322a3b2165821f5b52e | |
parent | 3dbabfa11d52a7565ceaf9da264643bce6cd1eeb (diff) | |
download | Essentials-9e975568bef61c44783c6320b3176ce069f57ec7.tar Essentials-9e975568bef61c44783c6320b3176ce069f57ec7.tar.gz Essentials-9e975568bef61c44783c6320b3176ce069f57ec7.tar.lz Essentials-9e975568bef61c44783c6320b3176ce069f57ec7.tar.xz Essentials-9e975568bef61c44783c6320b3176ce069f57ec7.zip |
New command: /workbench (aliases /wb and /wbench)
Permission: essentials.workbench
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandworkbench.java | 20 | ||||
-rw-r--r-- | Essentials/src/plugin.yml | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandworkbench.java b/Essentials/src/com/earth2me/essentials/commands/Commandworkbench.java new file mode 100644 index 000000000..265c519ab --- /dev/null +++ b/Essentials/src/com/earth2me/essentials/commands/Commandworkbench.java @@ -0,0 +1,20 @@ +package com.earth2me.essentials.commands; + +import com.earth2me.essentials.User; +import org.bukkit.Server; + + +public class Commandworkbench extends EssentialsCommand +{ + public Commandworkbench() + { + super("workbench"); + } + + + @Override + public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception + { + user.openWorkbench(null, true); + } +}
\ No newline at end of file diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml index 4ba5ccbae..98058ab38 100644 --- a/Essentials/src/plugin.yml +++ b/Essentials/src/plugin.yml @@ -430,6 +430,10 @@ commands: description: Determine the username behind a nickname. usage: /<command> <nickname> aliases: [ewhois] + workbench: + description: Opens up a workbench + usage: /<command> + aliases: [eworkbench,wb,ewb,wbench,ewbench] world: description: Switch between worlds. usage: /<command> [world] |