Autorank

Autorank

380k Downloads

Autorank & Privileges, enimies?

snyper82 opened this issue ยท 4 comments

commented

I'm setting up my server (again) to use autorank. I'm using the simple config so there can't be much wrong there.

guest: trusted after 8h
trusted: vip after 8d

My privileges groups.yml (minus most permissions):

groups:
  guest:
    data:
      promotion: trusted
    rank: 10
    permissions:
    - autorank.check
    inheritance: []
  trusted:
    data:
      demotion: guest
      promotion: vip
    rank: 30
    permissions:
    - autorank.leaderboard
    inheritance:
    - guest
  vip:
    data:
      demotion: trusted
    rank: 50
    permissions:
    inheritance:
    - trusted 
  mod:
    rank: 100
    permissions:
    - autorank.checkothers
    - autorank.add
    - autorank.set
    - autorank.set.others
    - autorank.remove
    - autorank.debug
    - autorank.reload
    inheritance:
    - vip
    data:
      promotion: admin
  admin:
    rank: 300
    permissions:
    - autorank.sync
    - autorank.warning.notice
    inheritance:
    - mod
    data:
      demotion: mod

Now the issues

First as admin /ar check demotes... not good
Second, even though I can place myself in guest (via console) then /ar check which promotes on-screen but doesn't actually promote.

commented

Actually this may be a privileges thing...

09:28:56 [SEVERE] org.apache.commons.lang.UnhandledException: Plugin Privileges v1.8.1-b182 generated an exception while executing task 79
        at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NullPointerException: Nodes must be provided.
        at org.yaml.snakeyaml.nodes.NodeTuple.<init>(NodeTuple.java:28)
        at org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:168)
        at org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:213)
        at org.bukkit.configuration.file.YamlRepresenter$RepresentConfigurationSection.representData(YamlRepresenter.java:23)
        at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:95)
        at org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:161)
        at org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:213)
        at org.bukkit.configuration.file.YamlRepresenter$RepresentConfigurationSection.representData(YamlRepresenter.java:23)
        at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:95)
        at org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:161)
        at org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:213)
        at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:95)
        at org.yaml.snakeyaml.representer.BaseRepresenter.represent(BaseRepresenter.java:65)
        at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:271)
        at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:262)
        at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:234)
        at org.yaml.snakeyaml.Yaml.dump(Yaml.java:209)
        at org.bukkit.configuration.file.YamlConfiguration.saveToString(YamlConfiguration.java:38)
        at org.bukkit.configuration.file.FileConfiguration.save(FileConfiguration.java:54)
        at net.krinsoft.privileges.Privileges.saveUsers(Privileges.java:399)
        at net.krinsoft.privileges.groups.GroupManager$1.run(GroupManager.java:297)
        at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:58)
        at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
        ... 3 more
commented

more:

09:50:17 [INFO] Snyper82 issued server command: /ar check
09:50:17 [INFO] [Privileges] [Debug] Searching for group guest...
09:50:17 [INFO] [Privileges] [Debug] Searching for group guest...
09:50:17 [INFO] [Privileges] [Debug] Searching for group guest...
09:50:17 [INFO] [Privileges] [Debug] Searching for group guest...
09:50:17 [INFO] [Autorank] Promote Snyper82 globally from guest to trusted
09:50:17 [INFO] Group To: trusted
09:50:17 [INFO] Group From: guest
09:50:17 [INFO] World: null
09:50:17 [INFO] Player: CraftPlayer{name=Snyper82}
09:50:17 [INFO] ADD GROUP: null
09:50:17 [INFO] [Privileges] [Debug] Setting player Snyper82 to group trusted...
09:50:17 [INFO] [Privileges] [Debug] Searching for group guest...
09:50:17 [INFO] [Privileges] [Debug] Searching for group trusted...
09:50:17 [INFO] [Privileges] [Debug] Snyper82 was successfully unregistered.
09:50:17 [INFO] [Privileges] [Debug] Searching for group trusted...
09:50:17 [INFO] [Privileges] [Debug] Adding player Snyper82 to group trusted...
09:50:17 [INFO] [Privileges] [Debug] Setting player Snyper82 to group guest...
09:50:17 [INFO] [Privileges] [Debug] Searching for group trusted...
09:50:17 [INFO] [Privileges] [Debug] Searching for group guest...
09:50:17 [INFO] [Privileges] [Debug] Snyper82 was successfully unregistered.
09:50:17 [INFO] [Privileges] [Debug] Searching for group guest...
09:50:17 [INFO] [Privileges] [Debug] Adding player Snyper82 to group guest...
09:50:17 [INFO] Worked1: true
09:50:17 [INFO] Worked2: true
09:50:17 [INFO] [Privileges] [Debug] Searching for group guest...
09:50:17 [INFO] In group: false
commented

nevermind, switched to PEX!

:D

commented

Haha, that's one solution too.