This commit is contained in:
Florian CUNY 2018-06-17 11:35:46 +02:00
parent 45c0bc84da
commit b45a3160c7

View File

@ -129,7 +129,7 @@ public abstract class AbstractFlagListener implements Listener {
return true; return true;
} }
// Get the island and if present // Get the island and if present
Optional<Island> island = getIslands().getIslandAt(loc); Optional<Island> island = getIslands().getProtectedIslandAt(loc);
// Handle Settings Flag // Handle Settings Flag
if (flag.getType().equals(Type.SETTING)) { if (flag.getType().equals(Type.SETTING)) {
// If the island exists, return the setting, otherwise return the default setting for this flag // If the island exists, return the setting, otherwise return the default setting for this flag