From de10dba6403a328e98096aa14179d3ae45540510 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 28 Dec 2010 15:51:45 +0000 Subject: [PATCH] Fixed sample plugin By: Dinnerbone --- .../sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-api/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java b/paper-api/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java index 6b348aff1a..95fe2299ce 100644 --- a/paper-api/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java +++ b/paper-api/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); } }