mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-15 20:51:37 +01:00
Added "UNOWNED" log to Island
This commit is contained in:
parent
d7fbfdb784
commit
fe101a6e01
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user