diff --git a/core/src/main/java/zone/themcgamer/core/api/WebAPI.java b/core/src/main/java/zone/themcgamer/core/api/WebAPI.java index a933754..92ecf36 100644 --- a/core/src/main/java/zone/themcgamer/core/api/WebAPI.java +++ b/core/src/main/java/zone/themcgamer/core/api/WebAPI.java @@ -3,7 +3,6 @@ package zone.themcgamer.core.api; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import lombok.NonNull; -import org.apache.commons.lang3.StringEscapeUtils; import zone.themcgamer.core.api.json.JsonRequest; import zone.themcgamer.core.api.json.JsonResponse; import zone.themcgamer.data.ChatFilterLevel; diff --git a/core/src/main/java/zone/themcgamer/core/command/CommandManager.java b/core/src/main/java/zone/themcgamer/core/command/CommandManager.java index 5e7ea9e..77a71e5 100644 --- a/core/src/main/java/zone/themcgamer/core/command/CommandManager.java +++ b/core/src/main/java/zone/themcgamer/core/command/CommandManager.java @@ -15,10 +15,7 @@ import zone.themcgamer.common.TriTuple; import zone.themcgamer.core.account.Account; import zone.themcgamer.core.account.AccountManager; import zone.themcgamer.core.command.help.HelpCommand; -import zone.themcgamer.core.command.impl.DiscordCommand; -import zone.themcgamer.core.command.impl.RulesCommand; -import zone.themcgamer.core.command.impl.StoreCommand; -import zone.themcgamer.core.command.impl.StressTestCommand; +import zone.themcgamer.core.command.impl.*; import zone.themcgamer.core.command.impl.essentials.GameModeCommand; import zone.themcgamer.core.command.impl.essentials.TeleportCommand; import zone.themcgamer.core.common.Style; @@ -96,6 +93,7 @@ public class CommandManager extends Module implements CommandExecutor { registerCommand(plugin, new zone.themcgamer.core.command.impl.HelpCommand(this)); registerCommand(plugin, new DiscordCommand()); registerCommand(plugin, new StoreCommand()); + registerCommand(plugin, new VoteCommand()); Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, () -> { for (String disabledCommand : DISABLED_COMMANDS) { diff --git a/core/src/main/java/zone/themcgamer/core/command/impl/VoteCommand.java b/core/src/main/java/zone/themcgamer/core/command/impl/VoteCommand.java new file mode 100644 index 0000000..dfa896b --- /dev/null +++ b/core/src/main/java/zone/themcgamer/core/command/impl/VoteCommand.java @@ -0,0 +1,17 @@ +package zone.themcgamer.core.command.impl; + +import lombok.AllArgsConstructor; +import zone.themcgamer.core.command.Command; +import zone.themcgamer.core.command.CommandProvider; +import zone.themcgamer.core.common.Style; + +/** + * @author Nicholas + */ +@AllArgsConstructor +public class VoteCommand { + @Command(name = "vote", description = "Vote for McGamerZone", playersOnly = true) + public void onCommand(CommandProvider command) { + command.getPlayer().sendMessage(Style.main("Vote", "Vote for McGamerZone at §dhttps://vote.mcgamerzone.net§7.")); + } +} \ No newline at end of file