Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
Added callHook method to WorldServer so we can get callEvents from
any world instance
Dieser Commit ist enthalten in:
Ursprung
a9191c24b3
Commit
4d05943bab
@ -4,6 +4,7 @@ package net.minecraft.server;
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
import org.bukkit.craftbukkit.CraftWorld;
|
||||
import org.bukkit.event.Event;
|
||||
|
||||
|
||||
public class WorldServer extends World {
|
||||
@ -41,6 +42,10 @@ public class WorldServer extends World {
|
||||
public CraftWorld getWorld() {
|
||||
return world;
|
||||
}
|
||||
|
||||
public void callHook(Event event) {
|
||||
D.server.getPluginManager().callEvent(event);
|
||||
}
|
||||
// CraftBukkit stop
|
||||
|
||||
public void f() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren