From 490d1d86f2db354e153155216a6778955920ff49 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 21 Jan 2017 14:24:04 +0000 Subject: [PATCH] Give players their earnt gems --- .../src/mineplex/gemhunters/economy/EconomyModule.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/economy/EconomyModule.java b/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/economy/EconomyModule.java index 34f5b03b5..66ee6ae94 100644 --- a/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/economy/EconomyModule.java +++ b/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/economy/EconomyModule.java @@ -56,6 +56,11 @@ public class EconomyModule extends MiniPlugin addToStore(killerPlayer, "Killing " + F.name(player.getName()), gems); } + @EventHandler + public void cashOut(PlayerCashOutCompleteEvent event) + { + event.incrementGems(_storedGems.get(event.getPlayer().getUniqueId())); + } @EventHandler public void quit(PlayerQuitEvent event)