From 14fcd896c987d77df80cfb8ff03c6b30bf015fc9 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 12 Aug 2018 09:40:51 +1000 Subject: SPIGOT-4258: Add Player.updateCommands method --- src/main/java/org/bukkit/entity/Player.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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. + *
+ * Generally useful to ensure the client has a complete list of commands + * after permission changes are done. + */ + public void updateCommands(); } -- cgit v1.2.3