TheDav1311 Posted May 2, 2014 Posted May 2, 2014 I want to get all player in one World and then put them into a team. It should look like with a "while" or a "for" EntityPlayer player = world. ......... ; world.getScoreboard().getTeam("BLABLA").getMembershipCollection().add(player); thx 4 help Quote
TheDav1311 Posted May 3, 2014 Author Posted May 3, 2014 My Solution now is this: for(int i = 0; i < world.playerEntities.size(); i++) { EntityPlayerMP playerMP = (EntityPlayerMP) world.playerEntities.get(i); world.getScoreboard().getTeam("ALPHA").getMembershipCollection().add(playerMP); } But after it they are not in the Team Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.