Listen for player joins for MOTD
This commit is contained in:
parent
3082fb850d
commit
cd4f8fc793
@ -44,5 +44,6 @@ public class Plugin extends JavaPlugin {
|
|||||||
String url = conf.getString("url");
|
String url = conf.getString("url");
|
||||||
m_listener.setURL(url);
|
m_listener.setURL(url);
|
||||||
pm.registerEvent(Event.Type.PLAYER_LOGIN, m_listener, Event.Priority.Normal, this);
|
pm.registerEvent(Event.Type.PLAYER_LOGIN, m_listener, Event.Priority.Normal, this);
|
||||||
|
pm.registerEvent(Event.Type.PLAYER_JOIN, m_listener, Event.Priority.Normal, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user