File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/spawn Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -84,18 +84,14 @@ class EntryPoint : EssBase() {
84
84
85
85
private fun loadAdditionalModules () {
86
86
try {
87
- Class .forName(
88
- " com.mairwunnx.projectessentials.cooldown.essentials.CommandsAliases"
89
- )
87
+ Class .forName(cooldownAPIClassPath)
90
88
cooldownsInstalled = true
91
89
} catch (_: ClassNotFoundException ) {
92
90
// ignored
93
91
}
94
92
95
93
try {
96
- Class .forName(
97
- " com.mairwunnx.projectessentials.permissions.permissions.PermissionsAPI"
98
- )
94
+ Class .forName(permissionAPIClassPath)
99
95
permissionsInstalled = true
100
96
} catch (_: ClassNotFoundException ) {
101
97
// ignored
@@ -111,7 +107,7 @@ class EntryPoint : EssBase() {
111
107
if (permissionsInstalled) {
112
108
PermissionsAPI .hasPermission(player.name.string, node)
113
109
} else {
114
- player.server.opPermissionLevel >= opLevel
110
+ player.hasPermissionLevel( opLevel)
115
111
}
116
112
}
117
113
}
You can’t perform that action at this time.
0 commit comments