fix donator rpc

This commit is contained in:
Bella 2019-12-16 11:15:14 -05:00
parent 99c408c1ab
commit 572ce4d157
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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();