mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Add more details in debug log for BlockHub.
Former-commit-id: 5a16bfa2cb8953965fa1639719d55a6ea1490e94
This commit is contained in:
1 parent
834662b7c0
commit
eb01226b6e
1 file changed
+2
@@ -73,9 +73,11 @@ public class PermissionChecker {
|
||||
BlocksHubBukkit blocksHubBukkit = (BlocksHubBukkit) plugin.getBlockHubPlugin();
|
||||
boolean bhCanBuild = blocksHubBukkit.getApi().hasAccess(player.getUniqueId(), blocksHubBukkit.getApi().getWorld(block.getWorld().getName()), block.getX(), block.getY(), block.getZ());
|
||||
if (plugin.getConfig().getBoolean("plugin.BlockHub.only")) {
|
||||
Util.debugLog("BlockHub only mode response: " + bhCanBuild);
|
||||
return bhCanBuild;
|
||||
} else {
|
||||
if (!bhCanBuild) {
|
||||
Util.debugLog("BlockHub reporting player no permission to access this region.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user