1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

add Commandenerchest to 3.0 (still needs changes to playerlistener and user to work) and update plugin.yml

This commit is contained in:
Iaccidentally
2012-08-27 19:30:08 -04:00
parent f52d7d05ec
commit 44cd21a28b
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package net.ess3.commands;
import net.ess3.user.User;
import org.bukkit.Server;
public class Commandenderchest extends EssentialsCommand
{
@Override
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{
if (args.length > 0 && user.isAuthorized("essentials.enderchest.others"))
{
final User invUser = getPlayer(server, args, 0);
user.openInventory(invUser.getEnderChest());
user.setEnderSee(true);
}
else
{
user.openInventory(user.getEnderChest());
user.setEnderSee(false);
}
}
}

View File

@@ -87,6 +87,10 @@ commands:
description: Enchants the item the user is holding.
usage: /<command> <enchantmentname> [level]
aliases: [enchantment,eenchant,eenchantment]
enderchest:
description: Lets you see inside an enderchest.
usage: /<command> [player]
aliases: [endersee,echest,eenderchest,eendersee,eechest]
essentials:
description: Reloads essentials.
usage: /<command>
@@ -330,6 +334,10 @@ commands:
description: Spawns a mob.
usage: /<command> <mob>[:data][,<mount>[:data]] [amount] [player]
aliases: [espawnmob,mob,emob]
speed:
description: Change your speed limits
usage: /<command> <speed> [player]
aliases: [flyspeed,walkspeed,fspeed,wspeed,eflyspeed,ewalkspeed,efspeed,ewspeed,espeed]
sudo:
description: Make another user perform a command.
usage: /<command> <player> <command [args]>