8000 Use Player#updateCommands instead of `resendPackets` · willkroboth/CommandAPI@f943c19 · GitHub
[go: up one dir, main page]

Skip to content

Commit f943c19

Browse files
committed
Use Player#updateCommands instead of resendPackets
Rebased CommandAPI#471 into runtime registering (CommandAPI#417)
1 parent 58588ea commit f943c19

File tree

1 file changed

+2
-2
lines changed
  • commandapi-platforms/commandapi-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi

1 file changed

+2
-2
lines changed

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/CommandAPIBukkit.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ public void postCommandRegistration(RegisteredCommand registeredCommand, Literal
478478

479479
// Sending command dispatcher packets usually happens when Players join the server
480480
for(Player p: Bukkit.getOnlinePlayers()) {
481-
resendPackets(p);
481+
p.updateCommands();
482482
}
483483
}
484484
}
@@ -529,7 +529,7 @@ public void unregister(String commandName, boolean force) {
529529
getHelpMap().remove("/" + commandName);
530530

531531
for (Player p : Bukkit.getOnlinePlayers()) {
532-
resendPackets(p);
532+
p.updateCommands();
533533
}
534534
}
535535
}

0 commit comments

Comments
 (0)
0