Skip to content

Commit

Permalink
plugin load and saving location improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce0203 committed Nov 20, 2021
1 parent 03ca832 commit 6fac018
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Binary file modified jar/FreedyMinigameMaker2.jar
Binary file not shown.
5 changes: 4 additions & 1 deletion src/main/java/kr/jongwonlee/fmg/FMGPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ public final class FMGPlugin extends JavaPlugin {

private static FMGPlugin plugin;

public FMGPlugin() {
plugin = this;
}

public static FMGPlugin getInst() {
return plugin;
}

@Override
public void onEnable() {
plugin = this;
new MetricsLite(this, 12184);
NMS.init();
FMGCommand.init();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/kr/jongwonlee/fmg/util/YamlStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void setLocation(String path, Location location) {

public Location getLocation(String path) {
final World world = Bukkit.getWorld(getString(path + ".WORLD"));
if (world == null) return null;
//if (world == null) return null;
final double x = getDouble(path + ".X");
final double y = getDouble(path + ".Y");
final double z = getDouble(path + ".Z");
Expand Down

0 comments on commit 6fac018

Please sign in to comment.