Added "UNOWNED" log to Island

This commit is contained in:
Florian CUNY 2019-01-06 11:46:25 +01:00
parent d7fbfdb784
commit fe101a6e01

View File

@ -516,6 +516,7 @@ public class Island implements DataObject {
this.owner = owner;
if (owner == null) {
log(new LogEntry.Builder("UNOWNED").build());
return;
}
// Defensive code: demote any previous owner
@ -599,7 +600,7 @@ public class Island implements DataObject {
spawn = isSpawn;
if (isSpawn) {
owner = null;
setOwner(null);
members.clear();
setFlagsDefaults();
setFlag(Flags.LOCK, RanksManager.VISITOR_RANK);