useful thanks
|
|
So while trying to access a few ::teles for my server's new donator zone, i accidentally typed a way higher coord (50000) instead of 5000, and now everytime i login with that account (my main admin acc), i get this error on my client
Spoiler for ERROR:
Anyone knows how to fix this? server logs nothing, it just says i've logged in and out, i can't ;;sendhome because i'm not online..
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Fixed, i developed a command to force change player coords
Usage - ::setplayercoordshome playerNameif (cmd[0].equals("setplayercoordshome")) {
name = "";
for (int i = 1; i < cmd.length; i++)
name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); //defines the name
target = World.findPlayer(name); //defines target
player.sendMessage(name + " current location : " + target.getX() + ", " + target.getY()); //you can see the bugged coords here
target.setLocation(new WorldTile(Settings.START_PLAYER_LOCATION)); //resets player location
player.sendMessage("Set " + name + "'s coords to home..."); //alerts admin
SerializableFilesManager.savePlayer(target); //saves to player file
return true;
}
Last edited by hugothebaws; 04-06-2020 at 04:39 PM. Reason: FIXED
useful thanks
| « Give or take item command | Pushing source to Github problem. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |