Call ResourceWorldInstantiateEvent; resolves #705

This commit is contained in:
Daniel Saukel 2021-01-03 18:05:45 +01:00
parent 91a2cee297
commit 8d7e0a552e

View File

@ -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;
}