CommandBook
CommandBook copied to clipboard
@a, @p or @r in player and console-sent commands
CMDBOOK-2312 - Reported by killjoy1221
This works in vanilla, but bukkit has yet to implement it. You could do "/give @a fish" to give everyone some fish. You could also do "/slay @r" to kill a random player.
Currently, this is impossible without using commandblocks.
Comment by wizjany
this isn't really possible? those are parsed by the server before getting sent to plugins i thought.
Comment by killjoy1221
I tried doing the command /tp @a @p (tps everyone to you) in bukkit with no plugins and it returned "unable to find player @a"
If it's prefered, I could submit this as a bug to bukkit.
Comment by wizjany
ah ok, probably only checks it for commandblocks i guess. this might be difficult though unless bukkit exposes api for it or else we have to do all the calculations ourselves and so on...