From 7a2c5fe4ea1dec869a756beacedede59382122e6 Mon Sep 17 00:00:00 2001 From: nullptr Date: Sun, 2 Jun 2019 09:51:39 -0500 Subject: [PATCH] Subpackage plugins --- .../ws/mcserver/in/{ => mostlynorefunds}/DeathListener.java | 3 +-- .../mcserver/in/{ => mostlynorefunds}/MostlyNoRefunds.java | 5 +---- .../ws/mcserver/in/{ => mostlynorefunds}/RefundExecutor.java | 2 +- src/main/resources/plugin.yml | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) rename src/main/java/ws/mcserver/in/{ => mostlynorefunds}/DeathListener.java (96%) rename src/main/java/ws/mcserver/in/{ => mostlynorefunds}/MostlyNoRefunds.java (72%) rename src/main/java/ws/mcserver/in/{ => mostlynorefunds}/RefundExecutor.java (97%) diff --git a/src/main/java/ws/mcserver/in/DeathListener.java b/src/main/java/ws/mcserver/in/mostlynorefunds/DeathListener.java similarity index 96% rename from src/main/java/ws/mcserver/in/DeathListener.java rename to src/main/java/ws/mcserver/in/mostlynorefunds/DeathListener.java index a1a3474..ffd344f 100644 --- a/src/main/java/ws/mcserver/in/DeathListener.java +++ b/src/main/java/ws/mcserver/in/mostlynorefunds/DeathListener.java @@ -1,4 +1,4 @@ -package ws.mcserver.in; +package ws.mcserver.in.mostlynorefunds; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.event.EventHandler; @@ -10,7 +10,6 @@ import java.io.IOException; import java.util.UUID; -//TODO Subpackage public class DeathListener implements Listener { private JavaPlugin plugin; diff --git a/src/main/java/ws/mcserver/in/MostlyNoRefunds.java b/src/main/java/ws/mcserver/in/mostlynorefunds/MostlyNoRefunds.java similarity index 72% rename from src/main/java/ws/mcserver/in/MostlyNoRefunds.java rename to src/main/java/ws/mcserver/in/mostlynorefunds/MostlyNoRefunds.java index cdbe409..f9db0cb 100644 --- a/src/main/java/ws/mcserver/in/MostlyNoRefunds.java +++ b/src/main/java/ws/mcserver/in/mostlynorefunds/MostlyNoRefunds.java @@ -1,11 +1,8 @@ -package ws.mcserver.in; +package ws.mcserver.in.mostlynorefunds; -import org.bukkit.event.EventHandler; -import org.bukkit.event.entity.PlayerDeathEvent; import org.bukkit.plugin.java.JavaPlugin; public class MostlyNoRefunds extends JavaPlugin { - @Override public void onEnable() { getCommand("refund").setExecutor(new RefundExecutor(this)); diff --git a/src/main/java/ws/mcserver/in/RefundExecutor.java b/src/main/java/ws/mcserver/in/mostlynorefunds/RefundExecutor.java similarity index 97% rename from src/main/java/ws/mcserver/in/RefundExecutor.java rename to src/main/java/ws/mcserver/in/mostlynorefunds/RefundExecutor.java index 735adc7..ec358e3 100644 --- a/src/main/java/ws/mcserver/in/RefundExecutor.java +++ b/src/main/java/ws/mcserver/in/mostlynorefunds/RefundExecutor.java @@ -1,4 +1,4 @@ -package ws.mcserver.in; +package ws.mcserver.in.mostlynorefunds; import org.bukkit.Bukkit; import org.bukkit.command.Command; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 2668b16..ff613c1 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: MostlyNoRefunds -main: ws.mcserver.in.MostlyNoRefunds +main: ws.mcserver.in.mostlynorefunds.MostlyNoRefunds version: ${project.version} authors: [HelloWorld] api-version: "1.13"