Closed Padi142 closed 7 years ago
Your file should follow this example, for indentation, formatting, structure, etc..
You're also missing the line schema-version: 1
, which comes above the users:
section.
But when I copy the example to the file, it doesnt work as well .
What exactly doesn't work?
when I put this (https://pastebin.com/8ZSHxauG) into permissions.yml file, and I run the server ,PermissionsEx turn off, because of error, cause by permissions.yml file.
What error is showing in the console when you use my file? My file parses cleanly when tested.
D:\EMSI server>java -Xmx1024M -jar craftbukkit-1.12.jar -o false Loading libraries, please wait... [16:53:23 INFO]: Starting minecraft server version 1.12 [16:53:23 INFO]: Loading properties [16:53:23 INFO]: Default game type: SURVIVAL [16:53:23 INFO]: Generating keypair [16:53:24 INFO]: Starting Minecraft server on :25565 [16:53:24 INFO]: Using default channel type [16:53:24 INFO]: This server is running CraftBukkit version git-Bukkit-3819f8d (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT) [16:53:24 INFO]: [PermissionsEx] Loading PermissionsEx v1.23.4 [16:53:24 WARN]: [PermissionsEx] This server is in offline mode. Unless this server is configured to integrate with a supported proxy (see http://dft.ba/-8ous), UUIDs may not be stable*! [16:53:24 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! [16:53:24 WARN]: The server will make no attempt to authenticate usernames. Beware. [16:53:24 WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose. [16:53:24 WARN]: To change this, set "online-mode" to "true" in the server.properties file. [16:53:24 INFO]: Preparing level "world" [16:53:25 INFO]: Preparing start region for level 0 (Seed: 5778694003008035850) [16:53:26 INFO]: Preparing spawn area: 47% [16:53:26 INFO]: Preparing start region for level 1 (Seed: 5778694003008035850) 16:53:27 INFO: Preparing start region for level 2 (Seed: 5778694003008035850) 16:53:27 INFO: [PermissionsEx] Enabling PermissionsEx v1.23.4 16:53:27 INFO: [PermissionsEx] Initializing file backend
========== UNABLE TO LOAD PERMISSIONS BACKEND ========= Your configuration must be fixed before PEX will enable Details: Error loading permissions file!
ru.tehkode.permissions.exceptions.PermissionBackendException: Error loading permissions file! at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:321) ~[PermissionsEx-1.23.4.jar:?] at ru.tehkode.permissions.backends.file.FileBackend.
(FileBackend.java:120) ~[PermissionsEx-1.23.4.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:?] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:?] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:?] at ru.tehkode.permissions.backends.PermissionBackend.getBackend(PermissionBackend.java:392) ~[PermissionsEx-1.23.4.jar:?] at ru.tehkode.permissions.backends.PermissionBackend.getBackend(PermissionBackend.java:367) ~[PermissionsEx-1.23.4.jar:?] at ru.tehkode.permissions.PermissionManager.createBackend(PermissionManager.java:624) ~[PermissionsEx-1.23.4.jar:?] at ru.tehkode.permissions.PermissionManager.setBackend(PermissionManager.java:606) ~[PermissionsEx-1.23.4.jar:?] at ru.tehkode.permissions.PermissionManager.initBackend(PermissionManager.java:693) ~[PermissionsEx-1.23.4.jar:?] at ru.tehkode.permissions.PermissionManager. (PermissionManager.java:67) ~[PermissionsEx-1.23.4.jar:?] at ru.tehkode.permissions.bukkit.PermissionsEx.onEnable(PermissionsEx.java:175) [PermissionsEx-1.23.4.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:401) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:362) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:323) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:411) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:372) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:327) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:244) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521) [craftbukkit-1.12.jar:git-Bukkit-3819f8d] at java.lang.Thread.run(Unknown Source) [?:?] Caused by: org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping in 'string', line 1, column 1: groups: ^ expected , but found Scalar in 'string', line 4, column 23: ? ? ? default: 'true' ? ? ? ? ? ? # As of Minecraft 1. ... ^
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at ru.tehkode.permissions.backends.file.FileConfig.loadFromString(FileConfig.java:68) ~[?:?]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at ru.tehkode.permissions.backends.file.FileConfig.load(FileConfig.java:38) ~[?:?]
at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:309) ~[?:?]
... 23 more
Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
in 'string', line 1, column 1:
groups:
^
expected
at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:569) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:157) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:224) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:154) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:122) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:505) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.yaml.snakeyaml.Yaml.load(Yaml.java:424) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at ru.tehkode.permissions.backends.file.FileConfig.loadFromString(FileConfig.java:68) ~[?:?]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[craftbukkit-1.12.jar:git-Bukkit-3819f8d]
at ru.tehkode.permissions.backends.file.FileConfig.load(FileConfig.java:38) ~[?:?]
at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:309) ~[?:?]
... 23 more
16:53:27 INFO: [PermissionsEx] Disabling PermissionsEx v1.23.4 16:53:27 INFO: Server permissions file permissions.yml is empty, ignoring it
Well, the file example is properly "commented", so the stuff appearing after the #
hashtags is technically not seen by PEX, so the comments aren't causing the issue.
When I download
that file, save it as permissions.yml
inside the plugins > PermissionsEx folder
, and start my 1.11.2 server, I'm not seeing that error.
Something must have happened while you were copying and pasting it to create all those ? ? ?
issues in the file.
Try using download
instead of anything else.
oh, I have got 1.12 server Maybe thats the problem...
1.11.2 and 1.12 use the same version of PEX, so Minecraft version is mostly irrelevant.
I tryed it again and it worked now
Ok, cool.
Let me know if you need any additional help. :-) I'm closing this ticket now, but you can still post here and they'll still come to my email.
Ok, I have got another problem. I used the example file and I edited groups and it was working. I backup the file, and then I started to editing permissions and it stopped working. Then I copied the backuped file and it´s not working too... Here is the file
groups:
Hrac:
options:
default: 'true'
prefix: '[Hráč] '
suffix: ' '
rank: '1000'
rank-ladder: Main
weight: '1000'
permissions:
- modifyworld.*
- essentials.kit
- essentials.kits.hrac
- permission.node.one
- permission.node.two
- permission.node.three
- permission.node.four
inheritance: []
VIP:
options:
default: 'false'
build: 'true'
prefix: '&e[&6VIP&e]'
suffix: '&e '
rank: '900'
rank-ladder: Main
weight: '900'
inheritance:
- Hrac
permissions:
- essentials.kits.VIP
- permission.node.five
- permission.node.six
- permission.node.seven
- permission.node.eight
Helper:
options:
default: 'false'
build: 'true'
prefix: '&2[&aHelper&2] '
suffix: ' &a'
rank: '200'
rank-ladder: Main
weight: '200'
inheritance:
- VIP
permissions:
- -essentials.kits.member
- essentials.kits.mod
- permission.node.nine
- permission.node.ten
- permission.node.eleven
- permission.node.twelve
Admin:
options:
default: 'false'
build: 'true'
prefix: 'c&c[&4&lAdmin&c] '
suffix: ' &4 '
rank: '100'
rank-ladder: Main
weight: '100'
inheritance:
- Helper
permissions:
- -essentials.kits.mod
- essentials.kits.admin
- permission.node.thirteen
- permission.node.fourteen
- permission.node.fifteen
- permission.node.sixteen
Owner:
options:
default: 'false'
build: 'true'
prefix: ' &4[&oSpravce&4] '
suffix: ' &4&l'
rank: '1'
rank-ladder: Main
weight: '1'
inheritance:
- Admin
permissions:
- '*'
schema-version: 1
users:
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:
options:
The file parses cleanly.
What are you trying to accomplish in it? I notice you only have about 2 customized nodes in it.
Right here is your file with all the unnecessary stuff removed. (22 lines shorter.)
You're using Essentials for Minecraft 1.7.2 and that's why you're getting the "is it up to date?" error message.
You should be using EssentialsX if you're running a Spigot server.
oh, sorry
Ok, I added few more permissions and it´s not working https://pastebin.com/tzHCCwKb
Did you download the correct version of all the EssentialsX plugins you're using?
What exactly doesn't work?
Your permissions.yml file has question marks all over the place, according to that error message. If you're using Polish letters in the file, that may be the problem. PEX needs plain English letters in most places.
Show me your latest permissions.yml file on Pastebin.
https://pastebin.com/as53Y2pk this is it
That doesn't make sense... PEX wouldn't be showing us this error:
Caused by: org.bukkit.configuration.InvalidConfigurationException: while scanning a simple key
in 'string', line 12, column 1:
? ? - modifyworld.*
^
could not find expected ':'
in 'string', line 13, column 1:
? ? - essentials.kit
^
that shows question marks in the file if that's the most recent server log and the most recent permissions.yml file.
Hmmm
Hi, can you tell me, why is my permissins.xml file not working? Thanks