Closed chris6366 closed 3 years ago
@Test public void setVar() throws Exception { Integer idleBanRounds = client.getVar(BF3Vars.IDLE_BAN_ROUNDS).complete(); System.out.println(idleBanRounds); client.setVar(BF3Vars.IDLE_BAN_ROUNDS, idleBanRounds + 1).complete(); idleBanRounds = client.getVar(BF3Vars.IDLE_BAN_ROUNDS).complete(); System.out.println(idleBanRounds); }
Ouput:
[pool-1-thread-1] INFO JarconClient-0 - Client connecting... [pool-1-thread-1] INFO JarconClient-0 - Client connected to version Version[version=BF3, build=3065862] 0 0 [main] INFO JarconClient-0 - Client shutting down... [main] INFO JarconClient-0 - Client shutdown complete
Setting a server var doesn't seem to have any effect, same for other vars. Am I doing it wrong or is there a bug here?
Ouput:
Setting a server var doesn't seem to have any effect, same for other vars. Am I doing it wrong or is there a bug here?