From 01316ad297349a1e2074b714a2de15d6a3587788 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Tue, 18 Apr 2017 13:37:00 -0400 Subject: [PATCH] Split Hello classes into packages --- src/main/java/buttondevteam/presents/hello/Hello.java | 8 ++++++++ .../presents/hello/{ => commands}/HelloCommand.java | 2 +- .../presents/hello/{ => commands}/HelloLoad.java | 2 +- .../presents/hello/{ => commands}/HelloSave.java | 2 +- .../presents/hello/{ => commands}/HelloTime.java | 2 +- .../presents/hello/{ => effects}/HelloBedsplode.java | 2 +- .../presents/hello/{ => effects}/HelloCow.java | 2 +- .../presents/hello/{ => effects}/HelloItem.java | 2 +- .../presents/hello/{ => effects}/HelloMagicPotato.java | 2 +- 9 files changed, 16 insertions(+), 8 deletions(-) rename src/main/java/buttondevteam/presents/hello/{ => commands}/HelloCommand.java (93%) rename src/main/java/buttondevteam/presents/hello/{ => commands}/HelloLoad.java (94%) rename src/main/java/buttondevteam/presents/hello/{ => commands}/HelloSave.java (95%) rename src/main/java/buttondevteam/presents/hello/{ => commands}/HelloTime.java (96%) rename src/main/java/buttondevteam/presents/hello/{ => effects}/HelloBedsplode.java (93%) rename src/main/java/buttondevteam/presents/hello/{ => effects}/HelloCow.java (92%) rename src/main/java/buttondevteam/presents/hello/{ => effects}/HelloItem.java (92%) rename src/main/java/buttondevteam/presents/hello/{ => effects}/HelloMagicPotato.java (95%) diff --git a/src/main/java/buttondevteam/presents/hello/Hello.java b/src/main/java/buttondevteam/presents/hello/Hello.java index 2e13a54..fa78dbb 100644 --- a/src/main/java/buttondevteam/presents/hello/Hello.java +++ b/src/main/java/buttondevteam/presents/hello/Hello.java @@ -3,6 +3,14 @@ package buttondevteam.presents.hello; import org.bukkit.plugin.java.JavaPlugin; import buttondevteam.presents.architecture.Component; +import buttondevteam.presents.hello.commands.HelloCommand; +import buttondevteam.presents.hello.commands.HelloLoad; +import buttondevteam.presents.hello.commands.HelloSave; +import buttondevteam.presents.hello.commands.HelloTime; +import buttondevteam.presents.hello.effects.HelloBedsplode; +import buttondevteam.presents.hello.effects.HelloCow; +import buttondevteam.presents.hello.effects.HelloItem; +import buttondevteam.presents.hello.effects.HelloMagicPotato; public class Hello extends Component{ diff --git a/src/main/java/buttondevteam/presents/hello/HelloCommand.java b/src/main/java/buttondevteam/presents/hello/commands/HelloCommand.java similarity index 93% rename from src/main/java/buttondevteam/presents/hello/HelloCommand.java rename to src/main/java/buttondevteam/presents/hello/commands/HelloCommand.java index 0b57af0..199cef6 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloCommand.java +++ b/src/main/java/buttondevteam/presents/hello/commands/HelloCommand.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello; +package buttondevteam.presents.hello.commands; import org.bukkit.command.CommandSender; import org.bukkit.plugin.java.JavaPlugin; diff --git a/src/main/java/buttondevteam/presents/hello/HelloLoad.java b/src/main/java/buttondevteam/presents/hello/commands/HelloLoad.java similarity index 94% rename from src/main/java/buttondevteam/presents/hello/HelloLoad.java rename to src/main/java/buttondevteam/presents/hello/commands/HelloLoad.java index 0b383fd..1047e83 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloLoad.java +++ b/src/main/java/buttondevteam/presents/hello/commands/HelloLoad.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello; +package buttondevteam.presents.hello.commands; diff --git a/src/main/java/buttondevteam/presents/hello/HelloSave.java b/src/main/java/buttondevteam/presents/hello/commands/HelloSave.java similarity index 95% rename from src/main/java/buttondevteam/presents/hello/HelloSave.java rename to src/main/java/buttondevteam/presents/hello/commands/HelloSave.java index 23e9315..144edd0 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloSave.java +++ b/src/main/java/buttondevteam/presents/hello/commands/HelloSave.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello; +package buttondevteam.presents.hello.commands; import java.util.Arrays; diff --git a/src/main/java/buttondevteam/presents/hello/HelloTime.java b/src/main/java/buttondevteam/presents/hello/commands/HelloTime.java similarity index 96% rename from src/main/java/buttondevteam/presents/hello/HelloTime.java rename to src/main/java/buttondevteam/presents/hello/commands/HelloTime.java index 3cdec00..b95eab1 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloTime.java +++ b/src/main/java/buttondevteam/presents/hello/commands/HelloTime.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello; +package buttondevteam.presents.hello.commands; import java.text.SimpleDateFormat; import java.util.Date; diff --git a/src/main/java/buttondevteam/presents/hello/HelloBedsplode.java b/src/main/java/buttondevteam/presents/hello/effects/HelloBedsplode.java similarity index 93% rename from src/main/java/buttondevteam/presents/hello/HelloBedsplode.java rename to src/main/java/buttondevteam/presents/hello/effects/HelloBedsplode.java index d676dc1..90a5aa3 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloBedsplode.java +++ b/src/main/java/buttondevteam/presents/hello/effects/HelloBedsplode.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello; +package buttondevteam.presents.hello.effects; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; diff --git a/src/main/java/buttondevteam/presents/hello/HelloCow.java b/src/main/java/buttondevteam/presents/hello/effects/HelloCow.java similarity index 92% rename from src/main/java/buttondevteam/presents/hello/HelloCow.java rename to src/main/java/buttondevteam/presents/hello/effects/HelloCow.java index fda6820..9e1e35f 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloCow.java +++ b/src/main/java/buttondevteam/presents/hello/effects/HelloCow.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello; +package buttondevteam.presents.hello.effects; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; diff --git a/src/main/java/buttondevteam/presents/hello/HelloItem.java b/src/main/java/buttondevteam/presents/hello/effects/HelloItem.java similarity index 92% rename from src/main/java/buttondevteam/presents/hello/HelloItem.java rename to src/main/java/buttondevteam/presents/hello/effects/HelloItem.java index 444ff72..a50bdf0 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloItem.java +++ b/src/main/java/buttondevteam/presents/hello/effects/HelloItem.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello; +package buttondevteam.presents.hello.effects; import org.bukkit.Material; import org.bukkit.entity.Player; diff --git a/src/main/java/buttondevteam/presents/hello/HelloMagicPotato.java b/src/main/java/buttondevteam/presents/hello/effects/HelloMagicPotato.java similarity index 95% rename from src/main/java/buttondevteam/presents/hello/HelloMagicPotato.java rename to src/main/java/buttondevteam/presents/hello/effects/HelloMagicPotato.java index 64b921f..62e4c75 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloMagicPotato.java +++ b/src/main/java/buttondevteam/presents/hello/effects/HelloMagicPotato.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello; +package buttondevteam.presents.hello.effects; import java.util.ArrayList;