diff options
author | ingle <inglettronald@gmail.com> | 2022-10-28 12:17:26 -0500 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-10-28 12:17:26 -0500 |
commit | bfa2b37155711e2a907f15d6e56d18378ae4f723 (patch) | |
tree | ffae5faade666c6ed631f8f8c438def680c9fc27 /src/main/kotlin/dulkirmod/command | |
parent | fba8ecf8f06c03c36c8d4823fe5e5928bad98d32 (diff) | |
download | DulkirMod-bfa2b37155711e2a907f15d6e56d18378ae4f723.tar.gz DulkirMod-bfa2b37155711e2a907f15d6e56d18378ae4f723.tar.bz2 DulkirMod-bfa2b37155711e2a907f15d6e56d18378ae4f723.zip |
+ Efficiency improvements
+ command for setting leap highlight
+ (I THINK) abiphone dnd (on by default)
Diffstat (limited to 'src/main/kotlin/dulkirmod/command')
-rw-r--r-- | src/main/kotlin/dulkirmod/command/LeapNameCommand.kt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/command/LeapNameCommand.kt b/src/main/kotlin/dulkirmod/command/LeapNameCommand.kt new file mode 100644 index 0000000..3d7b4f2 --- /dev/null +++ b/src/main/kotlin/dulkirmod/command/LeapNameCommand.kt @@ -0,0 +1,25 @@ +package dulkirmod.command + +import dulkirmod.DulkirMod +import dulkirmod.config.Config +import net.minecraft.command.CommandException +import net.minecraft.command.ICommandSender +import net.minecraft.util.ChatComponentText + +class LeapNameCommand : ClientCommandBase("hl") { + @Throws(CommandException::class) + override fun processCommand(sender: ICommandSender, args: Array<String>) { + if (args.isEmpty()) { + DulkirMod.mc.thePlayer.addChatMessage( + ChatComponentText("${DulkirMod.CHAT_PREFIX} §6Please give a username argument (case sensitive) for who you want to be highlighted.") + ) + return + } + + val username = args[0] + Config.highlightLeapName = username + DulkirMod.mc.thePlayer.addChatMessage( + ChatComponentText("${DulkirMod.CHAT_PREFIX} §6Selected Leap Highlight for username: §f$username§6.") + ) + } +}
\ No newline at end of file |