diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-07-17 17:19:41 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-07-17 17:19:41 +0100 |
commit | 5d2a1958358cb86643ae16ad4f65c650678a1983 (patch) | |
tree | ce46be7585fcb7bc29eb942734db187a5615f0c9 /src/main/java/net/minecraft | |
parent | cc9ccc8976a5c3ca9092a421413e2cc2224d5147 (diff) | |
download | craftbukkit-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.java | 14 |
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() { |