World Guard Blacklist Help

Discussion in 'Bukkit Help' started by 17xDillz1997, Sep 5, 2015.

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

    17xDillz1997

    I want to disable Super Golden Apples in my RPG world, and normal golden apples do not matter, I just added it for a test. I can't seem to find out how to do so. Is this correct?

    Code:
    #
    # WorldGuard blacklist
    #
    # The blacklist lets you block actions, blocks, and items from being used.
    # You choose a set of "items to affect" and a list of "actions to perform."
    #
    ###############################################################################
    #
    # Example to block some ore mining and placement:
    # [coalore,goldore,ironore]
    # on-break=deny,log,kick
    # on-place=deny,tell
    #
    # Events that you can detect:
    # - on-break (when a block of this type is about to be broken)
    # - on-destroy-with (the item/block held by the user while destroying)
    # - on-place (a block is being placed)
    # - on-use (an item like flint and steel or a bucket is being used)
    # - on-interact (when a block in used (doors, chests, etc.))
    # - on-drop (an item is being dropped from the player's inventory)
    # - on-acquire (an item enters a player's inventory via some method)
    #
    # Actions (for events):
    # - deny (deny completely, used blacklist mode)
    # - allow (used in whitelist mode)
    # - notify (notify admins with the 'worldguard.notify' permission)
    # - log (log to console/file/database)
    # - tell (tell a player that that's not allowed)
    # - kick (kick player)
    # - ban (ban player)
    #
    # Options:
    # - ignore-groups (comma-separated list of groups to not affect)
    # - ignore-perms (comma-separated list of permissions to not affect - make up
    #   your very own permissions!)
    # - comment (message for yourself that is printed with 'log' and 'notify')
    # - message (optional message to show the user instead; %s is the item name)
    #
    ###############################################################################
    #
    # For more information, see:
    # http://wiki.sk89q.com/wiki/WorldGuard/Blacklist
    #
    ###############################################################################
    #
    # Some examples follow.
    # REMEMBER: If a line has # in front, it will be ignored.
    #
    
    # Deny golden apple
    [322]
    on-use=deny
    
    # Deny super golden apple
    [322:1]
    on-use=deny
     
  2. Offline

    shades161

    Get rid of the "#" as yaml format will skip over lines starting with that character. After that it should be correct, just deop yourself and give it a test.
     
  3. Offline

    17xDillz1997

    I thought as its a description, it won't make a difference.
     
  4. Offline

    Raepheles

    Yes it is a description do not erase the # character before "Deny golden apple" or "Deny super golden apple" sentences. Now because I've never tested golden apple I don't know if it works or not but some items don't work on blacklist. In my server I didn't want players to use lava bucket and place chest, obsidian, bed and jukebox. Everything works but bed. I tried bed, bed_block, bedblock, and its id none of them worked. There might be a situation like this for golden apple too. Try another blocks to see if they work like obsidian.
     
Thread Status:
Not open for further replies.

Share This Page