[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: |
|
Description |
bukkit code adds duplicates of every command with : after a prefix, |
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 |
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': |
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 |