Merge pull request #199 from BentoBoxWorld/develop

Version 1.23.0
This commit is contained in:
tastybento 2024-09-19 21:54:53 -07:00 committed by GitHub
commit 0cb42d3019
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -64,7 +64,7 @@
<!-- Do not change unless you want different name for local builds. --> <!-- Do not change unless you want different name for local builds. -->
<build.number>-LOCAL</build.number> <build.number>-LOCAL</build.number>
<!-- This allows to change between versions. --> <!-- This allows to change between versions. -->
<build.version>1.22.0</build.version> <build.version>1.23.0</build.version>
<sonar.projectKey>BentoBoxWorld_Limits</sonar.projectKey> <sonar.projectKey>BentoBoxWorld_Limits</sonar.projectKey>
<sonar.organization>bentobox-world</sonar.organization> <sonar.organization>bentobox-world</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url> <sonar.host.url>https://sonarcloud.io</sonar.host.url>

View File

@ -210,10 +210,13 @@ public class Limits extends Addon {
if (is == null) { if (is == null) {
return LIMIT_NOT_SET; return LIMIT_NOT_SET;
} }
if (user != null) {
// Check the permissions of the user and update
this.getJoinListener().checkPerms(user.getPlayer(), gm.getPermissionPrefix() + "island.limit.",
is.getUniqueId(), gm.getDescription().getName());
}
int limit = this.getBlockLimitListener(). int limit = this.getBlockLimitListener().
getMaterialLimits(is.getWorld(), is.getUniqueId()). getMaterialLimits(is.getWorld(), is.getUniqueId()).getOrDefault(m, -1);
getOrDefault(m, -1);
return limit == -1 ? LIMIT_NOT_SET : String.valueOf(limit); return limit == -1 ? LIMIT_NOT_SET : String.valueOf(limit);
} }