Skip to content

Commit f6b6e98

Browse files
committed
fix: ReloadCommand Now Reloads Mappings Too.
1 parent 0af88ce commit f6b6e98

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/src/main/java/org/geysermc/geyser/command/defaults/ReloadCommand.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
import java.util.concurrent.TimeUnit;
3636

37+
import static org.geysermc.geyser.command.defaults.ReloadMappingsCommand.reloadMappings;
38+
3739
public 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
}

0 commit comments

Comments
 (0)