mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
New command: /workbench (aliases /wb and /wbench)
Permission: essentials.workbench
This commit is contained in:
parent
3dbabfa11d
commit
9e975568be
2 changed files with 24 additions and 0 deletions
|
@ -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.
|
||||
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]
|
||||
|
|
Loading…
Reference in a new issue