Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. @SubscribeEvent
  2.     public void onJoin(EntityJoinWorldEvent e){
  3.         if (e.getEntity() instanceof EntityPlayer){
  4.             EntityPlayer player = (EntityPlayer) e.getEntity();
  5.             player.openGui(MiddleAgeCraft.instance, 0, player.world, (int) player.posX, (int) player.posY, (int) player.posZ);
  6.         }
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement