mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +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.
|
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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue