
Originally Posted by
shassan
rights are bugged on the base because it registers every player as an admin on login.
I don't think it's bugged, I think it was made like that. What worked for me was I went into Frames.java and scrolled almost all the way down til I got to
Code:
public void loginResponce() {
player.setRights((byte) 2);
OutStream out = new OutStream();
out.writeByte(player.getRights());
out.writeByte((byte) 0);
out.writeByte((byte) 0);
out.writeByte((byte) 0);
out.writeByte((byte) 1);
out.writeByte((byte) 0);
out.writeShort(player.getIndex());
out.writeByte((byte) 1);
out.write3Bytes(0);
out.writeByte((byte) 1); // members
OutStream out1 = new OutStream();
int length = out.getOffset();
out1.writeByte(length);
out1.writeBytes(out.buffer(), 0, length);
player.getConnection().write(out1);
this.sendMapRegion(false);
}
and I removed the
Code:
player.setRights((byte) 2);
so it looks like
Code:
public void loginResponce() {
OutStream out = new OutStream();
out.writeByte(player.getRights());
out.writeByte((byte) 0);
out.writeByte((byte) 0);
out.writeByte((byte) 0);
out.writeByte((byte) 1);
out.writeByte((byte) 0);
out.writeShort(player.getIndex());
out.writeByte((byte) 1);
out.write3Bytes(0);
out.writeByte((byte) 1); // members
OutStream out1 = new OutStream();
int length = out.getOffset();
out1.writeByte(length);
out1.writeBytes(out.buffer(), 0, length);
player.getConnection().write(out1);
this.sendMapRegion(false);
}
For me doing that kept me admin but made every other account that wasn't already admin or mod a regular player.