summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-07-17 17:19:41 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-07-17 17:19:41 +0100
commit5d2a1958358cb86643ae16ad4f65c650678a1983 (patch)
treece46be7585fcb7bc29eb942734db187a5615f0c9 /src/main/java/net/minecraft
parentcc9ccc8976a5c3ca9092a421413e2cc2224d5147 (diff)
downloadcraftbukkit-5d2a1958358cb86643ae16ad4f65c650678a1983.tar
craftbukkit-5d2a1958358cb86643ae16ad4f65c650678a1983.tar.gz
craftbukkit-5d2a1958358cb86643ae16ad4f65c650678a1983.tar.lz
craftbukkit-5d2a1958358cb86643ae16ad4f65c650678a1983.tar.xz
craftbukkit-5d2a1958358cb86643ae16ad4f65c650678a1983.zip
Implemented new permission system
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() {