From 0a23f9159239987689f5576d9f6b007fdbcc6144 Mon Sep 17 00:00:00 2001 From: Mini-Chiss Date: Mon, 17 Aug 2015 11:53:50 +0200 Subject: [PATCH] fixed two little bogs --- .../src/mineplex/core/donation/command/GemCommand.java | 10 +++++----- .../mineplex/core/donation/command/GoldCommand.java | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/donation/command/GemCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/donation/command/GemCommand.java index 7593be55f..8690987bc 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/donation/command/GemCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/donation/command/GemCommand.java @@ -24,7 +24,7 @@ public class GemCommand extends CommandBase { if (args.length < 2) { - UtilPlayer.message(caller, F.main("gem", "Missing Args: " + F.elem("/gem "))); + UtilPlayer.message(caller, F.main("Gem", "Missing Args: " + F.elem("/gem "))); return; } @@ -59,7 +59,7 @@ public class GemCommand extends CommandBase } catch (Exception e) { - UtilPlayer.message(caller, F.main("gem", "Invalid gems Amount")); + UtilPlayer.message(caller, F.main("Gem", "Invalid gems Amount")); } } @@ -71,16 +71,16 @@ public class GemCommand extends CommandBase { if (completed) { - UtilPlayer.message(caller, F.main("gem", "You gave " + F.elem(gems + " gems") + " to " + F.name(targetName) + ".")); + UtilPlayer.message(caller, F.main("Gem", "You gave " + F.elem(gems + " gems") + " to " + F.name(targetName) + ".")); if (target != null) { - UtilPlayer.message(target, F.main("gem", F.name(caller.getName()) + " gave you " + F.elem(gems + " gems") + ".")); + UtilPlayer.message(target, F.main("Gem", F.name(caller.getName()) + " gave you " + F.elem(gems + " gems") + ".")); } } else { - UtilPlayer.message(caller, F.main("gem", "There was an error giving " + F.elem(gems + " gems") + " to " + F.name(targetName) + ".")); + UtilPlayer.message(caller, F.main("Gem", "There was an error giving " + F.elem(gems + " gems") + " to " + F.name(targetName) + ".")); } } }, caller.getName(), targetName, uuid, gems); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/donation/command/GoldCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/donation/command/GoldCommand.java index 6fa015312..36095de1b 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/donation/command/GoldCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/donation/command/GoldCommand.java @@ -23,6 +23,7 @@ public class GoldCommand extends CommandBase if (args == null || args.length == 0) { UtilPlayer.message(caller, F.main("Gold", "Your Gold: " + F.elem("" + Plugin.Get(caller).getGold()))); + return; } else if (args.length < 2) {