summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/ServerConfigurationManager.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
index 5b41812a..0d8d6219 100644
--- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java
+++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
@@ -431,11 +431,25 @@ public class ServerConfigurationManager {
public void e(String s) {
this.h.add(s.toLowerCase());
this.l();
+
+ // Craftbukkit start
+ Player player = server.server.getPlayer(s);
+ if (player != null) {
+ player.recalculatePermissions();
+ }
+ // Craftbukkit end
}
public void f(String s) {
this.h.remove(s.toLowerCase());
this.l();
+
+ // Craftbukkit start
+ Player player = server.server.getPlayer(s);
+ if (player != null) {
+ player.recalculatePermissions();
+ }
+ // Craftbukkit end
}
private void k() {