File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
core/src/main/java/org/geysermc/geyser/command/defaults Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3434
3535import java .util .concurrent .TimeUnit ;
3636
37+ import static org .geysermc .geyser .command .defaults .ReloadMappingsCommand .reloadMappings ;
38+
3739public class ReloadCommand extends GeyserCommand {
3840
3941 private final GeyserImpl geyser ;
@@ -50,6 +52,10 @@ public void execute(CommandContext<GeyserCommandSource> context) {
5052
5153 geyser .getSessionManager ().disconnectAll ("geyser.commands.reload.kick" );
5254 //FIXME Without the tiny wait, players do not get kicked - same happens when Geyser tries to disconnect all sessions on shutdown
53- geyser .getScheduledThread ().schedule (geyser ::reloadGeyser , 10 , TimeUnit .MILLISECONDS );
55+ geyser .getScheduledThread ().schedule (() -> {
56+ geyser .reloadGeyser ();
57+ reloadMappings ();
58+ }, 10 , TimeUnit .MILLISECONDS );
59+
5460 }
5561}
You can’t perform that action at this time.
0 commit comments