CommandBook icon indicating copy to clipboard operation
CommandBook copied to clipboard

@a, @p or @r in player and console-sent commands

Open LadyCailinBot opened this issue 12 years ago • 3 comments

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.

LadyCailinBot avatar Sep 07 '13 00:09 LadyCailinBot

Comment by wizjany

this isn't really possible? those are parsed by the server before getting sent to plugins i thought.

LadyCailinBot avatar Sep 07 '13 03:09 LadyCailinBot

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.

LadyCailinBot avatar Sep 07 '13 03:09 LadyCailinBot

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...

LadyCailinBot avatar Sep 07 '13 04:09 LadyCailinBot