summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-09-02 15:58:25 +0100
committerKHobbits <rob@khobbits.co.uk>2011-09-02 15:58:25 +0100
commit4abbbcb82bc7fd90c48f48a16d384c926db5b525 (patch)
tree8cbf482773c3a06894c93629d3168a1ff6c43a3e
parent248e4e2ae2cf9096749143a7ca9239a35fbe098f (diff)
downloadEssentials-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.java3
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
{