diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-06-08 22:31:19 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-06-08 22:31:19 +0100 |
commit | 7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77 (patch) | |
tree | baf76fef3065378e52b8e7657725c579889dc33a /Essentials/src/com/earth2me/essentials/commands/Commandsethome.java | |
parent | c1bcfa628620bdce2ad29f908baa4bec0df7342c (diff) | |
download | Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.tar Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.tar.gz Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.tar.lz Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.tar.xz Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.zip |
Split util classes.
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandsethome.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandsethome.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java b/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java index 1e27e7e3b..67e94acc5 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java @@ -2,7 +2,8 @@ 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.utils.NumberUtil; +import com.earth2me.essentials.utils.StringUtil; import java.util.Locale; import org.bukkit.Location; import org.bukkit.Server; @@ -52,7 +53,7 @@ public class Commandsethome extends EssentialsCommand { name = "home"; } - if ("bed".equals(name) || Util.isInt(name)) + if ("bed".equals(name) || NumberUtil.isInt(name)) { throw new NoSuchFieldException(_("invalidHomeName")); } |