[SPIGOT-1030] command.yml doesnt accept : Created: 08/Jul/15  Updated: 25/Jun/16  Resolved: 25/Jun/16

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

Type: Bug Priority: Minor
Reporter: Adam c Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to SPIGOT-1034 config option to disable the auto-ali... Resolved

 Description   

bukkit code adds duplicates of every command with : after a prefix,
adding ' op: - [] ' to command.yml you can disable that, but you cannot use 'minecraft:op: - []' becasue yaml wont interpret : properly



 Comments   
Comment by Adam c [ 25/Jun/16 ]

thanks for taking a year to procrastinate on this issue, instead of making a simple decision and or changing 3 lines of code to tidy up the system

Comment by Antony Riley [ 09/Jul/15 ]

The console also can't use minecraft:op or op if you alias both to nothing either to be fair, since aliases are also applied to commands entered on the console.

Forgive the skepticism, your report didn't include the correct YAML for the bug you where trying to report.

Comment by Adam c [ 08/Jul/15 ]

no, this is not an intended feature, i spoke with md 5 on saturday at minecon about this issue

Comment by Adam c [ 08/Jul/15 ]

so you're telling me the console cant use /minecraft:op if i change that in a permissions.yml that no one running a spigot server uses
i'm more inclined to believe that the commandyml has a problem with it's functions and needs some code to fix it, so i can disable commands from use on the server, and tab complete feature

Comment by Antony Riley [ 08/Jul/15 ]

It's not a bug, what you put in your commands.yml is not valid YAML, or at least it does not mean what you think it means.

I guess by "removed the speech marks when it loaded the file" you mean this:

[18:06:12 WARN]: Could not register alias minecraft:op because it contains illegal characters

I guess commands.yml currently does not support aliases for fallback commands.

I suspect this is an intended feature, the permission system is designed for denying access to commands not aliases.

Comment by Adam c [ 08/Jul/15 ]

i'm not interested in a manual workaround, the command.yml's function is to alias or disconnect commands, i would like it to fulfil this function

tried 'minecraft:op':
and it removed the speech marks when it loaded the file

Comment by Antony Riley [ 08/Jul/15 ]

Try:

'minecraft:op': []

Bukkit's yaml parser only breaks keys if they have a '.' in.

Also if you wish to disable the op command a much better way is to add the following to permissions.yml

minecraft.command.op:
    default: false
Generated at Tue Apr 15 11:10:24 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.