3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-09-08 20:43:04 +02:00

Add a config option for toggling showing coordinates (#1645)

Dieser Commit ist enthalten in:
Camotoy 2020-12-10 11:13:36 -05:00 committet von GitHub
Ursprung 91cdda95db
Commit 87c52ad524
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
4 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -71,6 +71,8 @@ public interface GeyserConfiguration {
boolean isShowCooldown();
boolean isShowCoordinates();
String getDefaultLocale();
Path getFloodgateKeyPath();

Datei anzeigen

@ -89,6 +89,9 @@ public abstract class GeyserJacksonConfiguration implements GeyserConfiguration
@JsonProperty("show-cooldown")
private boolean showCooldown = true;
@JsonProperty("show-coordinates")
private boolean showCoordinates = true;
@JsonProperty("allow-third-party-ears")
private boolean allowThirdPartyEars = false;

Datei anzeigen

@ -673,7 +673,7 @@ public class GeyserSession implements CommandSender {
startGamePacket.setLightningLevel(0);
startGamePacket.setMultiplayerGame(true);
startGamePacket.setBroadcastingToLan(true);
startGamePacket.getGamerules().add(new GameRuleData<>("showcoordinates", true));
startGamePacket.getGamerules().add(new GameRuleData<>("showcoordinates", connector.getConfig().isShowCoordinates()));
startGamePacket.setPlatformBroadcastMode(GamePublishSetting.PUBLIC);
startGamePacket.setXblBroadcastMode(GamePublishSetting.PUBLIC);
startGamePacket.setCommandsEnabled(!connector.getConfig().isXboxAchievementsEnabled());

Datei anzeigen

@ -90,6 +90,9 @@ allow-third-party-ears: false
# Allow a fake cooldown indicator to be sent. Bedrock players do not see a cooldown as they still use 1.8 combat
show-cooldown: true
# Controls if coordinates are shown to players.
show-coordinates: true
# The default locale if we dont have the one the client requested. Uncomment to not use the default system language.
# default-locale: en_us