diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-09-02 15:58:25 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-09-02 15:58:25 +0100 |
commit | 2134fcc7afe34266f364ac057c5d3fc980447f47 (patch) | |
tree | 8b5202e26da0db41ae1ce98abbdf3e0e8e903866 | |
parent | 4555148e1c9b43b812b10ea8481753773cc6df91 (diff) | |
download | Essentials-2134fcc7afe34266f364ac057c5d3fc980447f47.tar Essentials-2134fcc7afe34266f364ac057c5d3fc980447f47.tar.gz Essentials-2134fcc7afe34266f364ac057c5d3fc980447f47.tar.lz Essentials-2134fcc7afe34266f364ac057c5d3fc980447f47.tar.xz Essentials-2134fcc7afe34266f364ac057c5d3fc980447f47.zip |
Throwing an error on /sethome if you cant set multiple homes.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandsethome.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java b/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java index d9bd32c30..82d66a71c 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java @@ -39,6 +39,9 @@ public class Commandsethome extends EssentialsCommand } } + else { + throw new Exception(Util.format("maxHomes", 1)); + } } else { |