I need a very basic plugin! When you type /Link a little link pops up in a little link. I would also like it if there could be colors! Ooh, I need this done ASAP! I can give some rewards ingame! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Basic.... public boolean onCommand(CommandSender sender,Command cmd, String commandLabel, String[] args){ Player player = (Player) sender; if (commandLabel.equalsIgnoreCase ("link")){ player.sendMessage("Url Goes Here");
Use commandhelper; Its a very useful plugin. EDIT: Add that to your config.txt Code: /<command> = msg(concat(color(<ColorName>),'<PLACE YOUR LINK HERE')) [CODE/]
Casting to a player without checking? D: ZeusAllMighty11 He was referring to a link popping up I believe.
I mean like a line of text in game that can be colored. Can someone link me a plugin? And also.... Thanks for all of these replies!
An entire plugin for such basic functionality? As nhadobas mentioned, try out CommandHelper. Ridiculously easy to make commands that do things just like this, you can have multiple commands with custom functionality. Try it, really. Also, casting to Player simply to send a message? D: