Give players their earnt gems

This commit is contained in:
Sam 2017-01-21 14:24:04 +00:00
parent 3557fd8acc
commit 490d1d86f2

View File

@ -56,6 +56,11 @@ public class EconomyModule extends MiniPlugin
addToStore(killerPlayer, "Killing " + F.name(player.getName()), gems); addToStore(killerPlayer, "Killing " + F.name(player.getName()), gems);
} }
@EventHandler
public void cashOut(PlayerCashOutCompleteEvent event)
{
event.incrementGems(_storedGems.get(event.getPlayer().getUniqueId()));
}
@EventHandler @EventHandler
public void quit(PlayerQuitEvent event) public void quit(PlayerQuitEvent event)