Code:
if(p.Pin != null){
characterfile.write("Pin = ", 0, 6);
characterfile.write(p.Pin, 0, p.Pin.length());
characterfile.newLine();
}
That is what it's saving it as.
command to set the pin -
Code:
if (playerCommand.startsWith("setpin")) {
if (c.Pin == "None"){
try {
String Pin = playerCommand.substring(9);
String[] args = playerCommand.split(" ");
c.Pin = Pin;
c.sendMessage("@blu@Your safety PIN is now: " + c.Pin);
} catch (Exception ex) {
ex.printStackTrace();
}
}else{
c.sendMessage("@red@You have already set your safety PIN.");
}
}
Basically when you type :etpin it misses out numbers like sometimes it'll say 'your safety pin is now: 04' when you set it as '2904'