This commit is contained in:
BenceX100 2024-12-26 08:55:54 +01:00
parent a8f043aca8
commit a5a914d333
3 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.artillexstudios</groupId>
<artifactId>AxTrade</artifactId>
<version>1.12.0</version>
<version>1.12.1</version>
<packaging>jar</packaging>
<name>AxTrade</name>

View File

@ -66,6 +66,7 @@ public class CoinsEngineHook implements CurrencyHook {
return cf;
}
CoinsEngineAPI.addBalance(Bukkit.getPlayer(player), currency, amount);
cf.complete(true);
return cf;
}
@ -77,6 +78,7 @@ public class CoinsEngineHook implements CurrencyHook {
return cf;
}
CoinsEngineAPI.removeBalance(Bukkit.getPlayer(player), currency, amount);
cf.complete(true);
return cf;
}
}

View File

@ -25,6 +25,7 @@ import static com.artillexstudios.axtrade.AxTrade.CONFIG;
public class LanguageManager {
private static Config translations;
private static final Gson gson = new GsonBuilder().create();
public static void reload() {
final String lang = CONFIG.getString("language", "en_US").toLowerCase();
@ -45,7 +46,6 @@ public class LanguageManager {
try {
final HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
final Gson gson = new GsonBuilder().create();
final JsonObject object = gson.fromJson(response.body(), JsonObject.class);
final String base64Content = object.get("content").getAsString();