From 5a02339c4cf9f379000c9bb9b5d6dde9598f0e6f Mon Sep 17 00:00:00 2001 From: Carm Date: Fri, 5 Jan 2024 10:46:49 +0800 Subject: [PATCH] feat(command): Finished commands. --- .../artformgames/plugin/tempflight/Main.java | 2 + .../tempflight/command/TempFlightCommand.java | 81 ------------------- .../command/TempFlightCommands.java | 55 ++++++++++++- .../tempflight/conf/PluginMessages.java | 35 ++++++++ .../plugin/tempflight/utils/TimeUtils.java | 28 +++++++ src/test/java/DurationTest.java | 11 +++ 6 files changed, 128 insertions(+), 84 deletions(-) delete mode 100644 src/main/java/com/artformgames/plugin/tempflight/command/TempFlightCommand.java create mode 100644 src/main/java/com/artformgames/plugin/tempflight/utils/TimeUtils.java create mode 100644 src/test/java/DurationTest.java diff --git a/src/main/java/com/artformgames/plugin/tempflight/Main.java b/src/main/java/com/artformgames/plugin/tempflight/Main.java index e347a4d..e589f54 100644 --- a/src/main/java/com/artformgames/plugin/tempflight/Main.java +++ b/src/main/java/com/artformgames/plugin/tempflight/Main.java @@ -7,6 +7,8 @@ import com.artformgames.plugin.tempflight.conf.PluginMessages; import com.artformgames.plugin.tempflight.listener.TempFlyListener; import com.artformgames.plugin.tempflight.manager.FlightManager; +import dev.rollczi.litecommands.bukkit.LiteCommandsBukkit; +import dev.rollczi.litecommands.schematic.SchematicFormat; import org.bstats.bukkit.Metrics; public class Main extends EasyPlugin { diff --git a/src/main/java/com/artformgames/plugin/tempflight/command/TempFlightCommand.java b/src/main/java/com/artformgames/plugin/tempflight/command/TempFlightCommand.java deleted file mode 100644 index f37e58b..0000000 --- a/src/main/java/com/artformgames/plugin/tempflight/command/TempFlightCommand.java +++ /dev/null @@ -1,81 +0,0 @@ -//package com.artformgames.plugin.tempflight.command; -// -//import cc.carm.lib.easysql.api.util.TimeDateUtils; -//import org.bukkit.Bukkit; -//import org.bukkit.command.Command; -//import org.bukkit.command.CommandExecutor; -//import org.bukkit.command.CommandSender; -//import org.bukkit.command.ConsoleCommandSender; -//import org.bukkit.entity.Player; -//import org.jetbrains.annotations.NotNull; -// -//public class TempFlightCommand implements CommandExecutor { -// -// // /tempFlight