From 9da8aa72df5e75af48a3e3c3100abb2f792a32a9 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sun, 25 Jun 2017 13:58:09 -0400 Subject: [PATCH] Renamed Hello package into "Dictionary" package --- .../java/buttondevteam/presents/Main.java | 4 +- .../dictionary/DictionaryComponent.java | 51 +++++++++++++++++++ .../commands/SendJSON.java} | 6 +-- .../commands/SendMessage.java} | 6 +-- .../config/LoadConfig.java} | 6 +-- .../config/SaveConfig.java} | 6 +-- .../config/TimePersistence.java} | 6 +-- .../effects/Bedsplode.java} | 4 +- .../pages/DataPage.java} | 4 +- .../pages/HelloPage.java} | 4 +- .../pages/JSONPage.java} | 4 +- .../pages/LocationPage.java} | 6 +-- .../pages/POSTPage.java} | 6 +-- .../pages/PlayersOnlinePage.java} | 6 +-- .../spawning/PlaySound.java} | 6 +-- .../spawning/SetBlock.java} | 6 +-- .../spawning/SpawnCow.java} | 6 +-- .../spawning/SpawnItem.java} | 6 +-- .../spawning/SpawnMagicPotato.java} | 6 +-- .../spawning/SpawnParticle.java} | 6 +-- .../presents/hello/HelloComponent.java | 51 ------------------- 21 files changed, 103 insertions(+), 103 deletions(-) create mode 100644 src/main/java/buttondevteam/presents/dictionary/DictionaryComponent.java rename src/main/java/buttondevteam/presents/{hello/commands/HelloJSON.java => dictionary/commands/SendJSON.java} (79%) rename src/main/java/buttondevteam/presents/{hello/commands/HelloCommand.java => dictionary/commands/SendMessage.java} (65%) rename src/main/java/buttondevteam/presents/{hello/commands/HelloLoad.java => dictionary/config/LoadConfig.java} (81%) rename src/main/java/buttondevteam/presents/{hello/commands/HelloSave.java => dictionary/config/SaveConfig.java} (83%) rename src/main/java/buttondevteam/presents/{hello/commands/HelloTime.java => dictionary/config/TimePersistence.java} (88%) rename src/main/java/buttondevteam/presents/{hello/effects/HelloBedsplode.java => dictionary/effects/Bedsplode.java} (88%) rename src/main/java/buttondevteam/presents/{hello/pages/HelloDataPage.java => dictionary/pages/DataPage.java} (82%) rename src/main/java/buttondevteam/presents/{hello/pages/HelloWorldPage.java => dictionary/pages/HelloPage.java} (79%) rename src/main/java/buttondevteam/presents/{hello/pages/HelloJSONPage.java => dictionary/pages/JSONPage.java} (88%) rename src/main/java/buttondevteam/presents/{hello/pages/HelloLocationPage.java => dictionary/pages/LocationPage.java} (89%) rename src/main/java/buttondevteam/presents/{hello/pages/HelloPOSTPage.java => dictionary/pages/POSTPage.java} (88%) rename src/main/java/buttondevteam/presents/{hello/pages/HelloPlayersPage.java => dictionary/pages/PlayersOnlinePage.java} (83%) rename src/main/java/buttondevteam/presents/{hello/effects/HelloSound.java => dictionary/spawning/PlaySound.java} (86%) rename src/main/java/buttondevteam/presents/{hello/effects/HelloBlock.java => dictionary/spawning/SetBlock.java} (75%) rename src/main/java/buttondevteam/presents/{hello/effects/HelloCow.java => dictionary/spawning/SpawnCow.java} (73%) rename src/main/java/buttondevteam/presents/{hello/effects/HelloItem.java => dictionary/spawning/SpawnItem.java} (75%) rename src/main/java/buttondevteam/presents/{hello/effects/HelloMagicPotato.java => dictionary/spawning/SpawnMagicPotato.java} (87%) rename src/main/java/buttondevteam/presents/{hello/effects/HelloParticle.java => dictionary/spawning/SpawnParticle.java} (70%) delete mode 100644 src/main/java/buttondevteam/presents/hello/HelloComponent.java diff --git a/src/main/java/buttondevteam/presents/Main.java b/src/main/java/buttondevteam/presents/Main.java index e967e0c..af149a5 100644 --- a/src/main/java/buttondevteam/presents/Main.java +++ b/src/main/java/buttondevteam/presents/Main.java @@ -5,7 +5,7 @@ import java.util.logging.Logger; import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.java.JavaPlugin; -import buttondevteam.presents.hello.HelloComponent; +import buttondevteam.presents.dictionary.DictionaryComponent; import buttondevteam.presents.metrics.MetricsComponent; import buttondevteam.presents.rtp.RandomTeleportComponent; @@ -16,7 +16,7 @@ PluginDescriptionFile pdfFile = getDescription(); Logger logger = getLogger(); logger.info(pdfFile.getName() + " has been started (V." + pdfFile.getVersion()+ ")."); - new HelloComponent().register(this); + new DictionaryComponent().register(this); new RandomTeleportComponent().register(this); new MetricsComponent().register(this); diff --git a/src/main/java/buttondevteam/presents/dictionary/DictionaryComponent.java b/src/main/java/buttondevteam/presents/dictionary/DictionaryComponent.java new file mode 100644 index 0000000..1380feb --- /dev/null +++ b/src/main/java/buttondevteam/presents/dictionary/DictionaryComponent.java @@ -0,0 +1,51 @@ +package buttondevteam.presents.dictionary; + +import org.bukkit.plugin.java.JavaPlugin; + +import buttondevteam.presents.architecture.Component; +import buttondevteam.presents.dictionary.commands.SendMessage; +import buttondevteam.presents.dictionary.config.LoadConfig; +import buttondevteam.presents.dictionary.config.SaveConfig; +import buttondevteam.presents.dictionary.config.TimePersistence; +import buttondevteam.presents.dictionary.commands.SendJSON; +import buttondevteam.presents.dictionary.effects.Bedsplode; +import buttondevteam.presents.dictionary.pages.DataPage; +import buttondevteam.presents.dictionary.pages.JSONPage; +import buttondevteam.presents.dictionary.pages.LocationPage; +import buttondevteam.presents.dictionary.pages.POSTPage; +import buttondevteam.presents.dictionary.pages.PlayersOnlinePage; +import buttondevteam.presents.dictionary.spawning.PlaySound; +import buttondevteam.presents.dictionary.spawning.SetBlock; +import buttondevteam.presents.dictionary.spawning.SpawnCow; +import buttondevteam.presents.dictionary.spawning.SpawnItem; +import buttondevteam.presents.dictionary.spawning.SpawnMagicPotato; +import buttondevteam.presents.dictionary.spawning.SpawnParticle; +import buttondevteam.presents.dictionary.pages.HelloPage; + +public class DictionaryComponent extends Component{ + + @Override + public void register(JavaPlugin plugin) { + + this.registerCommand(plugin, new SendMessage()); + this.registerCommand(plugin, new SendJSON()); + this.registerCommand(plugin, new SaveConfig()); + this.registerCommand(plugin, new LoadConfig()); + this.registerCommand(plugin, new TimePersistence()); + + this.registerListener(plugin, new Bedsplode()); + this.registerCommand(plugin, new SpawnCow()); + this.registerCommand(plugin, new SpawnItem()); + this.registerCommand(plugin, new SpawnMagicPotato()); + this.registerCommand(plugin, new SetBlock()); + this.registerCommand(plugin, new SpawnParticle()); + this.registerCommand(plugin, new PlaySound()); + + this.addPage(plugin, new HelloPage()); + this.addPage(plugin, new DataPage()); + this.addPage(plugin, new PlayersOnlinePage(plugin)); + this.addPage(plugin, new LocationPage(plugin)); + this.addPage(plugin, new POSTPage(plugin)); + this.addPage(plugin, new JSONPage()); + } +} diff --git a/src/main/java/buttondevteam/presents/hello/commands/HelloJSON.java b/src/main/java/buttondevteam/presents/dictionary/commands/SendJSON.java similarity index 79% rename from src/main/java/buttondevteam/presents/hello/commands/HelloJSON.java rename to src/main/java/buttondevteam/presents/dictionary/commands/SendJSON.java index 502c0ba..2f02cce 100644 --- a/src/main/java/buttondevteam/presents/hello/commands/HelloJSON.java +++ b/src/main/java/buttondevteam/presents/dictionary/commands/SendJSON.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.commands; +package buttondevteam.presents.dictionary.commands; import org.bukkit.entity.Player; @@ -9,8 +9,8 @@ import com.google.gson.GsonBuilder; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.ModCommand; -@CommandClass(modOnly = true, path="hello json") -public class HelloJSON extends ModCommand{ +@CommandClass(modOnly = true, path="dictionary json") +public class SendJSON extends ModCommand{ @Override public boolean OnCommand(Player player, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/commands/HelloCommand.java b/src/main/java/buttondevteam/presents/dictionary/commands/SendMessage.java similarity index 65% rename from src/main/java/buttondevteam/presents/hello/commands/HelloCommand.java rename to src/main/java/buttondevteam/presents/dictionary/commands/SendMessage.java index 27549c6..c163cf2 100644 --- a/src/main/java/buttondevteam/presents/hello/commands/HelloCommand.java +++ b/src/main/java/buttondevteam/presents/dictionary/commands/SendMessage.java @@ -1,12 +1,12 @@ -package buttondevteam.presents.hello.commands; +package buttondevteam.presents.dictionary.commands; import org.bukkit.command.CommandSender; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.UniversalCommand; -@CommandClass(modOnly = false, path="hello command") -public class HelloCommand extends UniversalCommand { +@CommandClass(modOnly = false, path="dictionary command") +public class SendMessage extends UniversalCommand { @Override public boolean OnCommand(CommandSender sender, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/commands/HelloLoad.java b/src/main/java/buttondevteam/presents/dictionary/config/LoadConfig.java similarity index 81% rename from src/main/java/buttondevteam/presents/hello/commands/HelloLoad.java rename to src/main/java/buttondevteam/presents/dictionary/config/LoadConfig.java index af24922..e27f028 100644 --- a/src/main/java/buttondevteam/presents/hello/commands/HelloLoad.java +++ b/src/main/java/buttondevteam/presents/dictionary/config/LoadConfig.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.commands; +package buttondevteam.presents.dictionary.config; @@ -9,8 +9,8 @@ import org.bukkit.command.CommandSender; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.UniversalCommand; -@CommandClass(path = "hello load") -public class HelloLoad extends UniversalCommand { +@CommandClass(path = "dictionary load") +public class LoadConfig extends UniversalCommand { @Override public boolean OnCommand(CommandSender sender, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/commands/HelloSave.java b/src/main/java/buttondevteam/presents/dictionary/config/SaveConfig.java similarity index 83% rename from src/main/java/buttondevteam/presents/hello/commands/HelloSave.java rename to src/main/java/buttondevteam/presents/dictionary/config/SaveConfig.java index 3c4e4f7..e7b7eeb 100644 --- a/src/main/java/buttondevteam/presents/hello/commands/HelloSave.java +++ b/src/main/java/buttondevteam/presents/dictionary/config/SaveConfig.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.commands; +package buttondevteam.presents.dictionary.config; import java.util.Arrays; @@ -7,8 +7,8 @@ import org.bukkit.command.CommandSender; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.UniversalCommand; -@CommandClass(path = "hello save") -public class HelloSave extends UniversalCommand { +@CommandClass(path = "dictionary save") +public class SaveConfig extends UniversalCommand { @Override public boolean OnCommand(CommandSender sender, String alias, String[] args) { if (args.length < 1){ diff --git a/src/main/java/buttondevteam/presents/hello/commands/HelloTime.java b/src/main/java/buttondevteam/presents/dictionary/config/TimePersistence.java similarity index 88% rename from src/main/java/buttondevteam/presents/hello/commands/HelloTime.java rename to src/main/java/buttondevteam/presents/dictionary/config/TimePersistence.java index ab90644..d59e675 100644 --- a/src/main/java/buttondevteam/presents/hello/commands/HelloTime.java +++ b/src/main/java/buttondevteam/presents/dictionary/config/TimePersistence.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.commands; +package buttondevteam.presents.dictionary.config; import java.text.SimpleDateFormat; import java.util.Date; @@ -8,8 +8,8 @@ import org.bukkit.configuration.file.FileConfiguration; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.UniversalCommand; -@CommandClass(path = "hello time") -public class HelloTime extends UniversalCommand { +@CommandClass(path = "dictionary time") +public class TimePersistence extends UniversalCommand { final String path = "hellotime.lastincident"; @Override diff --git a/src/main/java/buttondevteam/presents/hello/effects/HelloBedsplode.java b/src/main/java/buttondevteam/presents/dictionary/effects/Bedsplode.java similarity index 88% rename from src/main/java/buttondevteam/presents/hello/effects/HelloBedsplode.java rename to src/main/java/buttondevteam/presents/dictionary/effects/Bedsplode.java index b2b50f2..015fa20 100644 --- a/src/main/java/buttondevteam/presents/hello/effects/HelloBedsplode.java +++ b/src/main/java/buttondevteam/presents/dictionary/effects/Bedsplode.java @@ -1,11 +1,11 @@ -package buttondevteam.presents.hello.effects; +package buttondevteam.presents.dictionary.effects; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerBedEnterEvent; -public class HelloBedsplode implements Listener { +public class Bedsplode implements Listener { @EventHandler public void onSleep(PlayerBedEnterEvent event){ Player player = event.getPlayer(); diff --git a/src/main/java/buttondevteam/presents/hello/pages/HelloDataPage.java b/src/main/java/buttondevteam/presents/dictionary/pages/DataPage.java similarity index 82% rename from src/main/java/buttondevteam/presents/hello/pages/HelloDataPage.java rename to src/main/java/buttondevteam/presents/dictionary/pages/DataPage.java index b673a14..05e630c 100644 --- a/src/main/java/buttondevteam/presents/hello/pages/HelloDataPage.java +++ b/src/main/java/buttondevteam/presents/dictionary/pages/DataPage.java @@ -1,11 +1,11 @@ -package buttondevteam.presents.hello.pages; +package buttondevteam.presents.dictionary.pages; import com.sun.net.httpserver.HttpExchange; import buttondevteam.website.io.Response; import buttondevteam.website.page.Page; -public class HelloDataPage extends Page{ +public class DataPage extends Page{ private final int data = 1234561; @Override diff --git a/src/main/java/buttondevteam/presents/hello/pages/HelloWorldPage.java b/src/main/java/buttondevteam/presents/dictionary/pages/HelloPage.java similarity index 79% rename from src/main/java/buttondevteam/presents/hello/pages/HelloWorldPage.java rename to src/main/java/buttondevteam/presents/dictionary/pages/HelloPage.java index 3dedc32..69b45ea 100644 --- a/src/main/java/buttondevteam/presents/hello/pages/HelloWorldPage.java +++ b/src/main/java/buttondevteam/presents/dictionary/pages/HelloPage.java @@ -1,11 +1,11 @@ -package buttondevteam.presents.hello.pages; +package buttondevteam.presents.dictionary.pages; import com.sun.net.httpserver.HttpExchange; import buttondevteam.website.io.Response; import buttondevteam.website.page.Page; -public class HelloWorldPage extends Page { +public class HelloPage extends Page { @Override public String GetName() { diff --git a/src/main/java/buttondevteam/presents/hello/pages/HelloJSONPage.java b/src/main/java/buttondevteam/presents/dictionary/pages/JSONPage.java similarity index 88% rename from src/main/java/buttondevteam/presents/hello/pages/HelloJSONPage.java rename to src/main/java/buttondevteam/presents/dictionary/pages/JSONPage.java index 9e845cd..46ea5bb 100644 --- a/src/main/java/buttondevteam/presents/hello/pages/HelloJSONPage.java +++ b/src/main/java/buttondevteam/presents/dictionary/pages/JSONPage.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.pages; +package buttondevteam.presents.dictionary.pages; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -7,7 +7,7 @@ import com.sun.net.httpserver.HttpExchange; import buttondevteam.website.io.Response; import buttondevteam.website.page.Page; -public class HelloJSONPage extends Page { +public class JSONPage extends Page { @Override public String GetName() { diff --git a/src/main/java/buttondevteam/presents/hello/pages/HelloLocationPage.java b/src/main/java/buttondevteam/presents/dictionary/pages/LocationPage.java similarity index 89% rename from src/main/java/buttondevteam/presents/hello/pages/HelloLocationPage.java rename to src/main/java/buttondevteam/presents/dictionary/pages/LocationPage.java index 88ebbcf..464c918 100644 --- a/src/main/java/buttondevteam/presents/hello/pages/HelloLocationPage.java +++ b/src/main/java/buttondevteam/presents/dictionary/pages/LocationPage.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.pages; +package buttondevteam.presents.dictionary.pages; import org.bukkit.Location; import org.bukkit.entity.Player; @@ -9,10 +9,10 @@ import com.sun.net.httpserver.HttpExchange; import buttondevteam.website.io.Response; import buttondevteam.website.page.Page; -public class HelloLocationPage extends Page{ +public class LocationPage extends Page{ JavaPlugin plugin; - public HelloLocationPage(JavaPlugin plugin){ + public LocationPage(JavaPlugin plugin){ this.plugin = plugin; } @Override diff --git a/src/main/java/buttondevteam/presents/hello/pages/HelloPOSTPage.java b/src/main/java/buttondevteam/presents/dictionary/pages/POSTPage.java similarity index 88% rename from src/main/java/buttondevteam/presents/hello/pages/HelloPOSTPage.java rename to src/main/java/buttondevteam/presents/dictionary/pages/POSTPage.java index 070bc03..88d002a 100644 --- a/src/main/java/buttondevteam/presents/hello/pages/HelloPOSTPage.java +++ b/src/main/java/buttondevteam/presents/dictionary/pages/POSTPage.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.pages; +package buttondevteam.presents.dictionary.pages; import java.io.IOException; @@ -9,10 +9,10 @@ import com.sun.net.httpserver.HttpExchange; import buttondevteam.website.io.Response; import buttondevteam.website.page.Page; -public class HelloPOSTPage extends Page { +public class POSTPage extends Page { JavaPlugin plugin; String saveFilePath = "hello.pages.hellopostpage.saved"; - public HelloPOSTPage(JavaPlugin plugin) { + public POSTPage(JavaPlugin plugin) { this.plugin = plugin; } diff --git a/src/main/java/buttondevteam/presents/hello/pages/HelloPlayersPage.java b/src/main/java/buttondevteam/presents/dictionary/pages/PlayersOnlinePage.java similarity index 83% rename from src/main/java/buttondevteam/presents/hello/pages/HelloPlayersPage.java rename to src/main/java/buttondevteam/presents/dictionary/pages/PlayersOnlinePage.java index 45834da..dfaadeb 100644 --- a/src/main/java/buttondevteam/presents/hello/pages/HelloPlayersPage.java +++ b/src/main/java/buttondevteam/presents/dictionary/pages/PlayersOnlinePage.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.pages; +package buttondevteam.presents.dictionary.pages; import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; @@ -8,10 +8,10 @@ import com.sun.net.httpserver.HttpExchange; import buttondevteam.website.io.Response; import buttondevteam.website.page.Page; -public class HelloPlayersPage extends Page{ +public class PlayersOnlinePage extends Page{ private JavaPlugin plugin; - public HelloPlayersPage(JavaPlugin plugin){ + public PlayersOnlinePage(JavaPlugin plugin){ this.plugin = plugin; } diff --git a/src/main/java/buttondevteam/presents/hello/effects/HelloSound.java b/src/main/java/buttondevteam/presents/dictionary/spawning/PlaySound.java similarity index 86% rename from src/main/java/buttondevteam/presents/hello/effects/HelloSound.java rename to src/main/java/buttondevteam/presents/dictionary/spawning/PlaySound.java index 95170b6..cf695d8 100644 --- a/src/main/java/buttondevteam/presents/hello/effects/HelloSound.java +++ b/src/main/java/buttondevteam/presents/dictionary/spawning/PlaySound.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.effects; +package buttondevteam.presents.dictionary.spawning; import org.bukkit.Sound; import org.bukkit.entity.Player; @@ -6,8 +6,8 @@ import org.bukkit.entity.Player; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.PlayerCommand; -@CommandClass(path = "hello sound") -public class HelloSound extends PlayerCommand{ +@CommandClass(path = "dictionary sound") +public class PlaySound extends PlayerCommand{ @Override public boolean OnCommand(Player player, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/effects/HelloBlock.java b/src/main/java/buttondevteam/presents/dictionary/spawning/SetBlock.java similarity index 75% rename from src/main/java/buttondevteam/presents/hello/effects/HelloBlock.java rename to src/main/java/buttondevteam/presents/dictionary/spawning/SetBlock.java index 9a127c8..755c572 100644 --- a/src/main/java/buttondevteam/presents/hello/effects/HelloBlock.java +++ b/src/main/java/buttondevteam/presents/dictionary/spawning/SetBlock.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.effects; +package buttondevteam.presents.dictionary.spawning; import org.bukkit.Material; import org.bukkit.block.Block; @@ -7,8 +7,8 @@ import org.bukkit.entity.Player; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.PlayerCommand; -@CommandClass(path = "hello block") -public class HelloBlock extends PlayerCommand { +@CommandClass(path = "dictionary block") +public class SetBlock extends PlayerCommand { @Override public boolean OnCommand(Player player, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/effects/HelloCow.java b/src/main/java/buttondevteam/presents/dictionary/spawning/SpawnCow.java similarity index 73% rename from src/main/java/buttondevteam/presents/hello/effects/HelloCow.java rename to src/main/java/buttondevteam/presents/dictionary/spawning/SpawnCow.java index 6ce0318..8ee1b93 100644 --- a/src/main/java/buttondevteam/presents/hello/effects/HelloCow.java +++ b/src/main/java/buttondevteam/presents/dictionary/spawning/SpawnCow.java @@ -1,12 +1,12 @@ -package buttondevteam.presents.hello.effects; +package buttondevteam.presents.dictionary.spawning; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.PlayerCommand; -@CommandClass(path = "hello cow") -public class HelloCow extends PlayerCommand { +@CommandClass(path = "dictionary cow") +public class SpawnCow extends PlayerCommand { @Override public boolean OnCommand(Player player, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/effects/HelloItem.java b/src/main/java/buttondevteam/presents/dictionary/spawning/SpawnItem.java similarity index 75% rename from src/main/java/buttondevteam/presents/hello/effects/HelloItem.java rename to src/main/java/buttondevteam/presents/dictionary/spawning/SpawnItem.java index a695d1c..ae1aa2a 100644 --- a/src/main/java/buttondevteam/presents/hello/effects/HelloItem.java +++ b/src/main/java/buttondevteam/presents/dictionary/spawning/SpawnItem.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.effects; +package buttondevteam.presents.dictionary.spawning; import org.bukkit.Material; import org.bukkit.entity.Player; @@ -7,8 +7,8 @@ import org.bukkit.inventory.ItemStack; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.ModCommand; -@CommandClass(path = "hello item") -public class HelloItem extends ModCommand { +@CommandClass(path = "dictionary item") +public class SpawnItem extends ModCommand { @Override public boolean OnCommand(Player player, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/effects/HelloMagicPotato.java b/src/main/java/buttondevteam/presents/dictionary/spawning/SpawnMagicPotato.java similarity index 87% rename from src/main/java/buttondevteam/presents/hello/effects/HelloMagicPotato.java rename to src/main/java/buttondevteam/presents/dictionary/spawning/SpawnMagicPotato.java index 106c0f4..ceb5791 100644 --- a/src/main/java/buttondevteam/presents/hello/effects/HelloMagicPotato.java +++ b/src/main/java/buttondevteam/presents/dictionary/spawning/SpawnMagicPotato.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.effects; +package buttondevteam.presents.dictionary.spawning; import java.util.ArrayList; @@ -11,8 +11,8 @@ import org.bukkit.inventory.meta.ItemMeta; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.ModCommand; -@CommandClass(path = "hello magicpotato") -public class HelloMagicPotato extends ModCommand { +@CommandClass(path = "dictionary magicpotato") +public class SpawnMagicPotato extends ModCommand { @Override public boolean OnCommand(Player player, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/effects/HelloParticle.java b/src/main/java/buttondevteam/presents/dictionary/spawning/SpawnParticle.java similarity index 70% rename from src/main/java/buttondevteam/presents/hello/effects/HelloParticle.java rename to src/main/java/buttondevteam/presents/dictionary/spawning/SpawnParticle.java index 56e5523..c4556b4 100644 --- a/src/main/java/buttondevteam/presents/hello/effects/HelloParticle.java +++ b/src/main/java/buttondevteam/presents/dictionary/spawning/SpawnParticle.java @@ -1,4 +1,4 @@ -package buttondevteam.presents.hello.effects; +package buttondevteam.presents.dictionary.spawning; import org.bukkit.Particle; import org.bukkit.entity.Player; @@ -6,8 +6,8 @@ import org.bukkit.entity.Player; import buttondevteam.lib.chat.CommandClass; import buttondevteam.presents.architecture.commands.PlayerCommand; -@CommandClass(path = "hello particle") -public class HelloParticle extends PlayerCommand { +@CommandClass(path = "dictionary particle") +public class SpawnParticle extends PlayerCommand { @Override public boolean OnCommand(Player player, String alias, String[] args) { diff --git a/src/main/java/buttondevteam/presents/hello/HelloComponent.java b/src/main/java/buttondevteam/presents/hello/HelloComponent.java deleted file mode 100644 index 1398fe8..0000000 --- a/src/main/java/buttondevteam/presents/hello/HelloComponent.java +++ /dev/null @@ -1,51 +0,0 @@ -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.HelloJSON; -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.HelloBlock; -import buttondevteam.presents.hello.effects.HelloCow; -import buttondevteam.presents.hello.effects.HelloItem; -import buttondevteam.presents.hello.effects.HelloMagicPotato; -import buttondevteam.presents.hello.effects.HelloParticle; -import buttondevteam.presents.hello.effects.HelloSound; -import buttondevteam.presents.hello.pages.HelloDataPage; -import buttondevteam.presents.hello.pages.HelloJSONPage; -import buttondevteam.presents.hello.pages.HelloLocationPage; -import buttondevteam.presents.hello.pages.HelloPOSTPage; -import buttondevteam.presents.hello.pages.HelloPlayersPage; -import buttondevteam.presents.hello.pages.HelloWorldPage; - -public class HelloComponent extends Component{ - - @Override - public void register(JavaPlugin plugin) { - - this.registerCommand(plugin, new HelloCommand()); - this.registerCommand(plugin, new HelloJSON()); - this.registerCommand(plugin, new HelloSave()); - this.registerCommand(plugin, new HelloLoad()); - this.registerCommand(plugin, new HelloTime()); - - this.registerListener(plugin, new HelloBedsplode()); - this.registerCommand(plugin, new HelloCow()); - this.registerCommand(plugin, new HelloItem()); - this.registerCommand(plugin, new HelloMagicPotato()); - this.registerCommand(plugin, new HelloBlock()); - this.registerCommand(plugin, new HelloParticle()); - this.registerCommand(plugin, new HelloSound()); - - this.addPage(plugin, new HelloWorldPage()); - this.addPage(plugin, new HelloDataPage()); - this.addPage(plugin, new HelloPlayersPage(plugin)); - this.addPage(plugin, new HelloLocationPage(plugin)); - this.addPage(plugin, new HelloPOSTPage(plugin)); - this.addPage(plugin, new HelloJSONPage()); - } -}