Interface Developer Tools

Implemented fully functioning interface decoders referenced from the client
Added ::iftriggers command that gives visibility of all the varp/varc triggers on an interface
Added ::listifmodels command that gives visibility of all the models present on an interface
Added ::listiftext command that gives visibility of all the text present on an interface
This commit is contained in:
Ceikry
2023-09-14 08:43:22 +00:00
committed by Ryan
parent e60eecc6bf
commit c99dfe7031
8 changed files with 689 additions and 3 deletions
+4 -1
View File
@@ -4,6 +4,7 @@ import core.game.node.entity.player.Player
import core.game.system.command.Command
import core.game.system.command.CommandMapping
import core.game.system.command.Privilege
import core.tools.Log
import core.tools.colorize
/**
@@ -32,7 +33,9 @@ interface Commands : ContentInterface {
* Glorified player.sendMessage with black text coloring and an arrow. Use this when you need to
* notify/inform a player of some information from within the command without ending execution.
*/
fun notify(player: Player, message: String){
fun notify(player: Player, message: String, logToConsole: Boolean = false){
if (logToConsole)
log (this::class.java, Log.DEBUG, message)
player.sendMessage(colorize("-->$message"))
}