Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Permissions Plugin - Bukkit


  • Please log in to reply
22 replies to this topic

#1

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 05 March 2011 - 09:51 PM

I am running a private server for me and a few friends, and i've installed the permissions plugin using bukkit.
this is a copy of the world.yml i am using. everyone on the server has all commands, and i can't spot the problem. If you can see an error, any help is appreciated.

Thanks, Midget

Register or log in to remove.

#2

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 05 March 2011 - 09:52 PM

# System is no longer used, but may become used in the future
# Copies is for multiple-world support
#   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
#   Does not work for the default world.
#  Example: copies: Derp    -  This will clone the permissions of the world Derp
#
# Make sure to rename this file to the name of the world that is in sever.properties under
# level-name.  So if it is level-name: world  then this should be world.yml and in the
# plugins/Permissions directory (ie. plugins/Permissions/world.yml)
#
# NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
# doing this is to use Notepad++ and replace the tab with 4 spaces.
plugin:
    permissions:
        system: default
        copies:

##        
# AntiBuild is included with this.  To disable a group from being able to build then
# set the build: flag to false (build: false).  If you want a group to be able to build
# then set it to true.
##
# Groups can contain inheritance.
#   To make a group inherit the permissions from another
#   group simply place the groups name in the "inheritance:" like so:
#
#   Example:
#       inheritance:
#           - Default
##
#   All permissions including the asterisks must be placed in single quotes.
#   like so:
#
#       - 'general.spawn'
#
#   Otherwise errors will happen!
##
#   Globalized Permission settings:
#
#       If a permission contains periods (.) you can denote a globalized parameter:
#
#           - 'general.*'
#
#       This will allow you to use all general commands.
#
##
#   Single Asterisk denotes all commands:
#
#       - '*'
#   If you give a group this permissions, do not have the group inherit any permissions
#   from other groups.  Any users assigned to this group should NOT be given any additional
#   permissions either.
##
#   To exempt a node use the - prefix like so:
#       - '-general.time'
##
#   prefix: and suffix: do not do anything on their own.  You need another outside plugin
#   such as iChat or HeroChat in order for these to do anything.
groups:
    Default:
        default: true
        info:
            prefix: ''
            suffix: ''
            build: false
        inheritance:
        permissions:
    Moderator:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
        permissions:'essentials.i'
    Admins:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
        permissions:['*']

##
# Users denote which users are included in which group.
# TheNo1Yeti is in the Admin group
# Herpina is a member of the Moderator group but also has access
# to the herp.derp permissions
# Derpina is a member of the admin group but does not have access
# to the derp.derp permission node
# Users can also have a prefix and suffix as seen with Herpina
##
users:
    TehMidget94:
        group: Admins
        permissions:

#3

imodatlife
  • Location: GA
  • Minecraft: imodatlife

Posted 06 March 2011 - 03:19 AM

hmmm can everyone USE every command? or does it just show up under /help ?
hello good sir!

#4

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 06 March 2011 - 10:30 AM

well, a new person logged on last night and had no access to any commands, but 2 other users can USE all commands, they dont just show up under help.

#5

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 06 March 2011 - 02:06 PM

Ok, it seems that when if a player is an op from the original system, then they get access to all powers, but it needs to be that only some people have some powers.

#6

sansavarous
    sansavarous

    Lapis Lazuli Collector

  • Members
  • 1037 posts

Posted 06 March 2011 - 02:11 PM

Deop them.

#7

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 06 March 2011 - 06:08 PM

yeah but that means that they dont have access to anything.

#8

sansavarous
    sansavarous

    Lapis Lazuli Collector

  • Members
  • 1037 posts

Posted 06 March 2011 - 06:13 PM

Then configure permissions.

You'll probably get a better response on the bukkit forums.

http://bukkit.org/

#9

MinerFortyNiner
  • Location: Behind you
  • Minecraft: FourtyNinerMiner

Posted 06 March 2011 - 06:25 PM

I'm pretty sure this is your problem.

Quote

groups:
Default:
default: true
info:
prefix: ''
suffix: ''
build: false
inheritance:
permissions:

You didn't give anybody any permissions at all. This here is the default group that everybody belongs to when they join your server. There are no permissions listed here. Therefore, they can't use anything.

Quote

Admins:
default: false
info:
prefix: ''
suffix: ''
build: true
inheritance:
permissions:['*']

That little star there next to the permissions mean that this group (Admins) has access to all permissions. You're able to use them all because you're in the admin group. Anyone in this group will have the same permissions as you. Moreover, in your Moderators group I see one permission, 'essentials.i'. Don't know what that one does, but anyone in your Moderators group can use it. Starting to get it?
Posted Image Posted Image Posted Image Posted Image

#10

Orcworm
    Orcworm

    Ghast Hunter

  • Members
  • 2731 posts
  • Location: Britain
  • Minecraft: Orcworm

Posted 06 March 2011 - 06:26 PM

Your groups are also not inheriting correctly. Admin should inherit from Mod and so on.
Posted Image

#11

MinerFortyNiner
  • Location: Behind you
  • Minecraft: FourtyNinerMiner

Posted 06 March 2011 - 06:40 PM

