If the location is empty, don't try it. If the language string doesn't
exist, then don't try to parse it either and return an empty string.
This commit is contained in:
@ -123,6 +123,7 @@ public class Prisoner {
|
||||
/** Sets the previous location of this player from a comma separated string. */
|
||||
public void setPreviousPosition(String location) {
|
||||
if(location == null) return;
|
||||
if(location.isEmpty()) return;
|
||||
|
||||
String[] s = location.split(",");
|
||||
this.previousPosition = new Location(Bukkit.getWorld(s[0]),
|
||||
|
Reference in New Issue
Block a user