Help with permisions.

Discussion in 'Archived: Plugin Requests' started by propilot, May 17, 2012.

  1. Offline

    propilot

    Hello Bukkit!

    I am having a problem with permissions and no one on my server knows how to set em up, so I decided to ask all of you :). Anyway no one in my server can use any commands like /sethome, /home etc. Only op's can. I am also trying to give limited access to moderators to commands like /kick, etc what ever mod needs to help out a player, or do when an admin isn't online.

    My plugin with the permissions: GroupManager.

    My Current plugins:17:40:35 [INFO] Plugins (29): GroupManager, Ptweaks, WorldEdit, AntiBot, Welcome, CommandBook, Questioner, WorldGuard, AutoMessage, iConomy, AuthMe, Register, Broadcast, Permissions, CraftBookCommon, Lockette, CommandsEX, LoyaltyExp, CraftBookCircuits, MobArena, Essentials, CraftBookMechanisms, EssentialsProtect, EssentialsSpawn, VanishNoPacket, CraftBookVehicles, ChestShop, EssentialsChat, Factions
    My permissions that I made/Tried to make:
    Code:
    groups:
      Default:
        default: true
        permissions:
        - -bukkit.command.kill
        inheritance:
        - g:essentials_default
        - g:bukkit_default
        info:
          prefix: '&0[Guest]'
          build: false
          suffix: ''
      Member:
        default: false
        permissions: []
        inheritance:
        - default
        - g:essentials_builder
        - g:towny_builder
        - g:AuthMe
        - g:Essentials
        - g:Lockette
        - g:/spawn
        info:
          prefix: '&2[Builder]'
          build: true
          suffix: ''
      VIP:
        default: false
        permissions: []
        inheritance:
        - default
        - g:minevehicles.general.*
        - g:minevehicles.submarine.*
        - g:minevehicles.aircraft.*
        - g:essentials_builder
        - g:towny_builder
        - g:AuthMe
        - g:Lockette
        - g:/spawn
        info:
          prefix: '&9[VIP]'
          build: true
          suffix: ''
      Moderator:
        default: false
        permissions: []
        inheritance:
        - builder
        - g:essentials_moderator
        - g:bukkit_moderator
        - g:towny_moderator
        info:
          prefix: '&5[Moderator]'
          build: true
          suffix: ''
      Head-Web-Admin:
        default: false
        permissions: []
        inheritance:
        - builder
        - g:essentials_moderator
        - g:bukkit_moderator
        - g:towny_moderator
        info:
          prefix: '&e[Head of Site]'
          build: true
          suffix: ''
      Admin:
        default: false
        permissions: []
        inheritance:
        - moderator
        - g:essentials_admin
        - g:bukkit_admin
        - g:towny_admin
        info:
          prefix: '&c[Admin]'
          build: true
          suffix: ''
      Co-Owner:
        default: false
        permissions:
        - '*'
        inheritance:
        - admin
        info:
          prefix: '&3[Co-Owner]'
          build: true
          suffix: ''
      Owner:
        default: false
        permissions:
        - '*'
        inheritance:
        - admin
        info:
          prefix: '&4[Owner]'
          build: true
          suffix: ''
    
    Thanks for your time, and help!
     
  2. Offline

    gorbb

    Sure, this wouldn't take too long to complete. If you post the commands that you want each group to have, and I'll see if I can set that up for you. (I'm assuming that you also know how to assign players to the members groups also, but tell me if you don't, and I'll tell you how to.)
     
  3. Offline

    propilot

    Thank you, I need the basic commands for players you know like most servers. /help, /sethome etc, moderatos should have all admin commands other then worldedit, worldguard, and gamemode, and the /op cmd, vips should have /fly for em


    Thank you once again! :)
     
  4. Offline

    gorbb

    Alright, I'll start on doing that. I'm assuming that the Head-Web-Admin, Admin, Co-Owner & Owner are all to be having every command, am I right?
     
  5. Offline

    propilot

    Head-Web-Admin moderator cmds, Admin just restrict /op
     
  6. Offline

    gorbb

    I do believe this should suffice.
    Code:
    groups:
    Default:
      default: true
      permissions:
      - -bukkit.command.kill
      - commandbook.who
      - commandbook.motd
      - commandbook.rules
      - commandbook.spawn
      - commandbook.return
      - commandbook.say.me
      - commandbook.msg
      - commandbook.whereami.compass
      - iConomy.holdings
      - iConomy.help
      - iConomy.payment
      - authme.login
      - authme.logout
      - authme.changepassword
      - authme.register
      - authme.unregister
      - lockette.user.create.*
      - loyaltyexp.givexp
      - factions.kit.halfplayer
      - essentials.afk
      - essentials.help
      - essentials.helpop
      - essentials.rules
      - essentials.compass
      - essentials.list
      - essentials.me
      - essentials.mail
      - essentials.mail.send
      - essentials.msg
      - essentials.tpaccept
      - essentials.tpdeny
      inheritance:
      - g:essentials_default
      - g:bukkit_default
      info:
      prefix: '&0[Guest]'
      build: false
      suffix: ''
    Member:
      default: false
      permissions:
      - commandbook.call
      - commandbook.home.set
      - commandbook.home.teleport
      - ChestShop.shop.*
      - factions.kit.fullplayer
      - essentials.helpop
      - essentials.delhome
      - essentials.sethome
      - essentials.home
      - essentials.tpa
      - essentials.tpahere
      inheritance:
      - g:essentials_builder
      - g:towny_builder
      - g:AuthMe
      - g:Essentials
      - g:Lockette
      - g:/spawn
      - Default
      info:
      prefix: '&2[Builder]'
      build: true
      suffix: ''
      VIP:
        default: false
        permissions:
        - essentials.fly
        inheritance:
        - Default
        - g:minevehicles.general.*
        - g:minevehicles.submarine.*
        - g:minevehicles.aircraft.*
        - g:essentials_builder
        - g:towny_builder
        - g:AuthMe
        - g:Lockette
        - g:/spawn
        info:
          prefix: '&9[VIP]'
          build: true
          suffix: ''
      Moderator:
        default: false
        permissions:
        - *
        - -worldedit.*
        - -worldguard.*
        - -bukkit.command.gamemode
        - -essentials.gamemode.*
        - -commandbook.gamemode.*
        inheritance:
        - Member
        - g:essentials_moderator
        - g:bukkit_moderator
        - g:towny_moderator
        info:
          prefix: '&5[Moderator]'
          build: true
          suffix: ''
      Head-Web-Admin:
        default: false
        permissions: []
        inheritance:
        - Moderator
        - g:essentials_moderator
        - g:bukkit_moderator
        - g:towny_moderator
        info:
          prefix: '&e[Head of Site]'
          build: true
          suffix: ''
      Admin:
        default: false
        permissions:
        - *
        - -bukkit.command.op
        inheritance:
        - Moderator
        - g:essentials_admin
        - g:bukkit_admin
        - g:towny_admin
        info:
          prefix: '&c[Admin]'
          build: true
          suffix: ''
      Co-Owner:
        default: false
        permissions:
        - *
        inheritance:
        - Admin
        info:
          prefix: '&3[Co-Owner]'
          build: true
          suffix: ''
      Owner:
        default: false
        permissions:
        - *
        inheritance:
        - Admin
        info:
          prefix: '&4[Owner]'
          build: true
          suffix: ''
    The default group cannot request teleports, but they can accept or decline them. They also cannot use /sethome, /delhome or /home.
     
    propilot likes this.
  7. Offline

    propilot

    Thank you! I will try this!

    sorry for double.

    Sadly it does not work.

    Code:
     
    org.bukkit.command.CommandException: Unhandled exception executing command 'manuadd' in plugin GroupManager v1.9 (2.9.1) (Phoenix)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
            at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:558)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:450)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
            at org.anjocaido.groupmanager.GroupManager.onCommand(GroupManager.java:304)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 12 more
    >
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  8. Offline

    SirTyler

    Its a problem with your GroupManager, not the permissions file.
     
  9. Offline

    propilot

    Well, when I run my old one everything works fine ;/

    Could it be because I deleted some plugins?
    Code:
    02:19:50 [INFO] Plugins (28): GroupManager, WorldEdit, AntiBot, Welcome, CommandBook, Questioner, WorldGuard, RemoteToolkitPlugin, AutoMessage, MineBackup, iConomy, AuthMe, Broadcast, Permissions, CraftBookCommon, Lockette, CommandsEX, LoyaltyExp, CraftBookCircuits, Essentials, CraftBookMechanisms, EssentialsProtect, EssentialsSpawn, VanishNoPacket, CraftBookVehicles, ChestShop, EssentialsChat, Factions
    
     
  10. Offline

    SirTyler

    Maybe, all I know is your getting a NPE in GroupManger and I don't think its from the permissions file.
     
  11. Offline

    propilot

    I see, I am trying to find the plugin right now maybe its because of the bukkit update.
     
  12. Offline

    djscoobyg2

    Can someone do me some perms on my server and get op just pm me for ip
     
  13. Offline

    TheSchrambo15

    What file would I paste this to if I was wanting to use this on my server? If that is okay with you.
     
  14. Offline

    gorbb


    You would need to paste that in the permissions file for the permissions plugin you're using.
    I'd imagine the location would be something along the lines of plugins/[Your Permissions Plugin]/permmissions.yml

    I know it's that for PermissionsEx, but I can't confirm for any other plugin.
     

Share This Page