mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-16 05:02:20 +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;
|
this.owner = owner;
|
||||||
if (owner == null) {
|
if (owner == null) {
|
||||||
|
log(new LogEntry.Builder("UNOWNED").build());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Defensive code: demote any previous owner
|
// Defensive code: demote any previous owner
|
||||||
@ -599,7 +600,7 @@ public class Island implements DataObject {
|
|||||||
|
|
||||||
spawn = isSpawn;
|
spawn = isSpawn;
|
||||||
if (isSpawn) {
|
if (isSpawn) {
|
||||||
owner = null;
|
setOwner(null);
|
||||||
members.clear();
|
members.clear();
|
||||||
setFlagsDefaults();
|
setFlagsDefaults();
|
||||||
setFlag(Flags.LOCK, RanksManager.VISITOR_RANK);
|
setFlag(Flags.LOCK, RanksManager.VISITOR_RANK);
|
||||||
|
Loading…
Reference in New Issue
Block a user