sign issuses

Discussion in 'Plugin Development' started by mike abbo, Mar 15, 2011.

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

    mike abbo

    not getting help anywhere else so posting here​

    i spent hours trying to make the buy and sell signs work for everyone, but now everyone has the power to make signs like [buy] 1 diamond $0.​
    i would like to make the buy and sell signs only creatable by admins (not mods). i dont know how to do this and am too frustrated to work it out, can someone help me?​

    My Files i have changed:​

    plugins/essentialsgroupmanager/worlds/world/users.yml​

    Code:
    users:
      aMiner:
        subgroups:
        - Miner
        permissions: []
        group: Peasant
        info:
          prefix: '&d'
          suffix: Miner
      gmcouto:
        subgroups: []
        permissions: []
        group: SemiAdmin
      tempRailer:
        subgroups:
        - Miner
        - Railer
        permissions: []
        group: Peasant
        info:
          prefix: '&d'
          suffix: Miner
      anjocaido:
        subgroups: []
        permissions: []
        group: Admins
        info:
          prefix: '&c'
          suffix: King
      aFarmer:
        subgroups:
        - Farmer
        permissions: []
        group: Peasant
        info:
          prefix: '&d'
          suffix: Farmer
      zenexer:
        subgroups: []
        permissions:
        - essentials.god
        group: Moderator
      aHealer:
        subgroups:
        - Healer
        permissions: []
        group: Peasant
        info:
          prefix: '&d'
          suffix: Healer
    
    plugins/essentialsgroupmanager/worlds/world/groups.yml​

    Code:
    groups:
      Default:
        default: true
        permissions:
        - essentials.balance
        - essentials.help
        - essentials.home
        - essentials.motd
        - essentials.sethome
        - essentials.spawn
        - -essentials.signs.buy.create
    
        inheritance: []
        info:
          prefix: ''
          build: false
          suffix: ''
      Miner:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.miner
        - flashlight.regular
        inheritance: []
        info:
          prefix: ''
          build: false
          suffix: ''
      SemiAdmin:
        default: false
        permissions:
        - +groupmanager.mandemote
        - +groupmanager.manpromote
        - -groupmanager.*
        - '*'
        inheritance:
        - moderator
        info:
          prefix: '&c'
          build: false
          suffix: SemiAdmin
      Peasant:
        default: true
        permissions: []
        inheritance:
        - default
        info:
          prefix: '&e'
          build: false
          suffix: Peasant
      Railer:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.railer
        inheritance: []
        info:
          prefix: ''
          build: false
          suffix: ''
      Farmer:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.farmer
        - essentials.spawnmob
        inheritance: []
        info:
          prefix: ''
          build: false
          suffix: ''
      Admins:
        default: false
        permissions:
        - '*'
        inheritance:
        - semiadmin
        info:
          prefix: ''
          build: false
          suffix: ''
      Healer:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.healer
        - essentials.heal
        inheritance: []
        info:
          prefix: ''
          build: false
          suffix: ''
      Moderator:
        default: false
        permissions:
        - essentials.tp
        - essentials.tphere
        - essentials.item
        - essentials.give
        inheritance:
        - default
        info:
          prefix: '&c'
          build: false
          suffix: Mod
    
    pluggins/essentials/config.yml

    Code:
    ############################################################
    # +------------------------------------------------------+ #
    # |                      Notes                          | #
    # +------------------------------------------------------+ #
    ############################################################
    
    # If you want to use special characters in this document, such as accented letters, you MUST save the file as UTF-8, not ANSI.
    # If you receive an error when Essentials loads, ensure that:
    #  - No tabs are present: YAML only allows spaces
    #  - Indents are correct: YAML heirarchy is based entirely on indentation
    #  - You have "escaped" all apostrophes in your text: If you want to write "don't", for example, write "don''t" instead (note the doubled apostrphe)
    #  - List items are prefixed with a hyphen and indented:
    #      lists:
    #        - look like this
    #      not:
    #      - like this
    #  - Text with symbols is enclosed in single or double quotation marks
    #  - CraftBukkit and Permissions have been updated: CraftBukkit and Essentials almost always line up, but sometimes other plugins fall behind CraftBukkit's multiple daily updates
    #  - You have saved the document as UTF-8, NOT the default, ANSI
        
    ############################################################
    # +------------------------------------------------------+ #
    # |                Essentials (Global)                  | #
    # +------------------------------------------------------+ #
    ############################################################
    
    # A color code between 0-9 or a-f. Set to 'none' to disable.
    ops-name-color: 'c'
    
    # The character(s) to prefix all nicknames, so that you know they are not true usernames.
    nickname-prefix: '~'
    
    # The delay, in seconds, required between /home, /tp, etc.
    teleport-cooldown: 0
    
    # The delay, in seconds, before a user actually teleports.  If the user moves or gets attacked in this timeframe, the teleport never occurs.
    teleport-delay: 10
    
    # The delay, in seconds, required between /heal attempts
    heal-cooldown: 60
    
    # The number of items given if the quantity parameter is left out in /item or /give.
    default-stack-size: 64
    
    # Whether or not to reclaim memory on player logout; this is technical, and should only be changed under special circumstances.
    # This generally increases server stability unless very specific runtime configurations are used.
    # HOWEVER, it is known to cause lag upon users logging OUT, so beware!
    reclaim-onlogout: false
    
    # Should primitive spawn protection be enabled?  For most servers, this should be flase; it is better to use a third-party plugin to protect it.
    spawn-protection: false
    
    # Nether settings (switch between worlds with "/world nether" and "/world normal")
    # Sets whether the nether system is enabled, what folder to save the world in, and whether portals should teleport players between worlds.
    nether:
      enabled: false
      folder: nether
      portals-enabled: false
      generate-exit-portals: false
    
    # Mob limit on spawnmob
    spawnmob-limit: 0
    
    # The message of the day, displayed on connect and by typing /motd.
    motd:
      - '&cWelcome, {PLAYER}&c!'
      - '&fType &c/help&f for a list of commands.'
      - 'Currently online: {PLAYERLIST}'
    
    # The server rules, available by typing /rules
    rules:
      - '[1] Be respectful'
      - '[2] Be ethical'
      - '[3] Use common sense'
    
    # Disabled commands will be completelly unavailable on the server.
    disabled-commands:
    - kit
    - give
    - god
    - nick
    - give
    
    # Restricted commands will only be available to ops.
    # These will have NO EFFECT if you have Permissions installed!
    # These are here only if you want something simpler than Permissions.
    restricted-commands:
      - manuadd
      - essentials.signs.buy.create
      - manudel
      - item
      - plugin
      - top
      - tp
      - tphere
      - tree
    
    # Note: All items MUST be followed by a quantity!
    # Times are measured in seconds.
    kits:
      tools:
        delay: 10
        items:
          - 277 1
          - 278 1
          - 279 1
    
    # Disable all signs
    signs-disabled: false
    
    # Backup runs a command while saving is disabled
    backup:
      # Interval in minutes
      interval: 60
      # Add a command that backups your data, e.g.
      # command: 'rdiff-backup World1 backups/World1'
     
    ############################################################
    # +------------------------------------------------------+ #
    # |                  EssentialsHome                    | #
    # +------------------------------------------------------+ #
    ############################################################
    
    # When users die, should they respawn at their homes, instead of the spawnpoint?
    respawn-at-home: true
    
    # When a user interacts with a bed, should their home be set to that location?
    # If you enable this and remove default user access to the /sethome command, you can make beds the only way for players to set their home location.
    bed-sethome: true
       
    ############################################################
    # +------------------------------------------------------+ #
    # |                  EssentialsEco                      | #
    # +------------------------------------------------------+ #
    ############################################################
    
    # Defines the balance with which new players begin.  Defaults to 0.
    starting-balance: 50
    
    # worth-# defines the value of an item when it is sold to the server via /sell.
    worth-1: 1
    worth-278: 1000
    
    # Defines the cost to use the given commands PER USE
    command-costs:
      # /example costs $1000 PER USE
      example: 1000
      # /kit tools costs $1500 PER USE
      kit-tools: 1500
       
    ############################################################
    # +------------------------------------------------------+ #
    # |                  EssentialsHelp                    | #
    # +------------------------------------------------------+ #
    ############################################################
    
    #Show other plugins commands in help
    non-ess-in-help: true
        
    ############################################################
    # +------------------------------------------------------+ #
    # |                EssentialsServerlist                  | #
    # +------------------------------------------------------+ #
    ############################################################
    
    # This is your server's mcserverlist.net API key.  Register your server at mcserverlist.net if you haven't already.
    mcsl-key: ''
        
    ############################################################
    # +------------------------------------------------------+ #
    # |                  EssentialsChat                    | #
    # +------------------------------------------------------+ #
    ############################################################
    
    # If EssentialsChat is installed, this will define how far a player's voice travels, in blocks.  Set to 0 to make all chat global.
    # Note that users with the "essentials.chat.spy" permission will hear everything, regardless of this setting.
    # Users with essentials.chat.shout can override this by prefixing text with an exclamation mark (!)
    # Or with essentials.chat.question can override this by prefixing text with a question mark (?)
    chat:
      radius: 0
    
      # If you want the default chat format, uncomment the next line and comment the other format.
      #format: '<{DISPLAYNAME}> {MESSAGE}'
      format: '&7[{GROUP}]&f {DISPLAYNAME}&7:&f {MESSAGE}'
    
      # You can also have group-specific formats:
      group-formats:
        Default: '{DISPLAYNAME}&7:&f {MESSAGE}'
        Admins: '&c[{GROUP}]&f {DISPLAYNAME}&7:&c {MESSAGE}'
        
    ############################################################
    # +------------------------------------------------------+ #
    # |                EssentialsProtect                    | #
    # +------------------------------------------------------+ #
    ############################################################
    
    protect:
      # Database settings for sign/rail protection
      # get mysql.jar and sqlite and place it in your serverroot/lib directory from here:
      # http://java.net/projects/essentials/sources/svn/show/lib?rev=435
    
      # mysql, sqlite or none
      datatype: 'sqlite'
    
      # If you specified MySQL above, you MUST enter the appropriate details here.
      # If you specified SQLite above, these will be IGNORED.
      username: 'root'
      password: 'root'
      mysqlDb: 'jdbc:mysql://localhost:3306/minecraft'
    
      # For which block types would you like to be alerted?
      # You can find a list of IDs in plugins/Essentials/Items.db after loading Essentials for the first time.
      alert:
        # 10: lava
        # 11: still lava
        # 46: TNT
        on-placement: 10,11,46
        # 1: rock (just an example--doesn't actually do much)
        on-use: 1
        # 46: TNT
        on-break: 46
    
      # Users cannot PLACE these types of blocks/items.
      # < 255 designates a BLOCK
      # > 255 designates an ITEM (Some blocks can be placed as blocks OR items; lava blocks can be placed by lava buckets, for example.)
      blacklist:
        placement: 327,326,14,56,46,11,10,9,8,63,68
        usage: 327,326,325,63,68
     
      # General physics/behavior modifications
      prevent:
        lava-flow: false
        water-flow: true
        water-bucket-flow: true
        fire-spread: true
        lava-fire-spread: true
        flint-fire: false
        tnt-explosion: true
        creeper-explosion: true
    
      # Protect various blocks.
      protect:
        # Protect all signs
        signs: true
    
        # Prevent users from destroying rails
        rails: true
    
        # Blocks below rails/signs are also protected if the respective rail/sign is protected.
        # This makes it more difficult to circumvent protection, and should be enabled.
        # This only has an effect if "rails" or "signs" is also enabled.
        block-below: true
    
      # Prevent placing blocks above protected rails, this is to stop a potential griefing
        prevent-block-on-rails: true
    
      # Disable various default physics and behaviors
      disable:
        # Should fall damage be disabled?
        fall: false
    
        # Users with the essentials.protect.pvp permission will still be able to attack each other if this is set to true.
        # They will be unable to attack users without that same permission node.
        pvp: false
    
        # Should drowning damage be disabled?
        # (Split into two behaviors; generally, you want both set to the same value)
        drown: false
        suffocate: false
    
        # Should damage via lava be disabled?  Items that fall into lava will still burn to a crisp. ;)
        lavadmg: false
    
        # Should arrows cause damage?
        projectiles: false
    
        # This will disable damage from touching cacti.
        contactdmg: false
    
        # Burn, baby, burn!  Should fire damage be disabled?
        firedmg: false
    
        # Should people with build: false in permissions be allowed to build
        # Set true to disable building for those people
        build: false
          
    ############################################################
    # +------------------------------------------------------+ #
    # |                    New Players                      | #
    # +------------------------------------------------------+ #
    ############################################################
    
    newbies:
      # Should we announce to the server when someone logs in for the first time?
      # If so, use this format, replacing {DISPLAYNAME} with the player name.
      # If not, set to ''
      #announce-format: ''
      announce-format: '&dWelcome {DISPLAYNAME} to the server!'
    
      # When we spawn for the first time, which spawnpoint do we use?
      spawnpoint: newbies
    
    # End of File <-- No seriously, you're done with configuration.
     
  2. Offline

    Plague

    since the .yml files rely solely on white space and you destroyed that by not usind CODE sction, no ideas here.
     
  3. Offline

    mike abbo

    what sorry?

    this the right section?
    also why does noone know about this problem?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  4. Offline

    Plague

    When you post click the second to last button and insert the .yml text there
     
  5. Offline

    mike abbo

    done, any advice?

    noone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  6. Offline

    Drakia

    A) Wow you are impatient
    B) This forum is for plugin development not plugin support. You'll need to post in the plugin topic to get help with your issue. From the sounds of it though, you should really just read over your permissions plugin topic to actually understand how it works.
     
Thread Status:
Not open for further replies.

Share This Page