I am working on a lobby system that adds a player to a group on join then vanishes everyone else. I need to know how to randomise the groups and make everyone except the players in the group disappear. Here is my source code: http://pastebin.com/S1yxv4MC#
smib98 - Randomizer: Code:java Random r = new Random(); - Vanishing: Create a for-loop loop for all players and check if they are in the same group as the executer (player) use the hidePlayer(player) method Concerning your project, you might want to keep your 'main' class small and compact. And use CommandExecuter classes for the commands, Listener classes for the events, getters/setters in other classes etc. It keeps your project clean and orginized
I always used: Code:java Random randomGenerator = new Random();int a = (int) randomGenerator.nextInt(8); but i guess they do the exact same thing
Chpwnd nextInt() (unsurprisingly) returns an int, why are you casting it to one? And what do you mean you guess they do the same thing? I don't see an alternative posted.