[SPIGOT-8] Target selectors not working Created: 28/Nov/14  Updated: 29/Nov/14  Resolved: 29/Nov/14

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Luca Assignee: Thinkofname
Resolution: Fixed Votes: 2
Labels: None
Environment:

CraftBukkit 1.8 - Windows 8.1 - Java 7



 Description   

As the title says, the target selectors (@a, @e, @p, @r) do not work in CraftBukkit 1.8, neither when executing the command as a player/console nor when using a command block: the server attempts to find a player with that name.

Previously, in CraftBukkit 1.7.x, they used to work only in command blocks.



 Comments   
Comment by CosmoConsole [ 29/Nov/14 ]

@p with no additional selectors does not work. @p[-1] does and @p[r=5]. /minecraft:tell works with @p only, /tell does not. Confirmed what this post said: http://www.spigotmc.org/threads/command-block-tags-not-working.36670/#post-423070

Comment by conflictxinside [ 29/Nov/14 ]

Still not working here. Just recompiled again.

Comment by Thinkofname [ 29/Nov/14 ]

One of my commits completely disabled command blocks, this has been fixed

Comment by conflictxinside [ 29/Nov/14 ]

This doesn't appear to be fixed for me. Just did a new compile and @p still breaks command blocks.

Comment by CosmoConsole [ 28/Nov/14 ]

This fix appeared to break the BuildTools.

EDIT: Heard it was fixed

Comment by Thinkofname [ 28/Nov/14 ]

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/c5d0d74eaeb376689713dfacbf25b976ceb6259f

Comment by gyroninja [ 28/Nov/14 ]

@Luca That is strange as "/title @a title hi" seemed to work fine for me. I guess it's kind of random. For me the broken commands are from at least the map I was trying to get working.

  • gamemode
  • tp
  • spawnpoints
  • effect
  • clear
  • kill
  • scoreboard
Comment by Luca [ 28/Nov/14 ]

@Taylor Bolas: I have tried with /title, which is from 1.8, and is not working. Also /tellraw is from 1.7.
@CosmoConsole: Plugin developers would need to implement that manually.

Comment by CosmoConsole [ 28/Nov/14 ]

Neither do all plugin commands work with target selectors. Haven't checked whether it's random or per-command basis.

Comment by gyroninja [ 28/Nov/14 ]

I can confirm this isue. Though for me new 1.8 commands seem to use the target selectors correctly. For example a "tellraw @a hi" would work, but "tell @a hi" would not. It seams other 1.8 commands work with them but older commands do not.

Generated at Sat Dec 13 04:25:11 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.