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 | 4abbbcb82bc7fd90c48f48a16d384c926db5b525 (patch) | |
tree | 8cbf482773c3a06894c93629d3168a1ff6c43a3e | |
parent | 248e4e2ae2cf9096749143a7ca9239a35fbe098f (diff) | |
download | Essentials-4abbbcb82bc7fd90c48f48a16d384c926db5b525.tar Essentials-4abbbcb82bc7fd90c48f48a16d384c926db5b525.tar.gz Essentials-4abbbcb82bc7fd90c48f48a16d384c926db5b525.tar.lz Essentials-4abbbcb82bc7fd90c48f48a16d384c926db5b525.tar.xz Essentials-4abbbcb82bc7fd90c48f48a16d384c926db5b525.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 { |