mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-11-16 15:25:11 +01:00
Make removing regions from AreaShop less destructible for region flags
First AreaShop would reset all flags, now it will only reset the greeting and farewell flags. This is to make sure players do not get confused about the region, if the greeting is still there then players might think it is still connected to AreaShop. Fixes #72
This commit is contained in:
parent
48ab46ecf7
commit
39d755d2db
@ -1032,9 +1032,8 @@ public abstract class GeneralRegion implements GeneralRegionInterface, Comparabl
|
||||
public void resetRegionFlags() {
|
||||
ProtectedRegion region = getRegion();
|
||||
if(region != null) {
|
||||
for(Flag<?> flag : DefaultFlag.getFlags()) {
|
||||
region.setFlag(flag, null);
|
||||
}
|
||||
region.setFlag(DefaultFlag.GREET_MESSAGE, null);
|
||||
region.setFlag(DefaultFlag.FAREWELL_MESSAGE, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user