aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/commands/CommandBug.java
blob: 0ce910624d7dff5d36ef227d685865e0e4d4268a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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;
        }
    }
}