mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 10:29:48 -05:00
Push to build
Former-commit-id: 9c14b01474e1aec2d43201bc1a72f831a8e09c1e
This commit is contained in:
1 parent
cac266e6e2
commit
b597615a66
1 file changed
+9
@@ -447,6 +447,10 @@ public class ShopManager {
|
||||
p.sendMessage("Error: Economy system not loaded, type /qs main command to get details.");
|
||||
return;
|
||||
}
|
||||
if(!plugin.getIntegrationHelper().callIntegrationsCanTrade(p,info.getLocation())){
|
||||
Util.debugLog("Cancel by integrations.");
|
||||
return;
|
||||
}
|
||||
Economy eco = plugin.getEconomy();
|
||||
|
||||
// Get the shop they interacted with
|
||||
@@ -679,6 +683,11 @@ public class ShopManager {
|
||||
}
|
||||
ShopCreateEvent ssShopCreateEvent = new ShopCreateEvent(shop, player);
|
||||
if (Util.fireCancellableEvent(ssShopCreateEvent)) {
|
||||
Util.debugLog("Cancelled by plugin");
|
||||
return;
|
||||
}
|
||||
if(!plugin.getIntegrationHelper().callIntegrationsCanCreate(player,info.getLocation())){
|
||||
Util.debugLog("Cancelled by integrations");
|
||||
return;
|
||||
}
|
||||
Location loc = shop.getLocation();
|
||||
|
||||
Reference in new issue
Block a user