From b5aa87627835c783962b564e452d8ccde65946b1 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Mon, 27 Dec 2010 02:12:38 +0000 Subject: [PATCH] Changed quit to use PlayerEvent --- src/net/minecraft/server/ServerConfigurationManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/net/minecraft/server/ServerConfigurationManager.java b/src/net/minecraft/server/ServerConfigurationManager.java index 7a91387ca8..bf1dddc69f 100644 --- a/src/net/minecraft/server/ServerConfigurationManager.java +++ b/src/net/minecraft/server/ServerConfigurationManager.java @@ -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) {