mirror of
https://github.com/Artillex-Studios/AxTrade.git
synced 2025-01-01 18:18:25 +01:00
1.12.1
This commit is contained in:
parent
a8f043aca8
commit
a5a914d333
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user