diff options
author | Cow <cow@volloeko.de> | 2020-09-27 22:34:28 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-09-27 22:34:28 +0200 |
commit | dba1ec3e7885c86e16283d149d088369ecc509fd (patch) | |
tree | 774f581375a219f7d45dc8e1b767d2250347bd91 /src/main/java/de/cowtipper/cowlection/util/ChatHelper.java | |
parent | 586660bb79ca0a53898396dcde3daab809e29fef (diff) | |
download | Cowlection-dba1ec3e7885c86e16283d149d088369ecc509fd.tar.gz Cowlection-dba1ec3e7885c86e16283d149d088369ecc509fd.tar.bz2 Cowlection-dba1ec3e7885c86e16283d149d088369ecc509fd.zip |
New command `/moo dungeon party`
- displays current `/party` members' armor and dungeons floor completions
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/util/ChatHelper.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/util/ChatHelper.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/util/ChatHelper.java b/src/main/java/de/cowtipper/cowlection/util/ChatHelper.java index 28d20ab..0f06bec 100644 --- a/src/main/java/de/cowtipper/cowlection/util/ChatHelper.java +++ b/src/main/java/de/cowtipper/cowlection/util/ChatHelper.java @@ -1,6 +1,7 @@ package de.cowtipper.cowlection.util; import net.minecraft.client.Minecraft; +import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.util.ChatComponentText; import net.minecraft.util.ChatStyle; import net.minecraft.util.EnumChatFormatting; @@ -79,4 +80,11 @@ public class ChatHelper { } Minecraft.getMinecraft().thePlayer.sendChatMessage(chatMsg); } + + public void sendServerCommand(String command) { + EntityPlayerSP thePlayer = Minecraft.getMinecraft().thePlayer; + if (thePlayer != null) { + thePlayer.sendChatMessage(command); + } + } } |