Let's try to save the jails with MySQL, first attempt #18.

This commit is contained in:
graywolf336
2014-02-20 20:55:04 -06:00
parent 5e6fecfef8
commit 75aec51dc2
2 changed files with 135 additions and 0 deletions

View File

@ -73,6 +73,21 @@ public class Cell {
return this.signs;
}
/** Returns the entire list of signs in a string. */
public String getSignString() {
String r = "";
for(SimpleLocation s : signs) {
if(r.isEmpty()) {
r = s.toString();
}else {
r += r + ";" + s.toString();
}
}
return r;
}
/** Sets the location of where the prisoner will be teleported at when jailed here. */
public void setTeleport(SimpleLocation location) {
this.teleport = location;