aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/command/HelpCommand.kt
diff options
context:
space:
mode:
authorIlmarsXd <ilmars500@gmail.com>2023-02-08 16:21:36 +0200
committerIlmarsXd <ilmars500@gmail.com>2023-02-08 16:21:36 +0200
commit154f612ed8d866755a227b42d5485d3ac08e1d7c (patch)
tree6ec2f3c925e67998cdcb5cb223fdd063eabaca6b /src/main/kotlin/dulkirmod/command/HelpCommand.kt
parent695ca674ce4cd4d7565cbdd08986394d65fac90e (diff)
downloadDulkirMod-154f612ed8d866755a227b42d5485d3ac08e1d7c.tar.gz
DulkirMod-154f612ed8d866755a227b42d5485d3ac08e1d7c.tar.bz2
DulkirMod-154f612ed8d866755a227b42d5485d3ac08e1d7c.zip
use TextUtils for messages
Diffstat (limited to 'src/main/kotlin/dulkirmod/command/HelpCommand.kt')
-rw-r--r--src/main/kotlin/dulkirmod/command/HelpCommand.kt28
1 files changed, 5 insertions, 23 deletions
diff --git a/src/main/kotlin/dulkirmod/command/HelpCommand.kt b/src/main/kotlin/dulkirmod/command/HelpCommand.kt
index 0180fac..2b7a9b0 100644
--- a/src/main/kotlin/dulkirmod/command/HelpCommand.kt
+++ b/src/main/kotlin/dulkirmod/command/HelpCommand.kt
@@ -1,33 +1,15 @@
package dulkirmod.command
-import net.minecraft.client.Minecraft
+import dulkirmod.utils.TextUtils
import net.minecraft.command.CommandException
import net.minecraft.command.ICommandSender
-import net.minecraft.util.ChatComponentText
-import net.minecraft.util.EnumChatFormatting
class HelpCommand : ClientCommandBase("dulkirhelp") {
@Throws(CommandException::class)
override fun processCommand(sender: ICommandSender, args: Array<String>) {
- Minecraft.getMinecraft().thePlayer.addChatMessage(
- ChatComponentText(
- EnumChatFormatting.GOLD.toString() + "" + EnumChatFormatting.BOLD + " HI THIS IS DULKIRMOD!"
- )
- )
- Minecraft.getMinecraft().thePlayer.addChatMessage(
- ChatComponentText(
- EnumChatFormatting.GRAY.toString() + "/enchantrune - toggles enchant rune visibility."
- )
- )
- Minecraft.getMinecraft().thePlayer.addChatMessage(
- ChatComponentText(
- EnumChatFormatting.GRAY.toString() + "/fairy - toggles healer fairy visibility."
- )
- )
- Minecraft.getMinecraft().thePlayer.addChatMessage(
- ChatComponentText(
- EnumChatFormatting.GRAY.toString() + "/hl - helps change highlighted leap player on the fly"
- )
- )
+ TextUtils.info("§6§l HI THIS IS DULKIRMOD!", false)
+ TextUtils.info(" §7/enchantrune - toggles enchant rune visibility.", false)
+ TextUtils.info(" §7/fairy - toggles healer fairy visibility.", false)
+ TextUtils.info(" §7/hl - helps change highlighted leap player on the fly.", false)
}
} \ No newline at end of file