Basically this plugin broadcasts a players coordinates using a command, for example I would type /coord <player> and it would say in chat (a customized message) with %p as the player variable and %c as the players coords. So maybe something like: SuperJ is at: 359 7090 The config code would be: %p is at: %c Colors would also be nice to have such as all of the &'s
So i found a plugin and it about the same with a few extra features: http://dev.bukkit.org/bukkit-plugins/littlehelper/
lol? there is nothing about coords in this plugin AndyMcB1 Yes those are X and Z but feel free to add Y in there as well if you want to.
superj I believe the /whois command may show the users coordinates but did you want it to broadcast it into chat so everyone can see it or just for the user who uses the command to see it?
I would like it to broadcast it in chat, without a prefix or anything just a simple broadcast that I can customize. All players will see it. Basically it is for a server idea that is disclosed atm
I could program a plugin like this in my sleep. The only flaw might be that you will have to use § for color codes instead of &, but it will still have the same power, just a tiny inconvenience. I can also make 3 commands, one for broadcasting it to the server, one for just telling the command sender, and one for telling a specified player cords to the first specified player. I will start as soon as I get a reply.
Yeah, I learned my lesson. Next time I'll upload it with my first reply instead of bumping the post for somebody else to do it first.
This is how I do it with & instead of §: Code: public String colorize(String str) { return str.replaceAll("(?i)&([a-f0-9k-or])", "\u00a7$1"); } There are other ways that do not require regex, but I've been doing it this way for years and old habits die hard