Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 14:00:11 +01:00
Use strict lookup for op permission refresh. Fixes BUKKIT-4698
Adding or removing operators was mistakenly using a loose player lookup method, which would cause a permission refreshes on an online player whos name starts with the name of the (offline) opped player. Add/Remove op operations are exact name match only and the permission refresh will behave the same way.
Dieser Commit ist enthalten in:
Ursprung
c5d8b4393a
Commit
9969a86e83
@ -819,7 +819,7 @@ public abstract class PlayerList {
|
||||
this.operators.add(s.toLowerCase());
|
||||
|
||||
// CraftBukkit start
|
||||
Player player = server.server.getPlayer(s);
|
||||
Player player = server.server.getPlayerExact(s);
|
||||
if (player != null) {
|
||||
player.recalculatePermissions();
|
||||
}
|
||||
@ -830,7 +830,7 @@ public abstract class PlayerList {
|
||||
this.operators.remove(s.toLowerCase());
|
||||
|
||||
// CraftBukkit start
|
||||
Player player = server.server.getPlayer(s);
|
||||
Player player = server.server.getPlayerExact(s);
|
||||
if (player != null) {
|
||||
player.recalculatePermissions();
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren