mirror of
https://github.com/kami-blue/client
synced 2025-02-22 16:26:48 +00:00
fix donator rpc
This commit is contained in:
parent
99c408c1ab
commit
572ce4d157
@ -135,6 +135,9 @@ public class KamiMod {
|
||||
new Capes();
|
||||
KamiMod.log.info("Capes init!\n");
|
||||
|
||||
new Donator();
|
||||
KamiMod.log.info("Donators init!\n");
|
||||
|
||||
// After settings loaded, we want to let the enabled modules know they've been enabled (since the setting is done through reflection)
|
||||
ModuleManager.getModules().stream().filter(Module::isEnabled).forEach(Module::enable);
|
||||
|
||||
|
@ -22,7 +22,7 @@ public class Donator {
|
||||
public Donator() {
|
||||
INSTANCE = this;
|
||||
try {
|
||||
HttpsURLConnection connection = (HttpsURLConnection) new URL("https://raw.githubusercontent.com/S-B99/KAMI/features-master/assets/capes.json").openConnection();
|
||||
HttpsURLConnection connection = (HttpsURLConnection) new URL("https://raw.githubusercontent.com/S-B99/KAMI/features-master/assets/donators.json").openConnection();
|
||||
connection.connect();
|
||||
this.donatorUsers = new Gson().fromJson(new InputStreamReader(connection.getInputStream()), DonatorUser[].class);
|
||||
connection.disconnect();
|
||||
|
Loading…
Reference in New Issue
Block a user