geforkt von Mirrors/Paper
Added call to new event on world save (at stop and force save). (Per EyvindRM)
Dieser Commit ist enthalten in:
Ursprung
0592b334f6
Commit
7988345368
@ -18,6 +18,8 @@ import joptsimple.OptionSet;
|
|||||||
import org.bukkit.command.ConsoleCommandSender;
|
import org.bukkit.command.ConsoleCommandSender;
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.craftbukkit.scheduler.CraftScheduler;
|
import org.bukkit.craftbukkit.scheduler.CraftScheduler;
|
||||||
|
import org.bukkit.event.Event;
|
||||||
|
import org.bukkit.event.world.WorldEvent;
|
||||||
//CraftBukkit end
|
//CraftBukkit end
|
||||||
|
|
||||||
public class MinecraftServer implements ICommandListener, Runnable {
|
public class MinecraftServer implements ICommandListener, Runnable {
|
||||||
@ -173,6 +175,9 @@ public class MinecraftServer implements ICommandListener, Runnable {
|
|||||||
// Craftbukkit start
|
// Craftbukkit start
|
||||||
for (WorldServer world : worlds) {
|
for (WorldServer world : worlds) {
|
||||||
world.a(true, (IProgressUpdate) null);
|
world.a(true, (IProgressUpdate) null);
|
||||||
|
|
||||||
|
Event worldSaved = new WorldEvent( Event.Type.WORLD_SAVED, world.getWorld() );
|
||||||
|
server.getPluginManager().callEvent( worldSaved );
|
||||||
}
|
}
|
||||||
// Craftbukkit end
|
// Craftbukkit end
|
||||||
}
|
}
|
||||||
@ -351,6 +356,9 @@ public class MinecraftServer implements ICommandListener, Runnable {
|
|||||||
// Craftbukkit start
|
// Craftbukkit start
|
||||||
for (WorldServer world : worlds) {
|
for (WorldServer world : worlds) {
|
||||||
world.a(true, (IProgressUpdate) null);
|
world.a(true, (IProgressUpdate) null);
|
||||||
|
|
||||||
|
Event worldSaved = new WorldEvent( Event.Type.WORLD_SAVED, world.getWorld() );
|
||||||
|
server.getPluginManager().callEvent( worldSaved );
|
||||||
}
|
}
|
||||||
|
|
||||||
this.f.d();
|
this.f.d();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren