From 4abbbcb82bc7fd90c48f48a16d384c926db5b525 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Fri, 2 Sep 2011 15:58:25 +0100 Subject: [PATCH] Throwing an error on /sethome if you cant set multiple homes. --- .../src/com/earth2me/essentials/commands/Commandsethome.java | 3 +++ 1 file changed, 3 insertions(+) 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 {