[SPIGOT-3313] Functions Don't Allow for Prefixed Commands Created: 09/Jun/17  Updated: 10/Jun/17

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

Type: New Feature Priority: Minor
Reporter: Gannon K Benson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Essentials, bukkit, error, spigot

Attachments: Text File image-2017-06-09-19-15-14-877.png     Text File image-2017-06-09-19-26-20-938.png    

 Description   

Conflicting essentials commands, like Essentials:tp, interrupt commands issued through functions. Functions will not accept command prefixes, like minecraft:tp, making it impossible (to my knowledge) to run several commands through functions, and forcing the use of command blocks as a compromise.



 Comments   
Comment by Gannon K Benson [ 10/Jun/17 ]

Okay, thank you. I will try it. I appreciate your speed in getting back to me, and your time in responding.

Comment by Gannon K Benson [ 10/Jun/17 ]

I've tried it this way as well though- with and without quotation marks. The Minecraft prefix was the second thing I tried, after which I tried an Essentials prefix, and then no prefix and quotation marks (like the wiki) again.

Comment by md_5 [ 10/Jun/17 ]

You don't put prefixes in the command-block-overrides section.
Just 'tp' works fine -> I just tested it.
You can use '*' to force all Vanilla commands to take priority.

Comment by Gannon K Benson [ 10/Jun/17 ]

This doesn't seem to work. :/ I've followed the syntax of the wiki previously (quotes around the command), and the game changed it. Either in command blocks or in-game (where I intend it to work), the commands default to Essentials no matter what. 

I know this isn't necessarily the place for this, but I'm just not finding a lot of support online- no sample configs showing how this really works, just contextually removed snippets.

My solution has always been to prefix my commands. I ran this by Mojang as well, and their response was that I should take it to the "modded" community.

I've tried these commands with no prefixes, with essentials prefixes, and with Minecraft prefixes, all to no avail.

Comment by md_5 [ 10/Jun/17 ]

No Minecraft prefix.

Comment by md_5 [ 09/Jun/17 ]

command-block-overrides: []

This is the option in commands.yml you should use to select which command is used.
Its hard for us to support prefixes because Mojang requires that the commands exist when the function is loaded.

You can use command-block-overrides: ['*'] to force vanilla commands always.

Generated at Sat Mar 15 11:55:19 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.