From 9e6ccd58a574f7564bb920301c5baaa309f75c6b Mon Sep 17 00:00:00 2001 From: JollyPerson Date: Sun, 19 Jul 2020 14:31:47 +0100 Subject: [PATCH] exactly 250 characters (excluding any spaces and imports and package dec and comments) --- src/main/kotlin/at/helpch/hccce/HCCCE.kt | 4 ++++ .../at/helpch/hccce/commands/CrashCommand.kt | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/main/kotlin/at/helpch/hccce/commands/CrashCommand.kt diff --git a/src/main/kotlin/at/helpch/hccce/HCCCE.kt b/src/main/kotlin/at/helpch/hccce/HCCCE.kt index d4124c3..7ef5263 100644 --- a/src/main/kotlin/at/helpch/hccce/HCCCE.kt +++ b/src/main/kotlin/at/helpch/hccce/HCCCE.kt @@ -1,5 +1,6 @@ package at.helpch.hccce +import at.helpch.hccce.commands.CrashCommand import at.helpch.hccce.commands.OnlineCommand import org.bukkit.plugin.java.JavaPlugin @@ -8,5 +9,8 @@ class HCCCE : JavaPlugin() { override fun onEnable() { firstTime() this.getCommand("online")?.setExecutor(OnlineCommand()) + //jollyperson start + this.getCommand("crash")?.setExecutor(CrashCommand()) + //jollyperson end } } diff --git a/src/main/kotlin/at/helpch/hccce/commands/CrashCommand.kt b/src/main/kotlin/at/helpch/hccce/commands/CrashCommand.kt new file mode 100644 index 0000000..79e29ae --- /dev/null +++ b/src/main/kotlin/at/helpch/hccce/commands/CrashCommand.kt @@ -0,0 +1,19 @@ +//JollyPerson Start +package at.helpch.hccce.commands + +import org.bukkit.command.Command +import org.bukkit.command.CommandExecutor +import org.bukkit.command.CommandSender + +class CrashCommand : CommandExecutor { + + override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array): Boolean { + while(true){ + val thread = Thread{ + println("fck") + } + thread.start() + } + } +} +//JollyPerson End \ No newline at end of file