Add isForceDefaultGameMode method (#12673)

This commit is contained in:
David
2025-06-21 13:10:11 +02:00
committed by GitHub
parent 5652882134
commit c0dda0ea14
3 changed files with 23 additions and 2 deletions

View File

@ -2295,6 +2295,11 @@ public final class CraftServer implements Server {
}
}
@Override
public boolean forcesDefaultGameMode() {
return this.console.getProperties().forceGameMode;
}
@Override
public ConsoleCommandSender getConsoleSender() {
return this.console.console;