mirror of
https://github.com/Artillex-Studios/AxTrade.git
synced 2025-01-04 18:47:51 +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>
|
<groupId>com.artillexstudios</groupId>
|
||||||
<artifactId>AxTrade</artifactId>
|
<artifactId>AxTrade</artifactId>
|
||||||
<version>1.12.0</version>
|
<version>1.12.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>AxTrade</name>
|
<name>AxTrade</name>
|
||||||
|
@ -66,6 +66,7 @@ public class CoinsEngineHook implements CurrencyHook {
|
|||||||
return cf;
|
return cf;
|
||||||
}
|
}
|
||||||
CoinsEngineAPI.addBalance(Bukkit.getPlayer(player), currency, amount);
|
CoinsEngineAPI.addBalance(Bukkit.getPlayer(player), currency, amount);
|
||||||
|
cf.complete(true);
|
||||||
return cf;
|
return cf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,6 +78,7 @@ public class CoinsEngineHook implements CurrencyHook {
|
|||||||
return cf;
|
return cf;
|
||||||
}
|
}
|
||||||
CoinsEngineAPI.removeBalance(Bukkit.getPlayer(player), currency, amount);
|
CoinsEngineAPI.removeBalance(Bukkit.getPlayer(player), currency, amount);
|
||||||
|
cf.complete(true);
|
||||||
return cf;
|
return cf;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -25,6 +25,7 @@ import static com.artillexstudios.axtrade.AxTrade.CONFIG;
|
|||||||
|
|
||||||
public class LanguageManager {
|
public class LanguageManager {
|
||||||
private static Config translations;
|
private static Config translations;
|
||||||
|
private static final Gson gson = new GsonBuilder().create();
|
||||||
|
|
||||||
public static void reload() {
|
public static void reload() {
|
||||||
final String lang = CONFIG.getString("language", "en_US").toLowerCase();
|
final String lang = CONFIG.getString("language", "en_US").toLowerCase();
|
||||||
@ -45,7 +46,6 @@ public class LanguageManager {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
final HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
|
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 JsonObject object = gson.fromJson(response.body(), JsonObject.class);
|
||||||
|
|
||||||
final String base64Content = object.get("content").getAsString();
|
final String base64Content = object.get("content").getAsString();
|
||||||
|
Loading…
Reference in New Issue
Block a user