mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 03:55:35 +01:00
Prevent duplicate ZNPCsPlus 2.x listener
This commit is contained in:
parent
3359fd3175
commit
7a581532cf
@ -216,9 +216,7 @@ public class BukkitQuestsPlugin extends JavaPlugin implements Quests {
|
|||||||
if (depends.getZnpcsPlus() != null) {
|
if (depends.getZnpcsPlus() != null) {
|
||||||
getServer().getPluginManager().registerEvents(getZnpcsListener(), this);
|
getServer().getPluginManager().registerEvents(getZnpcsListener(), this);
|
||||||
}
|
}
|
||||||
if (depends.getZnpcsPlusApi() != null) {
|
depends.linkZnpcsPlusApi();
|
||||||
getServer().getPluginManager().registerEvents(getZNpcsPlusListener(), this);
|
|
||||||
}
|
|
||||||
getServer().getPluginManager().registerEvents(getPlayerListener(), this);
|
getServer().getPluginManager().registerEvents(getPlayerListener(), this);
|
||||||
if (configSettings.getStrictPlayerMovement() > 0) {
|
if (configSettings.getStrictPlayerMovement() > 0) {
|
||||||
final long ticks = configSettings.getStrictPlayerMovement() * 20L;
|
final long ticks = configSettings.getStrictPlayerMovement() * 20L;
|
||||||
|
Loading…
Reference in New Issue
Block a user