From 40e6a23369587e1ad63996865b490a5fd6b8c82f Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Tue, 28 Dec 2010 15:51:45 +0000 Subject: [PATCH] Fixed sample plugin --- sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java b/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java index 6b348aff..95fe2299 100644 --- a/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java +++ b/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java @@ -34,7 +34,7 @@ public class SamplePlugin extends JavaPlugin { } private void registerEvents() { - getServer().getPluginManager().registerEvent(Event.Type.JOIN, playerListener, Priority.Normal, this); - getServer().getPluginManager().registerEvent(Event.Type.QUIT, playerListener, Priority.Normal, this); + getServer().getPluginManager().registerEvent(Event.Type.PLAYER_JOIN, playerListener, Priority.Normal, this); + getServer().getPluginManager().registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this); } }