Orcworm said:

Your groups are also not inheriting correctly. Admin should inherit from Mod and so on.

It specifically says that whichever group has the '*' permission (in this case Admins) should not inherit from anything.

Quote

# - '*'
# If you give a group this permissions, do not have the group inherit any permissions
# from other groups. Any users assigned to this group should NOT be given any additional
# permissions either.

However, Moderators SHOULD inherit from the Default group.
Posted Image Posted Image Posted Image Posted Image

#12

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 06 March 2011 - 06:41 PM

ah ok, so they have to inherit from each other, i'll try that, thanks.

#13

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 06 March 2011 - 06:54 PM

this is what the yml now looks like, but ops still have access to everything, and others have access to nothing. anything wrong with the text? or do i need to add the player specifically to the default group in the 'users' bit?

plugin:
    permissions:
        system: default
        copies:


    Default:
        default: true
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
        permissions:
            -'essentials.i'
            -'essentials.warp'
            -'essentials.setwarp'
            -'essentials.delwarp'
            -'essentials.heal'
            -'essentials.give'
            -'essentials.sethome'
            -'essentials.home'
            -'essentials.spawn'
            -'essentials.jump'
            -'essentials.list'
            -'essentials.time'
    Moderator:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
            - Default
        permissions:
    Admins:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
            - Moderator
        permissions:
            -'*'

users:
    TehMidget94:
        group: Admins
        permissions: []

#14

Orcworm
    Orcworm

    Ghast Hunter

  • Members
  • 2731 posts
  • Location: Britain
  • Minecraft: Orcworm

Posted 06 March 2011 - 07:06 PM

Replace your Permissions.jar with this one and try it again, it's the one I'm currently using on my server.

http://www.orcworm.c...Permissions.jar


MinerFortyNiner said:

Orcworm said:

Your groups are also not inheriting correctly. Admin should inherit from Mod and so on.

It specifically says that whichever group has the '*' permission (in this case Admins) should not inherit from anything.

Quote

# - '*'
# If you give a group this permissions, do not have the group inherit any permissions
# from other groups. Any users assigned to this group should NOT be given any additional
# permissions either.

However, Moderators SHOULD inherit from the Default group.


Shouldn't make any difference either way, besides, I'm somewhat used to the format I suggested after using it for so long.
Posted Image

#15

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 06 March 2011 - 07:27 PM

will do thanks. i'll post again if its still not working

#16

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 06 March 2011 - 09:34 PM

its still not working, anyone who isnt an op doesnt have access to any commands, i think it may be a problem with the groups. any idea anyone?

#17

Orcworm
    Orcworm

    Ghast Hunter

  • Members
  • 2731 posts
  • Location: Britain
  • Minecraft: Orcworm

Posted 06 March 2011 - 10:12 PM

Have you ran your config through a parser to check for any errors?

http://yaml-online-parser.appspot.com/
Posted Image

#18

TehMidget94
  • Location: Plymouth, UK
  • Minecraft: TehMidget94

Posted 06 March 2011 - 11:29 PM

yep, and this is what it says, but im new to this and im not sure what it means, but it doesnt say error.


Output
{
  "users": {
    "TehMidget94": {
      "group": "Admins",
      "permissions": [
        "*"
      ]
    }
  },
  "plugin": {
    "Default": {
      "default": true,
      "info": {
        "prefix": "",
        "suffix": "",
        "build": true
      },
      "inheritance": null,
      "permissions": "-'essentials.i' -'essentials.warp' -'essentials.setwarp' -'essentials.delwarp' -'essentials.heal' -'essentials.give' -'essentials.sethome' -'essentials.home' -'essentials.spawn' -'essentials.jump' -'essentials.list' -'essentials.time'"
    },
    "Moderator": {
      "default": false,
      "info": {
        "prefix": "",
        "suffix": "",
        "build": true
      },
      "inheritance": [
        "Default"
      ],
      "permissions": null
    },
    "Admins": {
      "default": false,
      "info": {
        "prefix": "",
        "suffix": "",
        "build": true
      },
      "inheritance": null,
      "permissions": "-'*'"
    },
    "permissions": {
      "system": "default",
      "copies": null
    }
  }

it basically just copies what i input? :/

#19

outern
    outern

    Tree Puncher

  • Members
  • 11 posts
  • Location: Norway
  • Minecraft: Outern88

Posted 17 March 2011 - 07:50 AM

From the essentials post on the bukkit forum:

Quote

You NEED to delete EssentialsHelp.jar, EssentialsTele.jar, EssentialsWarp.jar, EssentialsHome.jar, EssentialsUpdate.jar, EssentialsGod.jar, EssentialsBan.jar, and EssentialsEco.jar. They have been merged into Essentials.jar. Don't worry: you alternative plugins will still work!

I had the same problem, but after i did this it worked like a charm.
Viking-Craft - Norwegian Minecraft channel on youtube: Link here

#20

flaherty095

Posted 15 May 2011 - 07:57 PM

Does anyone know why I can't create a faction on my server? I have the plugins installed and everything. But when I do /f create , it says "You lack the permissions to create a new faction". Im the Admin tho! Please help!!