mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 11:37:30 +02:00
New command: /workbench (aliases /wb and /wbench)
Permission: essentials.workbench
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
@@ -430,6 +430,10 @@ commands:
|
|||||||
description: Determine the username behind a nickname.
|
description: Determine the username behind a nickname.
|
||||||
usage: /<command> <nickname>
|
usage: /<command> <nickname>
|
||||||
aliases: [ewhois]
|
aliases: [ewhois]
|
||||||
|
workbench:
|
||||||
|
description: Opens up a workbench
|
||||||
|
usage: /<command>
|
||||||
|
aliases: [eworkbench,wb,ewb,wbench,ewbench]
|
||||||
world:
|
world:
|
||||||
description: Switch between worlds.
|
description: Switch between worlds.
|
||||||
usage: /<command> [world]
|
usage: /<command> [world]
|
||||||
|
Reference in New Issue
Block a user