1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-31 21:37:57 +01:00

Initialize PistonProtectionListener in any case

This commit is contained in:
Zrips 2016-06-27 14:56:01 +03:00
parent 5414133dc3
commit b0a699433a

View File

@ -114,8 +114,8 @@ public class JobsPlugin extends JavaPlugin {
getServer().getPluginManager().registerEvents(new MythicMobsListener(this), this);
}
Jobs.setPistonProtectionListener(this);
if (Jobs.getGCManager().useBlockProtection) {
Jobs.setPistonProtectionListener(this);
getServer().getPluginManager().registerEvents(Jobs.getPistonProtectionListener(), this);
}