[SEC] WorldGuard - Protect your server from others, Minecraft, and yourself [BukkitDev]

Discussion in 'Plugin Releases' started by sk89q, Jan 16, 2011.

     
  1. Offline

    sk89q

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]


    WorldGuard is a powerful plugin providing all the little things (and some big ones):
    • Block creeper and wither block damage, falling damage, etc.;
    • Disable fire spread, lava fire spread, ice formation, Endermen picking up blocks, etc.;
    • Blacklist certain items and blocks so they can't be used;
    • Warn moderators when certain items and blocks are used;
    • Protect areas of your world so only certain people can build in them;
    • Set areas where PVP, TNT, mob damage, and other features are disabled;
    • Protect your server from various 'exploits' like magical obsidian creation machines;
    • Disable, or enable, various Minecraft features, like sponges from classic;
    • Add useful commands like an immediate "STOP ALL FIRE SPREAD" command.
    • And add new features.

    [IMG] [IMG] [IMG] [IMG] [IMG]

    [IMG]

    [IMG] [IMG] [IMG] Before posting here: [IMG] [IMG] [IMG]
    • We do not officially provide help for problems here.
    • You will get help only from fellow users if you post here.
    • If you wish to suggest features or report bugs, you must use our issue tracker.
    • Visit our and hang out in our chatroom to talk to developers and other users.
    [IMG]

    This post has been edited 26 times. It was last edited by sk89q Nov 6, 2012.
  2.  
  3. Offline

    Lim-Dul

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just for reference, if you are using Notepad++ for editing .yml (YAML) files you should go to Settings -> Preferences -> Language Menu/Tab Settings and under yaml tick the "Replace by space" (4) checkbox. This will save you from the tabbing disaster. ^^
  4. Offline

    tekac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Lim-Dul thanks so much! I was about to throw my computer out the window with the errors I was receiving with permissions :(
  5. Offline

    Remus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I can't for the life of me get this to work at all.

    Heres how i have everything setup.
    I'm Also using the groups plugin to import Groups.txt, and users.txt from hey0.


    Heres the config.yml, from both worldguard, and worldedit.

    Code:
    summary-on-start: true
    protection:
        enforce-single-session: true
        item-durability: true
    simulation:
        classic-water: false
        sponge:
            enable: true
            radius: 3
    physics:
        # Doesn't work in Bukkit yet
        no-physics-gravel: false
        no-physics-sand: false
        allow-portal-anywhere: false
        disable-water-damage-blocks: []
    ignition:
        block-tnt: true
        block-lighter: true
    fire:
        disable-all-fire-spread: true
        disable-fire-spread-blocks: []
        disable-lava-fire-spread: true
        lava-spread-blocks: []
    mobs:
        # Doesn't work in Bukkit yet
        block-creeper-explosions: true
    spawn:
        # Doesn't work in Bukkit yet
        login-protection: 3
        spawn-protection: 0
        kick-on-death: false
        exact-respawn: false
        teleport-to-home-on-death: false
    player-damage:
        # Doesn't work in Bukkit yet
        disable-fall-damage: true
        disable-lava-damage: true
        disable-fire-damage: true
        disable-drowning-damage: true
        disable-suffocation-damage: true
        teleport-on-suffocation: true
    regions:
        enable: true
        wand: 287
    blacklist:
        logging:
            console:
                enable: true
            database:
                enable: false
                dsn: jdbc:mysql://localhost:3306/minecraft
                user: root
                password: pass
                table: blacklist_events
            file:
                enable: true
                path: worldguard/logs/%Y-%m-%d.log
                open-files: 10
    permissions:
        groups:
            default:
                permissions:
                    - /regionlist
                    - /regionclaim
             admins:
                permissions:
                    - /regiondefine
                    - /regionclaim
                    - /regionflag
                    - /regiondelete
                    - /regioninfo
                    - /regionaddowner
                    - /regionremoveowner
                    - /regionlist
                    - /regionsave
                    - /regionload
                    - /regionbypass
            mods:
                permissions:
                    - /regiondefine
                    - /regionclaim
                    - /regionflag
                    - /regiondelete
                    - /regioninfo
                    - /regionaddowner
                    - /regionremoveowner
                    - /regionlist
                    - /regionsave
                    - /regionload
                    - /regionbypass
        users:
           Remus1348:
               groups:
                    - admins
               permissions:
                    - /reload
                    - /worldedit
    


    World Edit


    Code:
    limits:
        max-blocks-changed:
            default: -1
            maximum: -1
        max-radius: -1
        max-super-pickaxe-size: 5
        max-brush-radius: 5
        disallowed-blocks: [6, 7, 14, 15, 16, 21, 22, 23, 24, 25, 26, 27, 28, 29, 39, 31, 32, 33, 34, 36, 37, 38, 39, 40, 46, 50, 51, 56, 59, 69, 73, 74, 75, 76, 77, 81, 83]
    use-inventory:
        enable: false
        allow-override: true
    logging:
        log-commands: false
        file: worldedit.log
    super-pickaxe:
        drop-items: true
        many-drop-items: false
    snapshots:
        directory:
    shell-save-type:
    no-double-slash: false
    debug: false
    permissions:
        groups:
            default:
                permissions:
            admins:
                permissions:
                     /worldeditselect
        users:
            Remus1348:
                groups:
                     example
                permissions:
                     /reload
                     /worldedit
    


    Also heres how they are setup in my "Plugins" Folder.

    plugins -> WorldGuard -> config.yml
    plugins -> WorldEdit -> config.yml
    plugins -> WorldGuard.jar
    plugins -> WorldEdit.jar

    Running Bukkit build #63.

    Also its outputting that WorldGuard, and WorldEdit are loading. So its got to be the permissions.
  6. Offline

    sk89q

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Anything show up in console to indicate that both load?
  7. Offline

    Remus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    EDIT: Nope nvm, only WorldEdit loads.

    Problem seems to be i can't get WorldGuard to load.
  8. Offline

    sawine

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It works for me, but it says TNT ignition is disabled, but i can still place it and blow it up. It also work with an non op account, regular user. ( I havent edited anything in the persmissions ) The lighers are correctly disabled.

    Edit: sy i meant it says : TNT ignition is blocked.

    and it still works.
  9. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Remus
    Code:
     groups:
            default:
                permissions:
            admins:
                permissions:
                     /worldeditselect
        users:
            Remus1348:
                groups:
                     example
                permissions:
                     /reload
                     /worldedit
    fail ;) do:
    Code:
     groups:
            default:
                permissions:
            admins:
                permissions:
                     - /worldeditselect
        users:
            Remus1348:
                groups:
                     - admins
                permissions:
                     - /reload
                     - /worldedit
  10. Offline

    Remus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Thanks ill try this.

    Edit:Thanks everything works now.
  11. Offline

    stolen_insanity

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I get this:

    2011-01-17 01:27:20 [INFO] WorldEdit WEVERSIONMACRO loaded.
    2011-01-17 01:27:20 [INFO] WorldGuard WGVERSIONMACRO loaded.
    2011-01-17 01:27:20 [WARNING] WorldGuard: Failed to load regions: plugins\WorldG
    uard\regions.txt (The system cannot find the file specified)
    2011-01-17 01:27:20 [WARNING] WorldGuard blacklist does not exist.
    2011-01-17 01:27:20 [INFO] WorldGuard: Single session is enforced.
    2011-01-17 01:27:20 [INFO] WorldGuard: TNT ignition is blocked.
    2011-01-17 01:27:20 [INFO] WorldGuard: Lighters are blocked.
    2011-01-17 01:27:20 [INFO] WorldGuard: Lava fire is blocked.
    2011-01-17 01:27:20 [INFO] WorldGuard: All fire spread is disabled.

    I put the blacklist in the WorldGuard folder.
    What is failed to load regions?
    Also, I can't work out what you mean about the permissions, could you tell me in idiot language? :p
  12. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]

    Use the blacklist

    Code:
    [7,46,52]
    ignore-groups=admins,mods
    on-drop=deny,tell,log,notify
    on-break=deny,tell,log,notify
    on-place=deny,tell,log,notify
    on-acquire=deny,tell,log,notify
    @sk89q
    If I disable the blacklist, and use only "block:tnt", I get this error "on activte", and kicked from server:[IMG]
    On "https://spreadsheets.google.com/pub...Q0t3a0xfZTR6RGRCczZtWTlFbkE&hl=en&output=html" it's "broken" but in your cfg is no "# Doesn't work in Bukkit yet" ;)
  13. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    didnt work, till i put it all in the plugins folder, bukkit needs to make a config folder or something so everybody knows where they go... thanks again
  14. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  15. Offline

    stolen_insanity

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Ok using this I now have fixed the blacklist and regions problem

    Can someone please please help with permissions?
  16. Offline

    tekac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm getting spammed with


    SEVERE: Could not pass event PLAYER_ITEM to WorldGuard
    java.lang.NullPointerException
    at com.sk89q.worldguard.bukkit.BukkitUtil.toVector(BukkitUtil.java:35)
    at com.sk89q.worldguard.bukkit.WorldGuardPlayerListener.onPlayerItem(WorldGuardPlayerListener.java:135)
    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:146)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:199)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:417)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:64)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)


    on build #63. not only that, but pvp is enabled??? server properties has it at false
  17. Offline

    sawine

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks, that screenshot made it more obvious. I was editing the wrong blacklist.
  18. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    permissions are working, but worlguard doesnt seem to be stopping anybody.

    path: E:\MC_HDD\bukkit\plugins\WorldGuard\blacklist.txt

    Code:
    # Deny lava buckets, lava, tnt
    #[327,6,10,11,46]
    #ignore-groups=serverowner,mods
    #on-use=deny,tell
    
    # Notify Lava, Lavabuckets, lava, tnt
    #[49,8]
    #ignore-groups=serverowner,mods
    #on-use=tell
    
    # Deny lighter usage
    #[259]
    #on-use=deny,tell
    Getting massive player listener errors.
  19. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Copy and paste my code from post #70 and test.
    Don't use "#".
  20. Offline

    stolen_insanity

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I get everything to work, the problem is, it works too well and I can't use things.
    I can't work out permissions, someone please help.
  21. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Permission system is tricky, my shit doesnt seem to be reading the blacklist.txt. I copied your stuff and the user can still place whatever they like. No notification.

    **EDIT** you cant place anymore after restart, reload command doesnt seem to reload blacklist. Still getting lot of player listening errors.
  22. Offline

    jbrown6982

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I listed /regionclaim & /worldeditselect for my default group to let users select and claim regions but it's not allowing them any sort of commands. Do I need to add other commands for the default group or is this not implemented yet?
    BTW, all commands work for admin. :\
  23. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    CraftBukkit #66 (#65 no problems)
    Start he Server, no Errors.... destroy any block causes disconnect, and
    [IMG]

    Edit:
    If anyone want to look, CB#65 is running on Dachboden, see signature. (Testserver)
  24. Offline

    Tobzi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I am getting this running #66

    Code:
    2011-01-17 03:35:11 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-17 03:35:11 [INFO] Loading properties
    2011-01-17 03:35:11 [INFO] Starting Minecraft server on *:25565
    2011-01-17 03:35:11 [INFO] Preparing level "world"
    2011-01-17 03:35:11 [INFO] Preparing start region
    Preparing spawn area: 20%
    Preparing spawn area: 48%
    Preparing spawn area: 77%
    2011-01-17 03:35:15 [INFO] [General] version [1.5] (Yager) loaded
    2011-jan-17 03:35:15 org.bukkit.plugin.SimplePluginManager loadPlugins
    ALLVARLIG: Could not load plugins\WorldGuard.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:82)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:115)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:80)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:41)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
            ... 8 more
    Caused by: while parsing a block mapping
     in "<reader>", line 1, column 1:
        summary-on-start: true
        ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 66, column 5:
            users:
            ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:576)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:62)
            at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:45)
            at com.sk89q.worldguard.bukkit.WorldGuardPlugin.<init>(WorldGuardPlugin.
    java:113)
            ... 13 more
    2011-01-17 03:35:15 [INFO] Debugger enabled, use: /debug_dynmap
    2011-01-17 03:35:15 [INFO] Set minimum priority for worker thread
    2011-01-17 03:35:15 [INFO] Map renderer has started.
    2011-01-17 03:35:15 [INFO] map WebServer started on port 8123
    2011-01-17 03:35:15 [INFO] Done! For help, type "help" or "?"
  25. Offline

    8e8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please compare your Craftbukkit build date to the topic's Lasted Updated date. This is important, because if the plugin hasn't been updated for cbukkit it probably WON'T WORK. Same goes for all other plugins.
  26. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Also, after checking, i cant even set the blocks down...interesting. We sure blacklist is looking to the config file for user permissions?
  27. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not yet, I think.
  28. Offline

    tekac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    nobody else is having issues with pvp? I have it pvp = false in server properties. but even since I installed #63 and WorldGuard/WorldEdit, people can kill each other ..

    WorldGuard throws off the error I posted earlier
  29. Offline

    NOSDuco

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey, i installed the worldguard plugin and created a "Region" around the spawnpoint. Now no one can place or mine blocks or items. But people can somehow put doors. Is there anyways to not let people place doors? Could someone please help?
  30. Offline

    l5p4ngl312

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How do you check the topic's Last Updated date? All i see is the date it was posted.
  31. Offline

    8e8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  32. Offline

    sk89q

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Uh... rename it to blacklist.txt. Ignore the "failed to load regions" message.

    Will fix. As for PvP, it sounds like there is an issue with Bukkit. I will look into it.

    The # in front of a line disables the line.

    Paste me those errors if you can.


    Looks like a CraftBukkit bug. I will look into it.

    You appear to have an error in your configuration file. Paste it on somewhere.

    Paste all your configuration files.

Share This Page