minor updates

This commit is contained in:
Paldiu
2021-02-05 17:58:43 -06:00
parent 952bbd72d5
commit 6bd2e82041
5 changed files with 35 additions and 21 deletions

View File

@ -19,10 +19,12 @@ public abstract class SimplexCommand implements CommandExecutor, TabCompleter {
return sender instanceof Player;
}
@Nullable
public Player getPlayer(String name) {
return Constants.getServer().getPlayer(name);
}
@Nullable
public Player getPlayer(UUID uuid) {
return Constants.getServer().getPlayer(uuid);
}

View File

@ -24,10 +24,10 @@ public final class JsonFactory {
}
public JsonFactory setDefaultPathways() {
return setPathways("config.yml", plugin.getDataFolder(), "config.yml");
return setPathways("data.json", plugin.getDataFolder(), "data.json");
}
public Trio<String, File, String> getPathways() {
public Trio<String, File, String> pathways() {
return new Trio<>(resourcePath, directory, fileName);
}
}

View File

@ -26,7 +26,7 @@ public final class YamlFactory {
return setPathways("config.yml", plugin.getDataFolder(), "config.yml");
}
public Trio<String, File, String> getPathways() {
public Trio<String, File, String> pathways() {
return new Trio<>(resourcePath, directory, fileName);
}
}