commands: crash

This commit is contained in:
Bixilon 2023-03-20 00:23:50 +01:00
parent e62e3a39f6
commit b4ef596dc6
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 25 additions and 0 deletions

View File

@ -25,5 +25,7 @@ object Commands {
ReloadCommand, ReloadCommand,
PingCommand, ConnectCommand, PingCommand, ConnectCommand,
CrashCommand,
) )
} }

View File

@ -0,0 +1,23 @@
/*
* Minosoft
* Copyright (C) 2020-2023 Moritz Zwerger
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* This software is not affiliated with Mojang AB, the original developer of Minecraft.
*/
package de.bixilon.minosoft.terminal.commands
import de.bixilon.minosoft.commands.nodes.LiteralNode
import de.bixilon.minosoft.gui.eros.crash.ErosCrashReport.Companion.crash
object CrashCommand : Command {
override var node = LiteralNode("crash", executor = {
Throwable("Intended crash!").crash()
})
}