From 9e975568bef61c44783c6320b3176ce069f57ec7 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Mon, 6 Aug 2012 00:26:42 +0100 Subject: New command: /workbench (aliases /wb and /wbench) Permission: essentials.workbench --- .../essentials/commands/Commandworkbench.java | 20 ++++++++++++++++++++ Essentials/src/plugin.yml | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 Essentials/src/com/earth2me/essentials/commands/Commandworkbench.java 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: / aliases: [ewhois] + workbench: + description: Opens up a workbench + usage: / + aliases: [eworkbench,wb,ewb,wbench,ewbench] world: description: Switch between worlds. usage: / [world] -- cgit v1.2.3