aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/commands
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-07-19 18:43:12 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-07-19 18:43:12 -0600
commit5210b99c5fdd0d816ff3858468b1361702c8e1d7 (patch)
treee30fd7d4ddf31073e9ae12f57372428452bccbc9 /src/net/brysonsteck/Resurrection/commands
parentd0df7cb76069c0022fea8d1e3f0938a585ffcda6 (diff)
downloadresurrection-5210b99c5fdd0d816ff3858468b1361702c8e1d7.tar
resurrection-5210b99c5fdd0d816ff3858468b1361702c8e1d7.tar.gz
resurrection-5210b99c5fdd0d816ff3858468b1361702c8e1d7.tar.bz2
added bug command
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands')
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandBug.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/net/brysonsteck/Resurrection/commands/CommandBug.java b/src/net/brysonsteck/Resurrection/commands/CommandBug.java
new file mode 100644
index 0000000..0ce9106
--- /dev/null
+++ b/src/net/brysonsteck/Resurrection/commands/CommandBug.java
@@ -0,0 +1,44 @@
+package net.brysonsteck.Resurrection.commands;
+
+import net.brysonsteck.Resurrection.Resurrection;
+import org.bukkit.ChatColor;
+import org.bukkit.command.Command;
+import org.bukkit.command.CommandExecutor;
+import org.bukkit.command.CommandSender;
+import org.bukkit.entity.Player;
+import org.bukkit.plugin.java.JavaPlugin;
+import org.bukkit.scheduler.BukkitRunnable;
+
+public class CommandBug implements CommandExecutor {
+
+ @Override
+ public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
+ if (commandSender instanceof Player) {
+ commandSender.sendMessage(ChatColor.YELLOW + "Did you find a bug? Well that sucks for you.");
+ new BukkitRunnable() {
+ @Override
+ public void run() {
+ commandSender.sendMessage("");
+ commandSender.sendMessage(ChatColor.YELLOW + "Okay, fine. Maybe I'll tell you how to fix the problem. Hehe.");
+ commandSender.sendMessage(ChatColor.YELLOW + "You can either create an issue on GitHub here: " + ChatColor.BLUE + "https://github.com/brysonsteck/resurrection/issues");
+ commandSender.sendMessage(ChatColor.YELLOW + "OR you can contact me on Discord if you don't know how to use GitHub: " + ChatColor.GREEN + "bryzinga#9971");
+ commandSender.sendMessage(ChatColor.YELLOW + "Please prepare to explain how the bug occurred regardless of how you report the bug to me.");
+ }
+ }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 60);
+ return true;
+ } else {
+ System.out.println("[Resurrection] Did you find a bug? Well that sucks for you.");
+ new BukkitRunnable() {
+ @Override
+ public void run() {
+ System.out.println("[Resurrection] ");
+ System.out.println("[Resurrection] Okay, fine. Maybe I'll tell you how to fix the problem. Hehe.");
+ System.out.println("[Resurrection] You can either create an issue on GitHub here: https://github.com/brysonsteck/resurrection/issues");
+ System.out.println("[Resurrection] OR you can contact me on Discord if you don't know how to use GitHub: bryzinga#9971");
+ System.out.println("[Resurrection] Please prepare to explain how the bug occurred regardless of how you report the bug to me.");
+ }
+ }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 60);
+ return true;
+ }
+ }
+}