Advertisement
TheSgtPunishment

Untitled

Apr 26th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. package com.whammich.sstow.events;
  2.  
  3.  
  4. import net.minecraft.entity.player.EntityPlayer;
  5. import net.minecraftforge.event.entity.living.LivingDeathEvent;
  6. import baubles.common.lib.PlayerHandler;
  7. import cpw.mods.fml.common.eventhandler.SubscribeEvent;
  8.  
  9. public class PlayerDeathEvent {
  10.  
  11. @SubscribeEvent
  12. public void onPlayerDeath(LivingDeathEvent event){
  13.  
  14. if(event.source.getEntity() instanceof EntityPlayer) {
  15. EntityPlayer player = (EntityPlayer) event.source.getEntity();
  16. PlayerHandler.getPlayerBaubles(player);
  17. }
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement