Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 13:00:06 +01:00
Fire WorldLoad events on default worlds for plugins who load:startup
Dieser Commit ist enthalten in:
Ursprung
7f0126a364
Commit
e73b10cf9e
@ -25,6 +25,7 @@ import org.bukkit.craftbukkit.command.ColouredConsoleSender;
|
||||
import org.bukkit.craftbukkit.scheduler.CraftScheduler;
|
||||
import org.bukkit.craftbukkit.util.ServerShutdownThread;
|
||||
import org.bukkit.event.world.WorldInitEvent;
|
||||
import org.bukkit.event.world.WorldLoadEvent;
|
||||
import org.bukkit.event.world.WorldSaveEvent;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import org.bukkit.plugin.PluginLoadOrder;
|
||||
@ -261,6 +262,12 @@ public class MinecraftServer implements Runnable, ICommandListener {
|
||||
// } // CraftBukkit
|
||||
}
|
||||
|
||||
// Craftbukkit start
|
||||
for (World world : worlds) {
|
||||
server.getPluginManager().callEvent(new WorldLoadEvent(world.getWorld()));
|
||||
}
|
||||
// Craftbukkit end
|
||||
|
||||
this.e();
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren