summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-12 09:40:51 +1000
committermd_5 <git@md-5.net>2018-08-12 09:40:51 +1000
commit14fcd896c987d77df80cfb8ff03c6b30bf015fc9 (patch)
treebbba85faed5d083e5d17591ac6cbeca095403abb /src
parent1f85e52623dbf90e6d6f482660b34cb15f8f0f1b (diff)
downloadbukkit-14fcd896c987d77df80cfb8ff03c6b30bf015fc9.tar
bukkit-14fcd896c987d77df80cfb8ff03c6b30bf015fc9.tar.gz
bukkit-14fcd896c987d77df80cfb8ff03c6b30bf015fc9.tar.lz
bukkit-14fcd896c987d77df80cfb8ff03c6b30bf015fc9.tar.xz
bukkit-14fcd896c987d77df80cfb8ff03c6b30bf015fc9.zip
SPIGOT-4258: Add Player.updateCommands method
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/Player.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index 088b2163..c59d93b7 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -1484,4 +1484,12 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
* @return the player's locale
*/
public String getLocale();
+
+ /**
+ * Update the list of commands sent to the client.
+ * <br>
+ * Generally useful to ensure the client has a complete list of commands
+ * after permission changes are done.
+ */
+ public void updateCommands();
}