Prevent duplicate ZNPCsPlus 2.x listener

This commit is contained in:
PikaMug 2023-12-05 00:26:33 -05:00
parent 3359fd3175
commit 7a581532cf

View File

@ -216,9 +216,7 @@ public class BukkitQuestsPlugin extends JavaPlugin implements Quests {
if (depends.getZnpcsPlus() != null) {
getServer().getPluginManager().registerEvents(getZnpcsListener(), this);
}
if (depends.getZnpcsPlusApi() != null) {
getServer().getPluginManager().registerEvents(getZNpcsPlusListener(), this);
}
depends.linkZnpcsPlusApi();
getServer().getPluginManager().registerEvents(getPlayerListener(), this);
if (configSettings.getStrictPlayerMovement() > 0) {
final long ticks = configSettings.getStrictPlayerMovement() * 20L;