mirror of
https://github.com/SimplexDevelopment/SimplexCore.git
synced 2025-07-04 08:06:41 +00:00
minor updates
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user