From 6bc9f2140c81ed27ecf9efa8a6168e411a2cef25 Mon Sep 17 00:00:00 2001 From: Ali Moghnieh Date: Sat, 3 Dec 2016 15:23:53 +0000 Subject: [PATCH] Catch Exception in Commandpay for `payUser` call. --- Essentials/src/com/earth2me/essentials/commands/Commandpay.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpay.java b/Essentials/src/com/earth2me/essentials/commands/Commandpay.java index 7333db5b8..932681bb3 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandpay.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandpay.java @@ -61,6 +61,8 @@ public class Commandpay extends EssentialsLoopCommand { } catch (MaxMoneyException ignored) { // this should never happen } + } catch (Exception e) { + sender.sendMessage(e.getMessage()); } } }