Skip to content

Commit 339e2e6

Browse files
committed
use .register to register event
1 parent 1a74c74 commit 339e2e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/maxgamer/quickshop/QuickShop.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,10 +902,10 @@ public final void onEnable() {
902902
new ShopProtectionListener(this, this.shopCache).register();
903903
new PluginListener(this).register();
904904
new EconomySetupListener(this).register();
905-
// shopVaildWatcher = new ShopVaildWatcher(this);
906-
ongoingFeeWatcher = new OngoingFeeWatcher(this);
907905
InternalListener internalListener = new InternalListener(this);
908-
Bukkit.getPluginManager().registerEvents(internalListener, this);
906+
internalListener.register();
907+
ongoingFeeWatcher = new OngoingFeeWatcher(this);
908+
909909
if (this.display && AbstractDisplayItem.getNowUsing() != DisplayType.VIRTUALITEM) {
910910
displayWatcher = new DisplayWatcher(this);
911911
new DisplayProtectionListener(this, this.shopCache).register();

0 commit comments

Comments
 (0)