blockman2011, on 30 October 2012 - 01:17 AM, said:
Yah I like this idea. When I am on a server I like to message people. Somethimes the people have long and hard names to remember. To private message them I type /msg (players name). Could there be a command were it puts /msg (whatever name you choose for that command) without entering it so that you can enter the message you want after it?
Here you go:
/msg $$u $$!
Put this on any key.
/msg- the command
$$u-a list on online players you can choose from
$$!-ends the script and puts the text on the chat screen
I press the key, it comes up with a list of players, I choose the player "kenzierocks".
My chat screen opens with "/msg kenzierocks"
Mumfrey, how does one round a number? I suppose I could use a complicated regex and keep checking that, but is there a simpler way? I'm trying to fire /tp %PLAYER% %XPOS% %YPOS% %ZPOS% but it always fails with commands.generic.double.invalid printed in the chat screen