mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-05 06:51:24 +01:00
Fixed IslandPrelearEvent so it is generated.
This commit is contained in:
parent
a4362ce859
commit
aad7f1c482
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user