From 27b0cc86de8c21f089e0e68a5db3ebb42f4df2d2 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 17 Jan 2012 19:25:56 +0000 Subject: [PATCH] Don't charge a user if warp already exists (and they can't set it). --- .../src/com/earth2me/essentials/commands/Commandsetwarp.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java b/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java index b1e2dffde..5d7b99451 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java @@ -39,8 +39,7 @@ public class Commandsetwarp extends EssentialsCommand } else { - user.sendMessage(_("warpOverwrite")); - return; + throw new Exception(_("warpOverwrite")); } user.sendMessage(_("warpSet", args[0]));