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;
|
||||
}
|
||||
|
||||
public static void loadGates() {
|
||||
File dir = new File("stargates");
|
||||
public static void loadGates(String gateFolder) {
|
||||
File dir = new File(gateFolder);
|
||||
File[] files;
|
||||
|
||||
if (dir.exists()) {
|
||||
|
@ -137,7 +137,7 @@ public class Stargate extends JavaPlugin implements Runnable {
|
||||
}
|
||||
|
||||
public void reloadGates() {
|
||||
Gate.loadGates();
|
||||
Gate.loadGates(gateFolder);
|
||||
Portal.loadAllGates(this.getServer().getWorlds().get(0));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user