properly register Plot listener

This commit is contained in:
HgeX 2021-03-18 08:19:50 +01:00 committed by GitHub
parent 54c9d2b515
commit 976b30f4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -459,8 +459,11 @@ public class ShopChest extends JavaPlugin {
getServer().getPluginManager().registerEvents(new GriefPreventionListener(this), this);
if (hasIslandWorld())
getServer().getPluginManager().registerEvents(new IslandWorldListener(this), this);
if (hasPlotSquared())
getServer().getPluginManager().registerEvents(new PlotSquaredListener(this), this);
if (hasPlotSquared()) {
PlotSquaredListener psListener = new PlotSquaredListener(this);
getServer().getPluginManager().registerEvents(psListener, this);
PlotSquared.get().getEventDispatcher().registerListener(psListener);
}
if (hasTowny())
getServer().getPluginManager().registerEvents(new TownyListener(this), this);
if (hasUSkyBlock())