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:
parent
5414133dc3
commit
b0a699433a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user