Skip to content

Commit 112c21e

Browse files
committed
Limitations checking improved.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 27ac4e7 commit 112c21e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/home/commands/SetHomeCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ object SetHomeCommand : CommandBase(setHomeLiteral, false) {
6868
user: HomeConfigurationModel.User?
6969
): Boolean {
7070
if (hasPermission(player, "ess.home.limit.except", 4)) return false
71-
var allowed = 1
71+
var allowed = Int.MAX_VALUE
7272
homeSettingsConfiguration.homeLimitations.also { map ->
7373
homeSettingsConfiguration.homeLimitations.keys.asSequence().forEach {
7474
if (hasPermission(player, "ess.home.limit.$it", 0)) {

0 commit comments

Comments
 (0)