Mark Player/Group Domains as dirty in a few missing places.

Fixes WORLDGUARD-3404.
This commit is contained in:
wizjany 2015-03-11 00:44:06 -04:00
parent ddf0f41061
commit c0c7c3215e
2 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,6 @@ public GroupDomain() {
public GroupDomain(GroupDomain domain) {
checkNotNull(domain, "domain");
groups.addAll(domain.getGroups());
dirty = true;
}
/**
@ -128,6 +127,7 @@ public int size() {
@Override
public void clear() {
setDirty(true);
groups.clear();
}

View File

@ -125,6 +125,7 @@ public void removePlayer(String name) {
*/
public void removePlayer(UUID uuid) {
checkNotNull(uuid);
setDirty(true);
uniqueIds.remove(uuid);
}
@ -136,6 +137,7 @@ public void removePlayer(UUID uuid) {
*/
public void removePlayer(LocalPlayer player) {
checkNotNull(player);
setDirty(true);
removePlayer(player.getName());
removePlayer(player.getUniqueId());
}
@ -183,6 +185,7 @@ public int size() {
@Override
public void clear() {
setDirty(true);
uniqueIds.clear();
names.clear();
}