mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Improve /op and /deop command matching
This commit is contained in:
parent
757e9d6be6
commit
ef31db1431
@ -75,8 +75,8 @@ public class BukkitPlatformListener implements Listener {
|
||||
s = s.substring(1);
|
||||
}
|
||||
|
||||
if (s.startsWith("minecraft:")) {
|
||||
s = s.substring("minecraft:".length());
|
||||
if (s.contains(":")) {
|
||||
s = s.substring(s.indexOf(':') + 1);
|
||||
}
|
||||
|
||||
if (s.equals("op") || s.startsWith("op ") || s.equals("deop") || s.startsWith("deop ")) {
|
||||
|
@ -75,8 +75,8 @@ public class NukkitPlatformListener implements Listener {
|
||||
s = s.substring(1);
|
||||
}
|
||||
|
||||
if (s.startsWith("minecraft:")) {
|
||||
s = s.substring("minecraft:".length());
|
||||
if (s.contains(":")) {
|
||||
s = s.substring(s.indexOf(':') + 1);
|
||||
}
|
||||
|
||||
if (s.equals("op") || s.startsWith("op ") || s.equals("deop") || s.startsWith("deop ")) {
|
||||
|
Loading…
Reference in New Issue
Block a user