Fixed double login bug, added gm permissions, added checks to gm commands, update your postgresql db

This commit is contained in:
Light2
2013-12-14 22:14:45 +01:00
parent 5fd06f87c1
commit 6daca0347c
11 changed files with 59 additions and 15 deletions
@@ -156,10 +156,10 @@ public class PlayerMessageBuilder extends ObjectMessageBuilder {
if(player.getXpList().isEmpty()) {
buffer.putInt(0);
buffer.putInt(0);
buffer.putInt(player.getXpListUpdateCounter());
} else {
buffer.putInt(player.getXpList().size());
buffer.putInt(0);
buffer.putInt(player.getXpListUpdateCounter());
// no need for locking here, concurrent hash map iterator wont throw concurrency exceptions and multiple thread access at zone in is unlikely to occur for the PlayerObject
for(Entry<String, Integer> entry : player.getXpList().entrySet()) {