cleanup: adjust syntax

This commit is contained in:
ronancpl
2021-04-10 09:43:05 -03:00
parent 7a3d5d2b94
commit d4e4150a6e
3 changed files with 5 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ public class WarpWorldCommand extends Command {
byte worldb = Byte.parseByte(params[0]);
if (worldb <= (server.getWorldsSize() - 1)) {
try {
String[] socket = server.getInetSocket(worldb, c.getChannel());
String[] socket = server.getInetSocket(c.getSession(), worldb, c.getChannel());
c.getWorldServer().removePlayer(player);
player.getMap().removePlayer(player);//LOL FORGOT THIS ><
player.setSessionTransitionState();