because you have to change the method to public static.
|
So, i addeed "playerOnline();" in initialize, when someone log in, the players online update for everyone.Code:public void playerOnline() { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client) Server.playerHandler.players[j]; c2.getPA().loadQuests(); } } }
Then, i did the same to logout void and destruct, added the playerOnline();
But when someone logout, it dont update for every player, why? Thanks.
because you have to change the method to public static.
i'll rep and thanks who can help me.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |