Allow commands with xbox achievements enabled

This commit is contained in:
rtm516 2024-07-24 22:30:31 +01:00
parent a85b312b40
commit 7b39b0d95b
No known key found for this signature in database
GPG key ID: 331715B8B007C67A
3 changed files with 4 additions and 5 deletions

View file

@ -137,7 +137,7 @@ public abstract class GeyserJacksonConfiguration implements GeyserConfiguration
private boolean forceResourcePacks = true; private boolean forceResourcePacks = true;
@JsonProperty("xbox-achievements-enabled") @JsonProperty("xbox-achievements-enabled")
private boolean xboxAchievementsEnabled = false; private boolean xboxAchievementsEnabled = true;
@JsonProperty("log-player-ip-addresses") @JsonProperty("log-player-ip-addresses")
private boolean logPlayerIpAddresses = true; private boolean logPlayerIpAddresses = true;

View file

@ -169,8 +169,8 @@ public class JavaCommandsTranslator extends PacketTranslator<ClientboundCommands
return; return;
} }
// The command flags, not sure what these do apart from break things // The command flags, set to NOT_CHEAT, so we can enable achievements by default
Set<CommandData.Flag> flags = Set.of(); Set<CommandData.Flag> flags = Set.of(CommandData.Flag.NOT_CHEAT);
// Loop through all the found commands // Loop through all the found commands
for (Map.Entry<BedrockCommandInfo, Set<String>> entry : commands.entrySet()) { for (Map.Entry<BedrockCommandInfo, Set<String>> entry : commands.entrySet()) {

View file

@ -168,8 +168,7 @@ above-bedrock-nether-building: false
force-resource-packs: true force-resource-packs: true
# Allows Xbox achievements to be unlocked. # Allows Xbox achievements to be unlocked.
# THIS DISABLES ALL COMMANDS FROM SUCCESSFULLY RUNNING FOR BEDROCK IN-GAME, as otherwise Bedrock thinks you are cheating. xbox-achievements-enabled: true
xbox-achievements-enabled: false
# Whether player IP addresses will be logged by the server. # Whether player IP addresses will be logged by the server.
log-player-ip-addresses: true log-player-ip-addresses: true