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; return sender instanceof Player;
} }
@Nullable
public Player getPlayer(String name) { public Player getPlayer(String name) {
return Constants.getServer().getPlayer(name); return Constants.getServer().getPlayer(name);
} }
@Nullable
public Player getPlayer(UUID uuid) { public Player getPlayer(UUID uuid) {
return Constants.getServer().getPlayer(uuid); return Constants.getServer().getPlayer(uuid);
} }

View File

@ -24,10 +24,10 @@ public final class JsonFactory {
} }
public JsonFactory setDefaultPathways() { 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); return new Trio<>(resourcePath, directory, fileName);
} }
} }

View File

@ -26,7 +26,7 @@ public final class YamlFactory {
return setPathways("config.yml", plugin.getDataFolder(), "config.yml"); 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); return new Trio<>(resourcePath, directory, fileName);
} }
} }

View File

@ -1,23 +1,30 @@
io\github\paldiu\simplexcore\command\SimplexCommand.class
io\github\paldiu\simplexcore\command\defaults\Command_info.class io\github\paldiu\simplexcore\command\defaults\Command_info.class
io\github\paldiu\simplexcore\listener\ServerPluginListener.class io\github\paldiu\simplexcore\listener\ServerPluginListener.class
io\github\paldiu\simplexcore\command\CommandLoader.class io\github\paldiu\simplexcore\command\CommandLoader.class
io\github\paldiu\simplexcore\math\Size.class
io\github\paldiu\simplexcore\command\CommandInfo.class io\github\paldiu\simplexcore\command\CommandInfo.class
io\github\paldiu\simplexcore\future\Announcer$1.class
io\github\paldiu\simplexcore\plugin\AddonRegistry.class io\github\paldiu\simplexcore\plugin\AddonRegistry.class
io\github\paldiu\simplexcore\command\CommandLoader$Registry.class io\github\paldiu\simplexcore\command\CommandLoader$Registry.class
io\github\paldiu\simplexcore\CoreState$1.class
io\github\paldiu\simplexcore\utils\Constants$TimeValues.class io\github\paldiu\simplexcore\utils\Constants$TimeValues.class
io\github\paldiu\simplexcore\utils\Bean.class io\github\paldiu\simplexcore\CoreState.class
io\github\paldiu\simplexcore\utils\Constants.class
io\github\paldiu\simplexcore\config\YamlFactory.class io\github\paldiu\simplexcore\config\YamlFactory.class
io\github\paldiu\simplexcore\future\SimplexTask.class
io\github\paldiu\simplexcore\config\JsonFactory.class
io\github\paldiu\simplexcore\plugin\SimplexAddon.class io\github\paldiu\simplexcore\plugin\SimplexAddon.class
io\github\paldiu\simplexcore\SimplexCore.class io\github\paldiu\simplexcore\chat\Messages.class
io\github\paldiu\simplexcore\utils\Trio.class
io\github\paldiu\simplexcore\listener\SimplexListener.class
io\github\paldiu\simplexcore\plugin\AddonManager.class io\github\paldiu\simplexcore\plugin\AddonManager.class
io\github\paldiu\simplexcore\math\Cuboid.class io\github\paldiu\simplexcore\chat\ChatUtils.class
io\github\paldiu\simplexcore\command\defaults\DefaultCommand.class io\github\paldiu\simplexcore\command\defaults\DefaultCommand.class
io\github\paldiu\simplexcore\utils\Utilities.class io\github\paldiu\simplexcore\utils\Utilities.class
io\github\paldiu\simplexcore\chat\TextComponentFactory.class io\github\paldiu\simplexcore\chat\TextComponentFactory.class
io\github\paldiu\simplexcore\command\SimplexCommand.class
io\github\paldiu\simplexcore\math\Size.class
io\github\paldiu\simplexcore\utils\Bean.class
io\github\paldiu\simplexcore\utils\Constants.class
io\github\paldiu\simplexcore\future\SimplexTask.class
io\github\paldiu\simplexcore\config\JsonFactory.class
io\github\paldiu\simplexcore\SimplexCore.class
io\github\paldiu\simplexcore\utils\Trio.class
io\github\paldiu\simplexcore\listener\SimplexListener.class
io\github\paldiu\simplexcore\future\Announcer.class
io\github\paldiu\simplexcore\math\Cuboid.class
io\github\paldiu\simplexcore\CoreState$State.class

View File

@ -1,20 +1,25 @@
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\listener\ServerPluginListener.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\listener\ServerPluginListener.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\utils\Utilities.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\CoreState.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\CommandInfo.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\CommandInfo.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\plugin\AddonManager.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\defaults\DefaultCommand.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\math\Size.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\math\Size.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\plugin\SimplexAddon.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\plugin\SimplexAddon.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\future\SimplexTask.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\chat\Messages.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\utils\Trio.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\config\YamlFactory.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\config\YamlFactory.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\config\JsonFactory.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\plugin\AddonRegistry.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\plugin\AddonRegistry.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\SimplexCommand.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\SimplexCommand.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\listener\SimplexListener.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\utils\Bean.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\utils\Bean.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\CommandLoader.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\CommandLoader.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\defaults\Command_info.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\SimplexCore.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\SimplexCore.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\chat\ChatUtils.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\math\Cuboid.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\math\Cuboid.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\chat\TextComponentFactory.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\utils\Utilities.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\plugin\AddonManager.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\future\Announcer.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\defaults\DefaultCommand.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\future\SimplexTask.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\utils\Trio.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\config\JsonFactory.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\listener\SimplexListener.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\command\defaults\Command_info.java
C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\utils\Constants.java C:\Users\Samantha\IdeaProjects\SimplexCore\src\main\java\io\github\paldiu\simplexcore\utils\Constants.java