fix(CosmeticServer): fixed variable initialization
This commit is contained in:
parent
dc43007b6a
commit
f306d54e27
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
package de.pauljako.cosmeticserver;
|
package de.pauljako.cosmeticserver;
|
||||||
|
|
||||||
import de.craftsblock.craftsnet.addon.Addon;
|
import de.craftsblock.craftsnet.addon.Addon;
|
||||||
import de.craftsblock.craftsnet.api.Handler;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
|
@ -9,7 +8,7 @@ public class CosmeticServer extends Addon {
|
||||||
|
|
||||||
|
|
||||||
private static CosmeticServer instance;
|
private static CosmeticServer instance;
|
||||||
public final File cosmeticFile = new File(getDataFolder(), "cosmetics.json");
|
public File cosmeticFile;
|
||||||
private Thread thread;
|
private Thread thread;
|
||||||
|
|
||||||
public static CosmeticServer instance() {
|
public static CosmeticServer instance() {
|
||||||
|
@ -24,6 +23,8 @@ public class CosmeticServer extends Addon {
|
||||||
File assets = new File(getDataFolder(), "assets");
|
File assets = new File(getDataFolder(), "assets");
|
||||||
assets.mkdirs();
|
assets.mkdirs();
|
||||||
|
|
||||||
|
cosmeticFile = new File(getDataFolder(), "cosmetics.json");
|
||||||
|
|
||||||
routeRegistry().share("/v1/cosmetic/assets", assets);
|
routeRegistry().share("/v1/cosmetic/assets", assets);
|
||||||
|
|
||||||
CosmeticSocket socket = new CosmeticSocket();
|
CosmeticSocket socket = new CosmeticSocket();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue