Archiviert
13
0

Changed event calling to reflect new event structure

Dieser Commit ist enthalten in:
Dinnerbone 2010-12-28 15:41:36 +00:00
Ursprung b04fa07b45
Commit 656f8a8e40

Datei anzeigen

@ -11,8 +11,8 @@ import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.event.Event.Type;
import org.bukkit.event.player.PlayerEvent;
import org.bukkit.event.player.PlayerEvent.EventType;
public class ServerConfigurationManager {
@ -68,7 +68,7 @@ public class ServerConfigurationManager {
this.d.a(paramEntityPlayerMP);
// Craftbukkit
server.getPluginManager().callEvent(EventType.Join, new PlayerEvent(server, server.getPlayer(paramEntityPlayerMP)));
server.getPluginManager().callEvent(new PlayerEvent(Type.PLAYER_JOIN, server.getPlayer(paramEntityPlayerMP)));
}
public void b(EntityPlayerMP paramEntityPlayerMP) {
@ -82,7 +82,7 @@ public class ServerConfigurationManager {
this.d.b(paramEntityPlayerMP);
// Craftbukkit
server.getPluginManager().callEvent(EventType.Quit, new PlayerEvent(server, server.getPlayer(paramEntityPlayerMP)));
server.getPluginManager().callEvent(new PlayerEvent(Type.PLAYER_QUIT, server.getPlayer(paramEntityPlayerMP)));
}
public EntityPlayerMP a(NetLoginHandler paramNetLoginHandler, String paramString1, String paramString2) {