mirror of
https://github.com/BentoBoxWorld/Limits.git
synced 2024-11-26 04:25:41 +01:00
commit
0cb42d3019
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user