[SPIGOT-360] Command Block Tags not Working for Plugin Commands Created: 04/Jan/15  Updated: 04/Jan/15  Resolved: 04/Jan/15

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

Type: Bug Priority: Minor
Reporter: Mike C Assignee: Thinkofname
Resolution: Cannot Reproduce Votes: 0
Labels: Command, Command_block, Plugin
Environment:

Linux; Java 7, Update 55; 1 GB of RAM



 Description   

When I try to use command block tags (@p, @r, @a, and @e) for plugins commands, it simply doesn't work. Nothing happens. When I use names (Like Bob123) in place of the tags it works. This doesn't apply to vanilla Minecraft commands. I have used the command block override feature to fix those. There are no errors in the console, and no output from the command block. It just simply doesn't work. Examples of commands I have tried are /pay @p (Essentials), /mvtp @p [world] (Multiverse), /spawn @p (Essentials, and /eco give @p (Vault).



 Comments   
Comment by mactso [ 04/Jan/15 ]

You are correct! I have /eco give on the 1.7.10 and retyped it without "give" on 1.8.1.

/eco give @p $13 worked correctly for me just now on 1.8.1.

I think this issue is resolved.

It was really a setup issue and not a bug type issue.

Comment by Thinkofname [ 04/Jan/15 ]

Works fine here

[20:59:38 INFO]: CommandBlock at 50,64,35 issued server command: /eco give thinkofdeath $13

note its /eco give not just /eco

Comment by mactso [ 04/Jan/15 ]

Solution doesn't work in 1.8.1
Command /eco @p $13
Version:
[13:03:20 INFO]: This server is running CraftBukkit version git-Spigot-59b08be-0
899683 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[13:03:20 INFO]: Checking version, please wait...
[13:03:22 INFO]: You are running the latest version
Console:
[13:34:47 INFO]: CommandBlock at 10,80,32 issued server command: /eco MacTso $13
Effect:
1.8.1: Console message issue but nothing else happens.
1.7.10: I receive $13

Solution: Use /eco instead of /pay.
/eco give @p $1

I tested this successfully under 1.7.10. Now testing under 1.8.1 and expect it to work. (It did not work in 1.8.1. )


http://bukkit.org/threads/paying-with-command-blocks.140160/

On Boba4237sdad, Apr 8, 2013 said:
The Essentials Economy gives you these clues:
/eco, /economy: Allows you to take / give or reset money.
/sell: Sells an item and amount at the price specified on worth.yml.
/balance, /bal, /money: Gives the current balance of a player.
/pay: Pays a specified player from your balance.

So use /eco instead of /pay

/eco take @p 50


I've tested this in the current build with and without pay in the command block.
The command block doesn't react to the text but the server is seeing it.
The system is processing the @p into a username.

On 1/4/2015 at 1:04pm.
[13:03:20 INFO]: This server is running CraftBukkit version git-Spigot-59b08be-0
899683 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[13:03:20 INFO]: Checking version, please wait...
[13:03:22 INFO]: You are running the latest version

=====This first line was the result from /pay @p $13.
[13:05:24 INFO]: CommandBlock at 10,80,32 issued server command: /pay MacTso $13
=====This second line was the result from /pay mactso $13.
[13:05:36 INFO]: CommandBlock at 10,80,32 issued server command: /pay mactso $13


I'm using Essentials-2.x-SNAPSHOT.jar.
Essentials signs and economy are working correctiy.

I tested this under 1.7.10 and it's behaves the same there for me (no response from command block- no error). What are the configuration requirements for it to work in 1.7.10? Essentials is working on our 1.7.10 server otherwise.

Comment by Thinkofname [ 04/Jan/15 ]

"Spigot 1.8" isn't what the version field asked for. It wanted the output of /version

Generated at Sat Dec 13 20:13:16 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.