diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java b/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java index 0148f0e6b..a1c825ff9 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsetwarp.java @@ -5,6 +5,7 @@ import com.earth2me.essentials.User; import com.earth2me.essentials.api.IWarps; import com.earth2me.essentials.utils.NumberUtil; import com.earth2me.essentials.utils.StringUtil; +import net.ess3.api.InvalidWorldException; import org.bukkit.Location; import org.bukkit.Server; @@ -37,7 +38,10 @@ public class Commandsetwarp extends EssentialsCommand { warpLoc = warps.getWarp(args[0]); } - catch (Exception ex) + catch (WarpNotFoundException ex) + { + } + catch (InvalidWorldException ex) { } |