mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-07 19:40:23 +01:00
Its a good idea to actually register the listeners
This commit is contained in:
parent
0252d756f6
commit
7633b136e3
@ -13,7 +13,6 @@ import org.bukkit.event.Listener;
|
|||||||
import org.bukkit.event.player.PlayerChatEvent;
|
import org.bukkit.event.player.PlayerChatEvent;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.plugin.PluginManager;
|
|
||||||
|
|
||||||
|
|
||||||
public class UpdateProcess implements Listener
|
public class UpdateProcess implements Listener
|
||||||
@ -32,7 +31,7 @@ public class UpdateProcess implements Listener
|
|||||||
|
|
||||||
public void registerEvents()
|
public void registerEvents()
|
||||||
{
|
{
|
||||||
final PluginManager pluginManager = plugin.getServer().getPluginManager();
|
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean selfUpdate()
|
public boolean selfUpdate()
|
||||||
|
Loading…
Reference in New Issue
Block a user