mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-10 17:31:32 +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);
|
change = new IslandProtectionRangeChangeEvent(island, player, admin, location, newRange, oldRange);
|
||||||
Bukkit.getPluginManager().callEvent(change);
|
Bukkit.getPluginManager().callEvent(change);
|
||||||
return change;
|
return change;
|
||||||
|
case PRECLEAR:
|
||||||
|
IslandPreclearEvent preclear = new IslandPreclearEvent(island, player, admin, location, island);
|
||||||
|
Bukkit.getPluginManager().callEvent(preclear);
|
||||||
|
return preclear;
|
||||||
default:
|
default:
|
||||||
IslandGeneralEvent general = new IslandGeneralEvent(island, player, admin, location);
|
IslandGeneralEvent general = new IslandGeneralEvent(island, player, admin, location);
|
||||||
Bukkit.getPluginManager().callEvent(general);
|
Bukkit.getPluginManager().callEvent(general);
|
||||||
|
Loading…
Reference in New Issue
Block a user