3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +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:
Aikar 2013-12-02 20:09:22 -05:00 committet von Wesley Wolfe
Ursprung c5d8b4393a
Commit 9969a86e83

Datei anzeigen

@ -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();
}