diff options
Diffstat (limited to 'Essentials/src/net/ess3/commands/Commandsethome.java')
-rw-r--r-- | Essentials/src/net/ess3/commands/Commandsethome.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandsethome.java b/Essentials/src/net/ess3/commands/Commandsethome.java index 91b07286d..00e3a0170 100644 --- a/Essentials/src/net/ess3/commands/Commandsethome.java +++ b/Essentials/src/net/ess3/commands/Commandsethome.java @@ -1,11 +1,11 @@ package net.ess3.commands; -import static net.ess3.I18n._; -import net.ess3.api.IUser; -import net.ess3.permissions.Permissions; import java.util.HashMap; import java.util.Locale; import lombok.Cleanup; +import static net.ess3.I18n._; +import net.ess3.api.IUser; +import net.ess3.permissions.Permissions; public class Commandsethome extends EssentialsCommand @@ -26,7 +26,8 @@ public class Commandsethome extends EssentialsCommand { if (Permissions.SETHOME_MULTIPLE.isAuthorized(user)) { - if ("bed".equals(args[0].toLowerCase(Locale.ENGLISH))) { + if ("bed".equals(args[0].toLowerCase(Locale.ENGLISH))) + { throw new NotEnoughArgumentsException(); } if ((user.getHomes().size() < ess.getRanks().getHomeLimit(user)) @@ -65,7 +66,8 @@ public class Commandsethome extends EssentialsCommand { name = "home"; } - if ("bed".equals(name.toLowerCase(Locale.ENGLISH))) { + if ("bed".equals(name.toLowerCase(Locale.ENGLISH))) + { throw new NotEnoughArgumentsException(); } @@ -87,7 +89,7 @@ public class Commandsethome extends EssentialsCommand } user.getData().getHomes().put("home", new net.ess3.storage.StoredLocation(user.getLocation())); } - user.sendMessage(_("homeSet")); + user.sendMessage(_("homeSet", user.getLocation().getWorld().getName(), user.getLocation().getBlockX(), user.getLocation().getBlockY(), user.getLocation().getBlockZ())); } } |