Help with group permissions

  • Help with group permissions

    OK so the issue I am having is when I add myself to group "owner" for example, I am invulnerable and have all of my set permissions. Then when I leave and rejoin my server it still shows I'm in the group "owner" in chat but I lose some permissions such as "invulnerable" and "nohungerthirst". I feel like I'm stuck in the default (admin) permissions every time I join server until I go back to the cmd and type "setplayergroup Alakaii owner".

    Any ideas on how I can fix this issue so I don't have to add myself to group on every login?

    Thanks in advance! :thumbsup:


    owner.permissions
  • Sorry. I haven't had a chance to look at these until now...

    Now that I think about it, I've noticed on my server as well that as an admin, my hunger/thirst/health can still deplete even with invulnerable and nohungerthirst set to true. However, I cannot die from health depletion or starvation. I'm not sure if this behavior is intended or not. But it seems like it should be improved so those items simply do not deplete.

    An issue I noticed in the admin.permissions file is that the creative section has entries invalid to it: "nohungerthirst" andd "infiniteitems" (also mis-spelled in your file) whichshould go under the general: section. Be very careful about these yaml files. one typo or a spacing issue can make the entire file ignored. You can check the current log file under Log to see if permission set or not. It took me several troubleshooting attempts before I got mine to finally work.

    Also, a word on explicitness, there is no reason to deny any specific items while * is listed. This is redundant. So under creative: deny:, you'll either deny * or deny specific items.

    Other than that, your settings appear correct.

    For details on the permision system, go here:
    Permission system


    And I have not had a chance to try admintools. You can try removing it and see what behavior changes.. i looked it over once but it does not offer me much benefit right now so i haven't tried installing it.
  • zfoxfire schrieb:

    Sorry. I haven't had a chance to look at these until now...

    Now that I think about it, I've noticed on my server as well that as an admin, my hunger/thirst/health can still deplete even with invulnerable and nohungerthirst set to true. However, I cannot die from health depletion or starvation. I'm not sure if this behavior is intended or not. But it seems like it should be improved so those items simply do not deplete.

    An issue I noticed in the admin.permissions file is that the creative section has entries invalid to it: "nohungerthirst" andd "infiniteitems" (also mis-spelled in your file) whichshould go under the general: section. Be very careful about these yaml files. one typo or a spacing issue can make the entire file ignored. You can check the current log file under Log to see if permission set or not. It took me several troubleshooting attempts before I got mine to finally work.

    Also, a word on explicitness, there is no reason to deny any specific items while * is listed. This is redundant. So under creative: deny:, you'll either deny * or deny specific items.

    Other than that, your settings appear correct.

    For details on the permision system, go here:
    Permission system


    And I have not had a chance to try admintools. You can try removing it and see what behavior changes.. i looked it over once but it does not offer me much benefit right now so i haven't tried installing it.
    zfoxfire Thank you for the reply, :thumbup:

    I will update these files asap. It appears that admintools is not causing this to happen; I am sure this issue will be fixed as the game progresses. I just thought its a good problem to bring up..

    In the meantime I will continue to add myself to group on each initial login, its really not too big a deal.
  • Its odd that the group membership is not staying. try downloading a sql lite application and open the world database. It has the same name as the world and has a db extension.

    Check the Player table and look at the value of the Group column. That should be updated with owner after you log off. If its not saving then could be a problem with the game not writing the data, the server not shutting down properly, or a bug of some type. Are you hosting yourself or did you purchase a game server?
  • I am hosting myself, kinda new at it but learning as best I can with little programing knowledge.

    In my SQlite program I have confirmed I am in the group "owner" in the player table.

    When I join server I am still in owner group [when I type in chat I get the prefix (owner)] the only thing that doesn't stick is invulnerable/nohungerthirst until I re-add myself to the group.
    To check i go to:
    -esc
    -permissions

    Also when I shutdown server I "saveall" then "shutdown".

    Ive tried just about everything I think 8|
  • Umm did you look in the logs and see if there was an error? I was having troubles also and it told me a had an bad entry. I use notepad ++ and set the language to yaml. That seem to help with spacing and all. I have an error now in my log that says WARNING: Permission creative.npctool not found! not sure what that is about, any ideas??
    DAY [ONE] SERVER
    192.154.229.151:4255


    ICON TEST SERVER PVP
    192.154.228.136:4255
    NOTHING STAYS
  • icon58 schrieb:

    Umm did you look in the logs and see if there was an error? I was having troubles also and it told me a had an bad entry. I use notepad ++ and set the language to yaml. That seem to help with spacing and all. I have an error now in my log that says WARNING: Permission creative.npctool not found! not sure what that is about, any ideas??
    I have looked many times no errors found, also Ive fixed any and all typos I have noticed. I haven't tried with the new update though.. Ill have to give it another try.

    EDIT: Just updated server, runs smoother but still same issue. X/

    Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Alakaii ()

  • Alakaii,

    Check your server log under Logs. A new file will be created each time you restart your server. Check to see if any issues show up The part about loading permissions happens really early on and before any plugins are loaded. Here's a snip from my server log. See lines 20-29? You'll see a status for each group file read. If any errors are found, you'll see it here:

    Quellcode

    1. Loading custom images...
    2. 77 images successfully loaded!
    3. 386 chests loaded from DB!
    4. 214 texts loaded from DB!
    5. 48 Plants loaded from DB!
    6. 50 Furnaces loaded from DB!
    7. 5312 NPCs loaded from DB!
    8. STARTING RISING WORLD SERVER...
    9. Server bind to IP: 45.79.211.222:4255
    10. NetworkServer version 0.6
    11. ThreadPoolSize 4255 TCP: 1 (1)
    12. ThreadPoolSize 4255 UDP: 1 (1)
    13. ThreadPoolSize 4256 UDP: 1 (1)
    14. ThreadPoolSize 4256 TCP: 1 (1)
    15. ThreadPoolSize 4257 UDP: 1 (1)
    16. ThreadPoolSize 4257 TCP: 1 (1)
    17. ThreadPoolSize 4258 TCP: 1 (1)
    18. 2017/02/13 06:14 PM F.g
    19. INFO: Default server permissions loaded successfully!
    20. Found 4 files in groups folder
    21. 2017/02/13 06:14 PM F.g
    22. INFO: Group "engineer" permissions loaded successfully!
    23. 2017/02/13 06:14 PM F.g
    24. INFO: Group "guest" permissions loaded successfully!
    25. 2017/02/13 06:14 PM F.g
    26. INFO: Group "admin" permissions loaded successfully!
    27. 2017/02/13 06:14 PM F.g
    28. INFO: Group "member" permissions loaded successfully!
    29. StartUp TcpKernel Port: 4255
    30. StartUp UdpKernel Port: 4255
    31. StartUp UdpKernel Port: 4256
    32. StartUp TcpKernel Port: 4256
    33. StartUp UdpKernel Port: 4257
    34. StartUp TcpKernel Port: 4257
    35. StartUp TcpKernel Port: 4258
    36. RISING WORLD SERVER STARTED
    Alles anzeigen