Archiviert
13
0

Changed quit to use PlayerEvent

Dieser Commit ist enthalten in:
Dinnerbone 2010-12-27 02:12:38 +00:00
Ursprung 01a0562cab
Commit b5aa876278

Datei anzeigen

@ -10,11 +10,9 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
import org.bukkit.Server;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.event.player.PlayerEvent;
import org.bukkit.event.player.PlayerEvent.EventType;
import org.bukkit.event.player.PlayerQuitEvent;
public class ServerConfigurationManager {
@ -84,7 +82,7 @@ public class ServerConfigurationManager {
this.d.b(paramEntityPlayerMP);
// Craftbukkit
server.getPluginManager().callEvent(EventType.Quit, new PlayerQuitEvent(server, server.getPlayer(paramEntityPlayerMP), PlayerQuitEvent.PlayerQuitReason.Disconnected));
server.getPluginManager().callEvent(EventType.Quit, new PlayerEvent(server, server.getPlayer(paramEntityPlayerMP)));
}
public EntityPlayerMP a(NetLoginHandler paramNetLoginHandler, String paramString1, String paramString2) {