mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix limit check missing bug, blame to me :(
Former-commit-id: ac89f95e78b5c7095645dc0f2b01c30033dfb572
This commit is contained in:
1 parent
461e146e82
commit
0a1e870738
2 files changed
+3
-6
No files matched your search
@@ -206,8 +206,8 @@ public class PlayerListener implements Listener {
|
||||
&& QuickShop.getPermissionManager().hasPermission(p, "quickshop.create.sell")
|
||||
&& p.getGameMode() != GameMode.CREATIVE) {
|
||||
if (e.useInteractedBlock() == Result.DENY
|
||||
|| plugin.getConfig().getBoolean("shop.sneak-to-create") && !p.isSneaking()){
|
||||
/*|| !plugin.getShopManager().canBuildShop(p, b, e.getBlockFace())*/
|
||||
|| plugin.getConfig().getBoolean("shop.sneak-to-create") && !p.isSneaking()
|
||||
|| !plugin.getShopManager().canBuildShop(p, b, e.getBlockFace())){
|
||||
// As of the new checking system, most plugins will tell the
|
||||
// player why they can't create a shop there.
|
||||
// So telling them a message would cause spam etc.
|
||||
|
||||
@@ -111,10 +111,6 @@ public class ShopManager {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!plugin.getPermissionChecker().canBuild(p, b)) {
|
||||
Util.debugLog("PermissionChecker canceled shop creation");
|
||||
return false;
|
||||
}
|
||||
ShopPreCreateEvent spce = new ShopPreCreateEvent(p, b.getLocation());
|
||||
Bukkit.getPluginManager().callEvent(spce);
|
||||
if (Util.fireCancellableEvent(spce)) {
|
||||
@@ -632,6 +628,7 @@ public class ShopManager {
|
||||
Util.debugLog("Calling for protection check...");
|
||||
// Fix openInv compatiable issue
|
||||
|
||||
|
||||
if (!bypassProtectionChecks) {
|
||||
plugin.getCompatibilityTool().toggleProtectionListeners(false, p);
|
||||
if (!plugin.getPermissionChecker().canBuild(p, info.getLocation())) {
|
||||
|
||||
Reference in new issue
Block a user