mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
SPIGOT-4258: Add Player.updateCommands method
By: md_5 <git@md-5.net>
This commit is contained in:
parent
408d2a55d6
commit
277f0db6c9
1 changed files with 7 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue