This commit is contained in:
KillerBossOriginal 2024-07-06 17:00:13 +02:00
parent 999bf0aebc
commit f681be204a

View file

@ -2,7 +2,7 @@ package org.thundernetwork.permissionchecker
fun checkSingle(permission: String, requiredPermission: String): Boolean { fun checkSingle(permission: String, requiredPermission: String): Boolean {
var answer = false var answer = false
if (permission === "*") answer = true if (permission == "*") answer = true
else { else {
val subRP = requiredPermission.split('.') val subRP = requiredPermission.split('.')
val sub = permission.split('.') val sub = permission.split('.')