Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option for Closed Economy UUID #7704

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2720,6 +2720,10 @@ public enum ConfigNodes {
"towny-server",
"",
"# The name of the account that all money that normally disappears goes into."),
ECO_CLOSED_ECONOMY_SERVER_ACCOUNT_UUID("economy.closed_economy.server_account_uuid",
"a73f39b0-1b7c-2930-b4a3-ce101812d926",
"",
"# The UUID of the account that all money that normally disappears goes into."),
ECO_CLOSED_ECONOMY_ENABLED(
"economy.closed_economy.enabled",
"false",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@ApiStatus.Internal
public final class TownyServerAccount extends Account {

private static final UUID uuid = UUID.fromString("a73f39b0-1b7c-2930-b4a3-ce101812d926");
private static final UUID uuid = UUID.fromString(TownySettings.getString(ConfigNodes.ECO_CLOSED_ECONOMY_SERVER_ACCOUNT_UUID));
private static final String name = TownySettings.getString(ConfigNodes.ECO_CLOSED_ECONOMY_SERVER_ACCOUNT);
private static final ThreadLocal<TownyWorld> worldLocal = ThreadLocal.withInitial(() -> TownyUniverse.getInstance().getTownyWorlds().get(0));
public static final TownyServerAccount ACCOUNT = new TownyServerAccount();
Expand Down
Loading