diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandtree.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtree.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtree.java b/Essentials/src/com/earth2me/essentials/commands/Commandtree.java index 6c2c15983..79bbecd29 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtree.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtree.java @@ -1,22 +1,16 @@ package com.earth2me.essentials.commands; import static com.earth2me.essentials.I18n._; -import com.earth2me.essentials.User; -import com.earth2me.essentials.Util; +import com.earth2me.essentials.api.IUser; +import com.earth2me.essentials.utils.LocationUtil; import org.bukkit.Location; -import org.bukkit.Server; import org.bukkit.TreeType; public class Commandtree extends EssentialsCommand { - public Commandtree() - { - super("tree"); - } - @Override - public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception + public void run(final IUser user, final String commandLabel, final String[] args) throws Exception { TreeType tree; if (args.length < 1) @@ -60,8 +54,8 @@ public class Commandtree extends EssentialsCommand throw new NotEnoughArgumentsException(); } - final Location loc = Util.getTarget(user); - final Location safeLocation = Util.getSafeDestination(loc); + final Location loc = LocationUtil.getTarget(user); + final Location safeLocation = LocationUtil.getSafeDestination(loc); final boolean success = user.getWorld().generateTree(safeLocation, tree); if (success) { |