New command: /workbench (aliases /wb and /wbench)

Permission: essentials.workbench
This commit is contained in:
KHobbits 2012-08-06 00:26:42 +01:00
parent 3dbabfa11d
commit 9e975568be
2 changed files with 24 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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]