Solved Groupmanager Default not allowed to use some commands / permissions not working

Discussion in 'Plugin Help/Development/Requests' started by Wagy, Sep 14, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Wagy

    So my default group (groupmanager) does not have access to /spawn even tho I added that (/mangaddp default essentials.spawn)

    My developer is away for a while so I decided to fix this my self or try to

    Code:
     g:groupmanager_default:
        permissions:
         -essentials.self.notify
         -essentials.spawn
      g:groupmanager_moderator:
        permissions:
        - groupmanager.listgroups
        - groupmanager.mandemote
        - groupmanager.manpromote
        - groupmanager.manselect
        - groupmanager.manuadd
        - groupmanager.manudel
        - groupmanager.manwhois
        - groupmanager.notify.other
    
      g:groupmanager_admin:
        permissions:
        - groupmanager.mantogglevalidate
        - groupmanager.mansave
        - groupmanager.mangcheckp
        - groupmanager.manglistp
        - groupmanager.manucheckp
        - groupmanager.manulistp
    
    # Permission nodes for CraftBukkit
    # by many devs and contributors
    # [URL]http://dl.bukkit.org/[/URL]
    
      g:bukkit_default:
        permissions:
        - bukkit.broadcast.user
        - -bukkit.command.plugins
    
      g:bukkit_moderator:
        permissions:
        - bukkit.command.ban
        - bukkit.command.ban.ip
        - bukkit.command.ban.player
        - bukkit.command.gamemode
        - bukkit.command.kick
        - bukkit.command.unban
        - bukkit.command.unban.ip
        - bukkit.command.unban.player
    
      g:bukkit_admin:
        permissions:
        - bukkit.broadcast
        - bukkit.broadcast.admin
        - bukkit.command.give
        - bukkit.command.help
        - bukkit.command.kill
        - bukkit.command.list
        - bukkit.command.me
        - -bukkit.command.op
        - -bukkit.command.op.give
        - -bukkit.command.op.take
        - bukkit.command.plugins
        - bukkit.command.reload
        - bukkit.command.save
        - bukkit.command.save.disable
        - bukkit.command.save.enable
        - bukkit.command.save.perform
        - bukkit.command.say
        - bukkit.command.stop
        - bukkit.command.teleport
        - bukkit.command.tell
        - bukkit.command.time
        - bukkit.command.time.add
        - bukkit.command.time.set
        - bukkit.command.version
        - bukkit.command.whitelist
        - bukkit.command.whitelist.add
        - bukkit.command.whitelist.disable
        - bukkit.command.whitelist.enable
        - bukkit.command.whitelist.list
        - bukkit.command.whitelist.reload
        - bukkit.command.whitelist.remove
    
    # Permission nodes for Essentials
    # by ementalo, snowleo, and KHobbits
    # [URL]http://dev.bukkit.org/server-mods/essentials/[/URL]
    
      g:essentials_default:
        permissions:
        - essentials.help
        - essentials.helpop
        - essentials.list
        - essentials.motd
        - essentials.rules
        - essentials.spawn
        - essentials.jail.allow.help
        - essentials.jail.allow.helpop
        - essentials.jail.allow.rules
    
      g:essentials_builder:
        permissions:
        - essentials.afk
        - essentials.afk.auto
        - essentials.back
        - essentials.back.ondeath
        - essentials.balance
        - essentials.balance.others
        - essentials.balancetop
        - essentials.book
        - essentials.chat.color
        - essentials.chat.format
        - essentials.chat.shout
        - essentials.chat.question
        - essentials.compass
        - essentials.delhome
        - essentials.depth
        - essentials.exp
        - essentials.getpos
        - essentials.hat
        - essentials.home
        - essentials.ignore
        - essentials.itemdb
        - essentials.kit
        - essentials.kits.tools
        - essentials.mail
        - essentials.mail.send
        - essentials.me
        - essentials.msg
        - essentials.msg.color
        - essentials.msg.format
        - essentials.nick
        - essentials.pay
        - essentials.ping
        - essentials.powertool
        - essentials.powertooltoggle
        - essentials.protect
        - essentials.recipe
        - essentials.seen
        - essentials.sethome
        - essentials.sethome.bed
        - essentials.sethome.multiple
        - essentials.signs.use.*
        - essentials.signs.create.disposal
        - essentials.signs.create.mail
        - essentials.signs.create.protection
        - essentials.signs.create.trade
        - essentials.signs.break.disposal
        - essentials.signs.break.mail
        - essentials.signs.break.protection
        - essentials.signs.break.trade
        - essentials.suicide
        - essentials.time
        - essentials.tpa
        - essentials.tpaccept
        - essentials.tpahere
        - essentials.tpdeny
        - essentials.warp
        - essentials.warp.list
        - essentials.worth
        - essentials.jail.allow.mail
        - essentials.jail.allow.ping
        - essentials.jail.allow.seen
    
      g:essentials_moderator:
        permissions:
        - -essentials.spawner.enderdragon
        - essentials.afk.kickexempt
        - essentials.ban
        - essentials.ban.notify
        - essentials.banip
        - essentials.book.title
        - essentials.book.others
        - essentials.broadcast
        - essentials.chat.url
        - essentials.chat.magic
        - essentials.clearinventory
        - essentials.delwarp
        - essentials.eco.loan
        - essentials.exp.others
        - essentials.ext
        - essentials.fly
        - essentials.fly.safelogin
        - essentials.getpos
        - essentials.getpos.others
        - essentials.helpop.receive
        - essentials.home.others
        - essentials.invsee
        - essentials.jails
        - essentials.jump
        - essentials.kick
        - essentials.kick.notify
        - essentials.kill
        - essentials.kits.*
        - essentials.msg.magic
        - essentials.mute
        - essentials.mute.notify
        - essentials.nick.color
        - essentials.nick.others
        - essentials.realname
        - essentials.seen.banreason
        - essentials.seen.extra
        - essentials.setwarp
        - essentials.signs.create.*
        - essentials.signs.break.*
        - essentials.spawner
        - essentials.spawner.*
        - essentials.thunder
        - essentials.time
        - essentials.time.set
        - essentials.protect.alerts
        - essentials.protect.admin
        - essentials.protect.ownerinfo
        - essentials.ptime
        - essentials.ptime.others
        - essentials.togglejail
        - essentials.top
        - essentials.tp
        - essentials.tp.others
        - essentials.tphere
        - essentials.tppos
        - essentials.tptoggle
        - essentials.unban
        - essentials.unbanip
        - essentials.vanish
        - essentials.vanish.effect
        - essentials.warps.*
        - essentials.weather
        - essentials.whois
        - essentials.workbench
        - essentials.world
        - essentials.worlds.*
        - essentials.jail.allow.jails
        - essentials.jail.allow.togglejail
    
      g:essentials_admin:
        permissions:
        - -essentials.backup
        - -essentials.essentials
        - -essentials.setspawn
        - -essentials.reloadall
        - -essentials.plugin
        - essentials.*
    
    # Permission nodes for Towny by ElgarL
    # [URL]http://dev.bukkit.org/server-mods/towny-advanced/[/URL]
    
      g:towny_default:
        permissions:
        - towny.chat.local
    
      g:towny_builder:
        permissions:
        - towny.wild.build.6
        - towny.wild.destroy.6
        - towny.wild.destroy.14
        - towny.wild.destroy.15
        - towny.wild.destroy.16
        - towny.wild.build.17
        - towny.wild.destroy.17
        - towny.wild.destroy.18
        - towny.wild.destroy.21
        - towny.wild.destroy.31
        - towny.wild.destroy.37
        - towny.wild.destroy.38
        - towny.wild.destroy.39
        - towny.wild.destroy.40
        - towny.wild.destroy.50
        - towny.wild.destroy.56
        - towny.wild.destroy.73
        - towny.wild.destroy.74
        - towny.wild.destroy.78
        - towny.wild.destroy.81
        - towny.wild.destroy.82
        - towny.wild.destroy.83
        - towny.wild.destroy.86
        - towny.wild.destroy.103
        - towny.wild.destroy.106
        - towny.wild.destroy.111
        - towny.wild.destroy.115
    
      g:towny_moderator:
        permissions:
        - towny.chat.mod
        - towny.wild.switch.64
        - towny.wild.build.83
        - towny.wild.build.86
        - towny.wild.build.103
        - towny.wild.build.111
        - towny.wild.build.115
    
      g:towny_admin:
        permissions:
        - towny.admin
        - -towny.wild.destroy.119
        - -towny.wild.destroy.120
        - towny.chat.admin
    
    # Permission nodes for VanishNoPacket by mbaxter
    # [URL]http://dev.bukkit.org/server-mods/vanish/[/URL]
    
      g:vanish_moderator:
        permissions:
        - vanish.vanish
        - vanish.smokin
        - vanish.nofollow
        - vanish.nopickup
        - vanish.preventincomingdamage
        - vanish.hooks.dynmap.alwayshidden
        - vanish.hooks.essentials.hide
    
      g:vanish_admin:
        permissions:
        - vanish.silentjoin
        - vanish.silentquit
        - vanish.silentchests
     
    Last edited by a moderator: Sep 14, 2015
  2. Offline

    Binner_Done

    Look, All the rest of your groups have spaces but your g:groupmanager_default: perms do not. Try adding spaces. Should work!

    @Rageskk did you config your self? Not from ingame?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 11, 2016
  3. Offline

    Wagy

    Once I checked it had the required spaces idk my Jr moderator is saying its something with essentials
     
  4. Offline

    Binner_Done

    @Wagy Can you show me your recent file please

    Also, did you actually do /mangaddp {groupname} essentials.spawn

    If you have, do it again and tell me what it says
    If not then you are silly!

    EDIT: If not also do the command XD

    <Edited by bwfcwalshy: Merged posts, please use the edit button rather than double posting.>
     
    Last edited by a moderator: Sep 14, 2015
  5. Offline

    oceantheskatr

    Btw this is wrong:
    Code:
         -essentials.self.notify
         -essentials.spawn

    This is how it should be to allow the permissions:
    Code:
         - essentials.self.notify
         - essentials.spawn

    This is how it should be to deny the permissions:
    Code:
         - -essentials.self.notify
         - -essentials.spawn
     
  6. Offline

    Wagy

    Shouldnt it allow it to be executed if I did mangaddp default essentials.spawn before it did that for me now its not working even if I deleted the command and re did it but I will check it out and update you if it works and I know that if you put a - it wont execute it probably my lower developer messed up thanks I will see if it works ------- it didnt work it just says sorry but you do not have permission to perform this command
     
  7. Offline

    Impelon

    Ok... Hey there guys... I'm Impelon (yeah obviously) and I'm the Jr Dev Wagy was talking about...

    (Well ya... he said Jr-Mod, but he ment me and I'm his Jr-Dev; well nvm it's not important anyways)

    So wagy asked me to come in here; explain the situation...

    Ok sure, in the config-file wagy has posted up above are obviously some formatting errors; I fixed them about five days ago or something like that, so now it looks like this:

    Code:
      g:groupmanager_default:
        permissions:
        - essentials.self.notify
        - essentials.spawn
    So I changed that stuff, but it really does not matter anyways, since that are the globalgroups and not the actual groups and get overridden (Because I did that) though... Here is the actual YML-File for the groups used on the server:


    Code:
    # Group inheritance
    #
    # Any inherited groups prefixed with a g: are global groups
    # and are inherited from the GlobalGroups.yml.
    #
    # Groups without the g: prefix are groups local to this world
    # and are defined in the this groups.yml file.
    #
    # Local group inheritances define your promotion tree when using 'manpromote/mandemote'
    
    groups:
      Helper:
        default: false
        permissions:
        - maxbans.kick
        - staffchat.listen
        - staffchat.speak
        inheritance:
        - default
        info:
          build: false
          prefix: '&7[&2&lHelper&7]&2&l'
          suffix: ''
      Owner:
        default: false
        permissions:
        - +vanish.effects.toggle.all
        - -vanish.effects.*
        - -essentials.silentjoin.vanish
        - '*'
        inheritance:
        - admin
        info:
          build: true
          prefix: '&8[&4&lOwner&8]'
          suffix: ''
      Builder:
        default: false
        permissions: []
        inheritance:
        - default
        - g:essentials_builder
        - g:towny_builder
        info:
          build: true
          prefix: '&2'
          suffix: ''
      Jr-Developer:
        default: false
        permissions:
        - -essentials.silentjoin.vanish
        - '*'
        - essentials.*
        inheritance: []
        info:
          build: false
          prefix: '&7[&c&lJr-Developer&7]'
          suffix: ''
      Sr-Dev:
        default: false
        permissions:
        - '*'
        inheritance: []
        info:
          build: false
          prefix: '&7[&8Sr-Developer&7]'
          suffix: ''
      Sr-Moderator:
        default: false
        permissions: []
        inheritance:
        - jr-moderator
        info:
          build: false
          prefix: '&7[&6&lSr-Moderator&7]'
          suffix: ''
      Admin:
        default: false
        permissions:
        - -essentials.silentjoin.vanish
        - fwf.*
        inheritance:
        - g:groupmanager_admin
        - g:bukkit_admin
        - g:essentials_admin
        - g:towny_admin
        - g:vanish_admin
        - sr-moderator
        info:
          build: true
          prefix: '&0[&4&lAdmin&0]'
          suffix: ''
      Default:
        default: true
        permissions:
        - -bukkit.command.kill
        - -bukkit.command.plugins
        - chatcontrol.group.Default
        - essentials.balance
        - essentials.balance.others
        - essentials.balancetop
        - essentials.ban.notify
        - essentials.build
        - essentials.chat.ignore
        - essentials.clearinventory
        - essentials.delhome
        - essentials.help
        - essentials.helpop
        - essentials.home
        - essentials.kit
        - essentials.kits.Default
        - essentials.mail
        - essentials.mail.clear
        - essentials.mail.send
        - essentials.motd
        - essentials.msg
        - essentials.seen.banreason
        - essentials.sethome
        - essentials.sethome.multiple
        - essentials.signs.use.buy
        - essentials.signs.use.sell
        - essentials.signs.use.warp.*
        - essentials.silentjoin
        - essentials.silentquit
        - essentials.spawn
        - essentials.suicide
        - essentials.tpa
        - essentials.tpaccept
        - essentials.tpahere
        - essentials.tpdeny
        - essentials.warp
        - essentials.warp.list
        - frozenwf.use
        - modifyworld.*
        inheritance:
        - g:groupmanager_default
        - g:bukkit_default
        - g:essentials_default
        - g:towny_default
        info:
          build: false
          prefix: '&e'
          suffix: ''
      Helper+:
        default: false
        permissions:
        - essentials.sethome.multiple.more
        inheritance:
        - helper
        info:
          build: false
          prefix: ''
          suffix: ''
      Jr-Moderator:
        default: false
        permissions: []
        inheritance:
        - helper+
        info:
          build: false
          prefix: '&7[&6&lJr-Moderator&7]'
          suffix: ''
    
    The most interesting part of this config-file is the Default-Group (which, yes, inherits from groupmanager_default [see above], but get's overridden anyways, because I specify "essentials.spawn" and "essentials.self.notify" again as a permission eighterway), surely, because that's what our problem concentrates on...
    None of the listed Essentials-Permissions (e.g. "essentials.warp" or "essentials.tpa") work, allthough all of the other non-Essentials-Permissions (e.g. "frozenwf.use" or others I have removed now, because they were there just for testing) work perfectly fine!
    So I would absolutely say that the Problem is not caused by the Groupmanager-Plugin or the Configuration itself, since all of the non-Essentials-Permissions DO work. I rather think that the Essentials-Plugin is the problem, since we have a experimental non-official version (EssentialsX) which works with 1.8-Spingot, but also caused problems with chatformatting and many command-outputs...

    So details:
    Details (open)
    Essentials: EssentialsX-2.0.1.jar (for 1.8.1; this one: http://dev.bukkit.org/bukkit-plugins/essentialsx/)
    Server-jar: Spingot 1.8.7
    Groupmanager: EssentialsGroupManager.jar


    So yeah I think that this problem is related to EssentialsX... maybe we need to ask on their supportpage for help, if you guys don't know it (like me xD)
     
  8. Offline

    Wagy

    Or a 1.8 Essentials version that we dont know about that isnt experimental
     
  9. Offline

    Boomer

    The fact that you say "aaaah, it doesn't matter whats in the globalgroups file, cause that all gets overwritten anyways" is a flawed belief.

    The meaning of the content in the globalgroups may be meaningless, - every entry could be
    - bibble.bobble

    but, if it is FORMATTED incorrectly, and not parseable yml, it will kill the entire permission system

    What we need to see is the is the startup log from your server, from the first line, to see what errors you may be having, to see what versions of things you have that may be critical, to see any other warning flags.

    Just make sure that you're not in offline mode.. and then after a restart (not a /reload ) www.pastebin.com with the logs/latest.log file please
     
  10. Offline

    Wagy

    This is really weird /tpa and /warp work but /spawn doesnt work I will or my Jr developer will post what is requested
     
  11. Offline

    Binner_Done

    This will sound stupid but you don't have world guard set to disable the command /spawn do you? It is just a thought and it could happen!
    @Wagy
     
  12. Offline

    Boomer

    My money is on "well, we couldn't get the permissions working, so we installed this plugin called "SimpleTP" ... and still have it, resolved the other issues, and now that plugin is taking over all the basic tp commands, but of course has no permissions setup for it, so permissions can be setup for essentials til the cows come home but if another plugin is getting the commands...

    There is also this whole component of it (known as Reading the instructions and finding critical info) such as
    EssentialsX requires Vault to enable chat prefix/suffixes and group support if you have a supported permissions plugin.
    and

    [​IMG]

    Which suggests that if they dont have the essentials spawn and essentials chat jars from the 1.8 jenkins version (with the big bold button below to find that site), then clearly the spawn and chat wont work..., as this particular jar only replaces the core essentials.jar file in the suite

    So lots of possible reasons for things, all of which a startup log will show exactly what is installed, running, erroring, warning about dependancies, etc
     
    Last edited: Sep 16, 2015
  13. Offline

    Impelon

    Yeah sure, it would crash the whole server if it was formatted incorrectly, I'm not completly dumb, but well I just found out a few hours ago that we actually have EssentialsX and not Essentials... Yeah I know, sounds stupid, but I didn't add the plugins to the server, wagy did that and I did not notice any difference since also I'm not used to Spingot, was only in staff for pure bukkit servers... Well, but like I've mentioned... fixed the incorrect formatting anyways xD

    Just checked... nope xD

    Yeh, I know, now that I noticed what's up with the EssentialsX... I have allready reupdated the EssentailsX, that fixed almost every essentials-permission... so, like wagy mentioned, "/tpa" or "/warp" finally work now... I had to go do stuff, back now so I'll also update the rest of the jar's! Let's see what happens... hopefully we can put this to [solved]

    EDIT:

    Ok, fine; we now have following EssentialsX-jars:
    - EssentailsX-2.0.1.jar
    - EssentailsXChat-2.0.1.jar
    - EssentailsXSpawn-2.0.1.jar

    But well... "/spawn" is still not usable.

    Well here you have the complete starup-log:

    http://pastebin.com/vEfDqNhB

    Yep... a lot of ClassNotFoundErrors most chaused by outdated plugins which are trying to access an outdated nms, that obviously does not exist xD well like I've said I did not add the plugins... I'll probably have to sort out those plugins after we are done with this issue, but well =p I do not actually see any error from essentialsX and also it sais it loaded all of the EssentialsX-jars hmmm ^^


    Also: Don't treat me like I am stupid or so -.- I mean sure, I have not done the right stuff from the beginning, but I do essentially know how to read and also how plugins work, since I am Developer (for Bukkit for about a year now). And that's also exacly why I have some of these problems. I am Developer and also for Bukkit, not Spingot (Yeah I am aware of Spigot including Bukkit, obviously also why Bukkit-Plugins still work), but what I want to say is that normally plugin-management is an Admin's job, not exactly a Dev's, which means I know how to use config.yml and I do know to read error-logs and also see the cause of an error (I mean please it's even written there; not that hard to know), but I am not used to Spigot and it's changes to plugins (yeah nms changes xD I know, that's... I mean... What else would you expect from it?), having about 50 plugins installed that spam the chat (with about 25% being outdated and just causing errors)...
    With that many plugins installed I did not even think it might have been caused by that EssentialsX.jar, until I tried everything else... for about 5 days....... I though other plugins might interfere with essentials and I though that's why it was not working. Well, now I know better, maybe next time I will check the plugin which should do the stuff correctly first, then the others xD But without noticing we have a broken version... I mean xD like it's said all the time: "In most cases, it's not the program's fault, it's the programmer's"


    Anyways, see if you can spot the error;

    @Binner_Done
    Also which line in the config would be that? I thought I'd be this:
    Code:
        block-plugin-spawning: true
    
    (I also tried with it being false, did not change anything to the "/spawn" command, so I guess it is not what you meant when you said that worldguard could block it; this is a snip from /plugins/WorldGuard/config.yml)
     
    Last edited: Sep 16, 2015
  14. Offline

    Boomer

    The thing about a lot of errors is that saying "Well, ignore the 20 broken plugins that are spewing errors there - those plugins aren't related to the plugin that im having problems in" is a flawed thought process - sometimes these plugins dont outright not-install , but will spew rrors and yet appear to work - they will hook into things, and can disrupt the events that other plugins should be getting, so a busted sign-click plugin can cause interference with some other plugin that is involved in interactions.

    It makes things harder to deal with finding problems when other plugins might be playing strange interference when broken. Best to disable them and put them out of the equation when testing just to make sure. Doesn't matter that you're "just the plugin writer" if you're trying to help troubleshoot issues - you can see these plugins aren't working, so remove them - at the very least, disable (rename .jar to .jam) to act as a placeholder ("Hey, jimmy, why is the factions plugin called factions.jam, is that why it never worked? " << Attention drawn to the issue, yet problems removed

    --
    Essentials spawn present, permissions present in the default group, rank chains inherit that..
    When the /spawn command is issued, what appears in-game, and what appears in-log? Wondering if it throws an inline error to the server log -- meaning that something is broken in a plugin - or if its being siphoned off somewhere else as a command to another plugin. As with all essentials commands, /espawn will forcibly use the essentials spawn command, so if some other plugin has indeed registered /spawn instead (and thus requires permissions set for that plugin), the /espawn will work. If you get the same results with it, then the issue is indeed with the essentials spawn plugin.


    FYI the issue with votifier is that you're using a shared-ip hosting, and some other server has snagged using the default votifier port first. You need to change the listening port from the default (mathematically add any random number between 1 and 100 to the existing votifier port as the listener, and then see if it will bind to it. Also make sure the ipv4 provided is correct, and not a carry-over setting from a test server setup, but is infact the ipv4 of the actual server) As there may be many votifier users on the same ip as yours, it may require 2 or 3 trial and errors to change the port number until it can bind, then the votifier-ads need to have the listening port changed on the website.

    The rest of the errors present, you already do have a solid grasp on the cause of them and why said jars will NEVER work and should be not allowed to even try starting up until a correct build version can be found, and worldguard related errors being due to the version of worldedit not being correct for it, forcing wg to not work , forcing the wgflags to not work..
     
  15. Offline

    Impelon

    @Boomer

    Ok thanks for that final advice, managed to clarify everything now; forgot I could forcefully use the essential's command with adding the "e"... Like I've said, I'm more of a programmer... and sure I can help out, but atm I have to do all of it and it's time-consuming; sometimes it is hard to think about the cause of a problem more specifically, if you have a lot to checking to do and only one person to do it... =I well nvm I'll fix the rest of the plugin setup and then it should work, because the command indeed seems to have been overriden...

    Also: Thy for the tip with the Votifier, have not had the time to look into it yet, but your tip should make it less time-consuming for me =D
     
  16. Offline

    Boomer

    nothing really stands out as a respawning command theif, but since the word has multiple meanings, look into the 'spawners' plugins that are involved in creating mobs and blocks and stuff - could be that the usage /spawn cow etc has been introduced by one of them and taking away the teleport spawn command.
    Those would be first rounds of plugins to temporarily disable (disabling 3 or 4 at a time, via a logical grouping, or binary-disabling knocking out half the plugins to see if the issue is gone or remains) that seems logical, as well as anything that provides additional administrative commands.

    Good luck with the troubleshooting
     
Thread Status:
Not open for further replies.

Share This Page