Give players their earnt gems

This commit is contained in:
Sam 2017-01-21 14:24:04 +00:00
parent 3557fd8acc
commit 490d1d86f2
1 changed files with 5 additions and 0 deletions

View File

@ -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)