mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
SPIGOT-4258: Add Player.updateCommands method
This commit is contained in:
parent
b47946ff19
commit
15da706706
1 changed files with 7 additions and 0 deletions
|
@ -1618,4 +1618,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
public String getLocale() {
|
public String getLocale() {
|
||||||
return getHandle().locale;
|
return getHandle().locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateCommands() {
|
||||||
|
if (getHandle().playerConnection == null) return;
|
||||||
|
|
||||||
|
getHandle().server.getCommandDispatcher().a(getHandle());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue