mirror of
https://github.com/BentoBoxWorld/Limits.git
synced 2024-09-27 14:12:57 +02:00
Config option to ignore custom limits perms
This commit is contained in:
parent
8e21458a7a
commit
4a10db503a
@ -39,6 +39,9 @@ public class JoinListener implements Listener {
|
||||
}
|
||||
|
||||
private void checkPerms(Player player, String permissionPrefix, String islandId, String gameMode) {
|
||||
if (!addon.getConfig().getBoolean("usepermissions", true)) {
|
||||
return;
|
||||
}
|
||||
IslandBlockCount ibc = addon.getBlockLimitListener().getIsland(islandId);
|
||||
if (ibc != null) {
|
||||
// Clear permission limits
|
||||
|
@ -10,6 +10,10 @@ gamemodes:
|
||||
# example: bskyblock.island.limit.hopper.10
|
||||
# permission activates when player logs in.
|
||||
#
|
||||
#¿Do you want to use perms to add custom limits to islands?
|
||||
#Set it to false if you are a developer and want to handle the custom limit via code
|
||||
usepermissions: true
|
||||
|
||||
# Cooldown for player recount command in seconds
|
||||
cooldown: 120
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user