diff options
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index c10816cf..a8b0bc4e 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1618,4 +1618,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player { public String getLocale() { return getHandle().locale; } + + @Override + public void updateCommands() { + if (getHandle().playerConnection == null) return; + + getHandle().server.getCommandDispatcher().a(getHandle()); + } } |