mehh processes are good under some conditions i think this is such a little process tho ull be ok try it
|
from what ive been seeing using process's are bad
but i got this
will that " be bad" because i dont know any other way to overwrite the words of some interfacesCode:public void process() { getPA().sendFrame126("@or1@Players: @gre@"+PlayerHandler.getPlayerCount()+ "", 663); getPA().sendFrame126("The Bank of Infinity" , 5383); getPA().sendFrame126("", 17510); getPA().sendFrame126("@whi@ Bank of Infinity", 14923);
mehh processes are good under some conditions i think this is such a little process tho ull be ok try it
It's only bad if you miss-use it i.e jamming shit into that method, were it could be placed elsewhere i.e placing your statements into loginText method or w.e it's called
Haven't really looked into that method to extensively
so in this case, mine would be fine?
getPA().sendFrame126("The Bank of Infinity" , 5383);
getPA().sendFrame126("", 17510);
getPA().sendFrame126("@whi@ Bank of Infinity", 14923);
these should be place in your initialize method
while the playercount one has to be updated when a player logs out or logs in which could be place into those categorys instead of checking every 600ms.
The process() method is techically wrong because it's called every 500 or 600 seconds. So it's very 'expensive' to have so many method calls and if-else clauses every 600 seconds.
What boosie said is correct. When someone logs out/in be sure to apply the text update to everyone currently online and you'll be fine. This can be done using a for statement.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |