feat: complete in-game commands, GUIs, admin panel fixes, and launcher enhancements

This commit is contained in:
scoped committed 2026-09-29 12:14:16 -04:00
1 parent a9ff92e1d1
commit 752f0cc43d
34 files changed
+4170 -181

No files matched your search

@@ -19,7 +19,9 @@ public record Settings(
boolean guildsEnabled,
boolean landClaimingEnabled,
boolean socialEnabled,
boolean chatPrefixesEnabled
boolean chatPrefixesEnabled,
boolean essentialsEnabled,
boolean economyEnabled
) {
public Settings {
if (panel == null || panel.getHost() == null || panel.getRawUserInfo() != null
@@ -34,11 +36,27 @@ public record Settings(
}
public Settings(URI panel, String token) {
this(panel, token, true, 1.0, 1.5, true, true, true, true, true, true);
this(panel, token, true, 1.0, 1.5, true, true, true, true, true, true, true, true);
}
public Settings(
URI panel,
String token,
boolean levelingEnabled,
double globalXpMultiplier,
double serverXpMultiplier,
boolean questsEnabled,
boolean achievementsEnabled,
boolean guildsEnabled,
boolean landClaimingEnabled,
boolean socialEnabled,
boolean chatPrefixesEnabled
) {
this(panel, token, levelingEnabled, globalXpMultiplier, serverXpMultiplier, questsEnabled, achievementsEnabled, guildsEnabled, landClaimingEnabled, socialEnabled, chatPrefixesEnabled, true, true);
}
public static Settings of(String panel, String token) {
return of(panel, token, true, 1.0, 1.5, true, true, true, true, true, true);
return of(panel, token, true, 1.0, 1.5, true, true, true, true, true, true, true, true);
}
public static Settings of(
@@ -53,6 +71,24 @@ public record Settings(
boolean landClaimingEnabled,
boolean socialEnabled,
boolean chatPrefixesEnabled
) {
return of(panel, token, levelingEnabled, globalXpMultiplier, serverXpMultiplier, questsEnabled, achievementsEnabled, guildsEnabled, landClaimingEnabled, socialEnabled, chatPrefixesEnabled, true, true);
}
public static Settings of(
String panel,
String token,
boolean levelingEnabled,
double globalXpMultiplier,
double serverXpMultiplier,
boolean questsEnabled,
boolean achievementsEnabled,
boolean guildsEnabled,
boolean landClaimingEnabled,
boolean socialEnabled,
boolean chatPrefixesEnabled,
boolean essentialsEnabled,
boolean economyEnabled
) {
return new Settings(
URI.create(panel.trim().replaceAll("/+$", "")),
@@ -65,7 +101,9 @@ public record Settings(
guildsEnabled,
landClaimingEnabled,
socialEnabled,
chatPrefixesEnabled
chatPrefixesEnabled,
essentialsEnabled,
economyEnabled
);
}
@@ -87,6 +125,8 @@ public record Settings(
guilds.land_claiming=true
social.enabled=true
social.chat_prefixes=true
essentials.enabled=true
economy.enabled=true
""";
Files.writeString(path, defaultProps, StandardCharsets.UTF_8);
}
@@ -105,7 +145,9 @@ public record Settings(
Boolean.parseBoolean(properties.getProperty("guilds.enabled", "true")),
Boolean.parseBoolean(properties.getProperty("guilds.land_claiming", "true")),
Boolean.parseBoolean(properties.getProperty("social.enabled", "true")),
Boolean.parseBoolean(properties.getProperty("social.chat_prefixes", "true"))
Boolean.parseBoolean(properties.getProperty("social.chat_prefixes", "true")),
Boolean.parseBoolean(properties.getProperty("essentials.enabled", "true")),
Boolean.parseBoolean(properties.getProperty("economy.enabled", "true"))
);
}
}