Forgot to load gates from new location
This commit is contained in:
parent
9e18c663bf
commit
9cbc7b0664
@ -330,8 +330,8 @@ public class Gate {
|
|||||||
return def;
|
return def;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void loadGates() {
|
public static void loadGates(String gateFolder) {
|
||||||
File dir = new File("stargates");
|
File dir = new File(gateFolder);
|
||||||
File[] files;
|
File[] files;
|
||||||
|
|
||||||
if (dir.exists()) {
|
if (dir.exists()) {
|
||||||
|
@ -137,7 +137,7 @@ public class Stargate extends JavaPlugin implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void reloadGates() {
|
public void reloadGates() {
|
||||||
Gate.loadGates();
|
Gate.loadGates(gateFolder);
|
||||||
Portal.loadAllGates(this.getServer().getWorlds().get(0));
|
Portal.loadAllGates(this.getServer().getWorlds().get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user