diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-21 02:55:26 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-21 02:55:26 +0100 |
commit | 220d68f375bd117587c91f9478434eee517a33d7 (patch) | |
tree | 6344f983d195a4c8d091afffc9d2f8bdbca929bb /Essentials/src/com/earth2me/essentials/commands/Commandtree.java | |
parent | 19f5a2340d9fdb3902f5c388f463fd569943db07 (diff) | |
download | Essentials-220d68f375bd117587c91f9478434eee517a33d7.tar Essentials-220d68f375bd117587c91f9478434eee517a33d7.tar.gz Essentials-220d68f375bd117587c91f9478434eee517a33d7.tar.lz Essentials-220d68f375bd117587c91f9478434eee517a33d7.tar.xz Essentials-220d68f375bd117587c91f9478434eee517a33d7.zip |
Switch to the new I18n class and format cleanup of all classes
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandtree.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtree.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtree.java b/Essentials/src/com/earth2me/essentials/commands/Commandtree.java index bec23d834..538611972 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtree.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtree.java @@ -1,5 +1,6 @@ package com.earth2me.essentials.commands; +import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; import com.earth2me.essentials.Util; import org.bukkit.Location; @@ -38,17 +39,17 @@ public class Commandtree extends EssentialsCommand { throw new NotEnoughArgumentsException(); } - + final Location loc = Util.getTarget(user); final Location safeLocation = Util.getSafeDestination(loc); final boolean success = user.getWorld().generateTree(safeLocation, tree); if (success) { - user.sendMessage(Util.i18n("treeSpawned")); + user.sendMessage(_("treeSpawned")); } else { - user.sendMessage(Util.i18n("treeFailure")); + user.sendMessage(_("treeFailure")); } } } |