mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix build error
Former-commit-id: a0aed087de9bb3d5c84cbfee863719a565d2c026
This commit is contained in:
1 parent
77be725fef
commit
0d747090d8
5 files changed
+9
-19
No files matched your search
@@ -33,10 +33,6 @@ public class ClearLaggListener implements Listener {
|
||||
|
||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGH)
|
||||
public void plugin(me.minebuilders.clearlag.events.EntityRemoveEvent clearlaggEvent) {
|
||||
if (ListenerHelper.isDisabled(clearlaggEvent.getClass())) {
|
||||
return;
|
||||
}
|
||||
|
||||
final List<Entity> entities = clearlaggEvent.getEntityList();
|
||||
final List<Entity> pendingExclude = new ArrayList<>();
|
||||
|
||||
|
||||
@@ -39,8 +39,7 @@ public class DisplayBugFixListener implements Listener {
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void canBuild(BlockCanBuildEvent e) {
|
||||
if (ListenerHelper.isDisabled(e.getClass())
|
||||
|| !plugin.isDisplay()
|
||||
if (!plugin.isDisplay()
|
||||
|| DisplayItem.getNowUsing() != DisplayType.ARMORSTAND
|
||||
|| e.isBuildable()) {
|
||||
return;
|
||||
|
||||
@@ -79,7 +79,7 @@ public class ShopProtectionListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onBlockFromTo(BlockFromToEvent e) {
|
||||
if (ListenerHelper.isDisabled(e.getClass()) || !useEnhanceProtection) {
|
||||
if (!useEnhanceProtection) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ShopProtectionListener implements Listener {
|
||||
// Protect Redstone active shop
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onBlockRedstoneChange(BlockRedstoneEvent event) {
|
||||
if (ListenerHelper.isDisabled(event.getClass()) || !useEnhanceProtection) {
|
||||
if (!useEnhanceProtection) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ public class ShopProtectionListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onBlockSpread(BlockSpreadEvent e) {
|
||||
if (ListenerHelper.isDisabled(e.getClass()) || !useEnhanceProtection) {
|
||||
if (!useEnhanceProtection) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -155,9 +155,6 @@ public class ShopProtectionListener implements Listener {
|
||||
|
||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
public void onInventoryMove(InventoryMoveItemEvent event) {
|
||||
if (ListenerHelper.isDisabled(event.getClass())) {
|
||||
return;
|
||||
}
|
||||
|
||||
final Location loc = event.getSource().getLocation();
|
||||
|
||||
@@ -201,7 +198,7 @@ public class ShopProtectionListener implements Listener {
|
||||
// Protect Entity pickup shop
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onMobChangeBlock(EntityChangeBlockEvent event) {
|
||||
if (ListenerHelper.isDisabled(event.getClass()) || !useEnhanceProtection) {
|
||||
if (!useEnhanceProtection) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -222,7 +219,7 @@ public class ShopProtectionListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onStructureGrow(StructureGrowEvent event) {
|
||||
if (ListenerHelper.isDisabled(event.getClass()) || !useEnhanceProtection) {
|
||||
if (!useEnhanceProtection) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -244,7 +241,7 @@ public class ShopProtectionListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onSpongeing(SpongeAbsorbEvent event) {
|
||||
if (ListenerHelper.isDisabled(event.getClass()) || !useEnhanceProtection) {
|
||||
if (!useEnhanceProtection) {
|
||||
return;
|
||||
}
|
||||
List<BlockState> blocks = event.getBlocks();
|
||||
|
||||
@@ -67,7 +67,6 @@ public class PermissionChecker {
|
||||
|
||||
beMainHand = new BlockBreakEvent(block, player);
|
||||
// Call for event for protection check start
|
||||
ListenerHelper.disableEvent(beMainHand.getClass());
|
||||
Bukkit.getPluginManager()
|
||||
.callEvent(
|
||||
new ShopProtectionCheckEvent(
|
||||
@@ -80,7 +79,6 @@ public class PermissionChecker {
|
||||
.callEvent(
|
||||
new ShopProtectionCheckEvent(
|
||||
block.getLocation(), player, ProtectionCheckStatus.END, beMainHand));
|
||||
ListenerHelper.enableEvent(beMainHand.getClass());
|
||||
return !beMainHand.isCancelled();
|
||||
}
|
||||
}
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
package org.maxgamer.quickshop.Util;
|
||||
|
||||
import io.sentry.Sentry;
|
||||
import io.sentry.SentryClient;
|
||||
import io.sentry.SentryClientFactory;
|
||||
import io.sentry.context.Context;
|
||||
import io.sentry.event.BreadcrumbBuilder;
|
||||
import io.sentry.event.UserBuilder;
|
||||
@@ -64,7 +64,7 @@ public class SentryErrorReporter {
|
||||
this.plugin = plugin;
|
||||
// sentryClient = Sentry.init(dsn);
|
||||
Util.debugLog("Loading SentryErrorReporter");
|
||||
sentryClient = SentryClientFactory.create(dsn);;
|
||||
sentryClient = SentryClientFactory.sentryClient(dsn);;
|
||||
context = sentryClient.getContext();
|
||||
Util.debugLog("Setting basic report data...");
|
||||
// context.addTag("plugin_version", QuickShop.getVersion());
|
||||
|
||||
Reference in new issue
Block a user