mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 05:26:29 +01:00
Call ResourceWorldInstantiateEvent; resolves #705
This commit is contained in:
parent
91a2cee297
commit
8d7e0a552e
@ -183,6 +183,7 @@ public class DResourceWorld implements ResourceWorld {
|
||||
|
||||
DInstanceWorld instance = game ? new DGameWorld(plugin, this, instanceFolder) : new DEditWorld(plugin, this, instanceFolder);
|
||||
ResourceWorldInstantiateEvent event = new ResourceWorldInstantiateEvent(this, name);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
if (event.isCancelled()) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user