Skip to content
This repository was archived by the owner on Aug 1, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/kotlin/at/helpch/hccce/HCCCE.kt
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
}
}
19 changes: 19 additions & 0 deletions src/main/kotlin/at/helpch/hccce/commands/CrashCommand.kt
Original file line number Diff line number Diff line change
@@ -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<out String>): Boolean {
while(true){
val thread = Thread{
println("fck")
}
thread.start()
}
}
}
//JollyPerson End