Fixed IslandPrelearEvent so it is generated.

This commit is contained in:
tastybento 2020-03-04 17:33:36 -08:00
parent a4362ce859
commit aad7f1c482

View File

@ -686,6 +686,10 @@ public class IslandEvent extends IslandBaseEvent {
change = new IslandProtectionRangeChangeEvent(island, player, admin, location, newRange, oldRange);
Bukkit.getPluginManager().callEvent(change);
return change;
case PRECLEAR:
IslandPreclearEvent preclear = new IslandPreclearEvent(island, player, admin, location, island);
Bukkit.getPluginManager().callEvent(preclear);
return preclear;
default:
IslandGeneralEvent general = new IslandGeneralEvent(island, player, admin, location);
Bukkit.getPluginManager().callEvent(general);