File tree 1 file changed +3
-7
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/home
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -52,18 +52,14 @@ class EntryPoint : EssBase() {
52
52
53
53
private fun loadAdditionalModules () {
54
54
try {
55
- Class .forName(
56
- " com.mairwunnx.projectessentials.cooldown.essentials.CommandsAliases"
57
- )
55
+ Class .forName(cooldownAPIClassPath)
58
56
cooldownsInstalled = true
59
57
} catch (_: ClassNotFoundException ) {
60
58
// ignored
61
59
}
62
60
63
61
try {
64
- Class .forName(
65
- " com.mairwunnx.projectessentials.permissions.permissions.PermissionsAPI"
66
- )
62
+ Class .forName(permissionAPIClassPath)
67
63
permissionsInstalled = true
68
64
} catch (_: ClassNotFoundException ) {
69
65
// ignored
@@ -79,7 +75,7 @@ class EntryPoint : EssBase() {
79
75
if (permissionsInstalled) {
80
76
PermissionsAPI .hasPermission(player.name.string, node)
81
77
} else {
82
- player.server.opPermissionLevel >= opLevel
78
+ player.hasPermissionLevel( opLevel)
83
79
}
84
80
}
85
81
}
You can’t perform that action at this time.
0 commit comments