Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- guiChat.java
- String s = message.trim();
- if (s.length() > 0)
- {
- String s1 = message.trim();
- String firstChar = s1.substring(0, 1);
- String lastChar = s1.substring( s1.length()-1, s1.length());
- String s2 = firstChar + s1 + lastChar;
- if (mc.lineIsCommand(s1)) {
- mc.thePlayer.sendChatMessage(s1 + "Test");
- }
- if (!mc.lineIsCommand(s1))
- {
- mc.thePlayer.sendChatMessage(s1 + "Test2");
- }
- }
- --------------------------------------------------------------------------------------------------------
- Minecraft.java
- public boolean lineIsCommand(String s)
- {
- if (s.startsWith("/"));
- return true;
- }
Add Comment
Please, Sign In to add comment