mirror of
https://github.com/CarmJos/MoeTeleport.git
synced 2026-06-04 07:48:16 +08:00
判断时添加权限节点前缀
This commit is contained in:
@@ -44,7 +44,9 @@ public class UserManager {
|
||||
Map<String, Integer> permissions = PluginConfig.PERMISSIONS.get();
|
||||
int value = PluginConfig.DEFAULT_HOME.get();
|
||||
for (Map.Entry<String, Integer> entry : permissions.entrySet()) {
|
||||
if (entry.getValue() > value && player.hasPermission(entry.getKey())) {
|
||||
if (entry.getValue() > value && player.hasPermission(
|
||||
Main.getInstance().getName() + "." + entry.getKey()
|
||||
)) {
|
||||
value = entry.getValue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user