mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-12 20:32:00 -05:00
SPIGOT-4258: Add Player.updateCommands method
This commit is contained in:
1 parent
b47946ff19
commit
15da706706
1 file changed
+7
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user