[SEC] WorldGuard - Block fire, ice/melt, MUSHROOMS! Advanced+fast area protect! Blacklist

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

     
  1. Offline

    sk89q

    [IMG]

    _______

    Protect your world by selectivity turning off fire, controlling item usage, blocking TNT, and protecting areas. Most features are disabled by default (this keeps WorldGuard lightweight, even if it has a lot of options.)
    • Protect areas and set flags (like mob spawning, greeting messages, etc.) on regions, controlling who and what happens in zones
      • Many flags available: pvp, mob damage, mob spawning, creeper explosion, ghast fireball, sleep disable, TNT, flint and steal, fire spread, lava fire, lightning, chest protection, water flow, lva flow, button/door use, vehicle placement, snow fall, leaf decay, greeting message, farewell message, administrator notifications on enter/leave, automated healing, blocked/allowed commands, respawn location, physical entry or exit blocking
    • Ban, log, alert, and control the use of certain items with the blacklist
    • Simple user-controlled chest protection by placing signs (disabled by default, won't conflict)
    • Disable and control TNT, flint and steel, creepers, fire spread, lava spread, ice and snow melting, weather, leaf decay, ice formation, fall damage, and many other things
    • Bring back the sponge from Classic that takes away water
    • Make pumpkins let you breathe underwater
    • /god, /heal, /slay, /stack to make item stacks, /locate for compass fun
    • /stopfire and /stoplag are there in emergencies
    • Much much more!
    [IMG]

    [IMG] WorldGuard 5.3
    [IMG][IMG] Quick reference PDF [IMG]

    [IMG] Requirements: WorldEdit (If you don't want WorldEdit and don't plan on using WG's region protection, put WorldEdit.jar in the root folder of your server outside plugins/)

    If you find WorldGuard useful, [IMG]

    [IMG]

    Check out my server too!
    [IMG]

    [IMG]

    This post has been edited 13 times. It was last edited by sk89q Mar 3, 2012.
  2.  
  3. Offline

    WMP

    Dont work:
    Code:
    minecraft@sinopia:~/new$ java -Xms256M -Xmx2048M -jar craftbukkit.jar nogui
    2011-01-17 00:50:41 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-17 00:50:41 [INFO] Loading properties
    2011-01-17 00:50:41 [INFO] Starting Minecraft server on *:25565
    2011-01-17 00:50:41 [INFO] Preparing level "world"
    2011-01-17 00:50:41 [INFO] Preparing start region
    Preparing spawn area: 0%
    Preparing spawn area: 4%
    Preparing spawn area: 8%
    Preparing spawn area: 16%
    Preparing spawn area: 24%
    Preparing spawn area: 24%
    Preparing spawn area: 24%
    Preparing spawn area: 24%
    Preparing spawn area: 28%
    Preparing spawn area: 40%
    Preparing spawn area: 44%
    Preparing spawn area: 44%
    Preparing spawn area: 52%
    Preparing spawn area: 60%
    java.net.SocketException: Connection reset
            at java.net.SocketInputStream.read(SocketInputStream.java:185)
            at java.net.SocketInputStream.read(SocketInputStream.java:199)
            at java.io.FilterInputStream.read(FilterInputStream.java:83)
            at net.minecraft.server.Packet.b(SourceFile:102)
            at net.minecraft.server.NetworkManager.f(SourceFile:157)
            at net.minecraft.server.NetworkManager.c(SourceFile:15)
    
            at net.minecraft.server.NetworkReaderThread.run(SourceFile:68)
    Preparing spawn area: 69%
    Preparing spawn area: 73%
    Preparing spawn area: 81%
    Preparing spawn area: 85%
    Preparing spawn area: 89%
    Preparing spawn area: 97%
    2011-01-17 00:51:04 [INFO] [Guardian] version [1.2] (Helmet) loaded
    2011-01-17 00:51:04 [INFO] WorldGuard WGVERSIONMACRO loaded.
    2011-01-17 00:51:04 [WARNING] WorldGuard: Failed to load regions: plugins/WorldGuard/regions.txt (No such file or directory)
    2011-01-17 00:51:04 [WARNING] WorldGuard blacklist does not exist.
    2011-01-17 00:51:04 [INFO] WorldGuard: Single session is enforced.
    2011-01-17 00:51:04 [INFO] WorldGuard: TNT ignition is PERMITTED.
    2011-01-17 00:51:04 [INFO] WorldGuard: Lighters are PERMITTED.
    2011-01-17 00:51:04 [INFO] WorldGuard: Lava fire is blocked.
    2011-01-17 00:51:04 [INFO] WorldGuard: Fire spread is limited to 0 block types.
    17-Jan-2011 00:51:04 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins/WorldGuard.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java: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(NativeConstructorAccessorImpl.java:57)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
            ... 8 more
    Caused by: java.lang.NoSuchMethodError: org.bukkit.util.config.Configuration.getKeys(Ljava/lang/String;)Ljava/util/List;
            at com.sk89q.bukkit.migration.ConfigurationPermissionsResolver.load(ConfigurationPermissionsResolver.java:44)
            at com.sk89q.worldedit.bukkit.WorldEditPlugin.loadConfiguration(WorldEditPlugin.java:91)
            at com.sk89q.worldedit.bukkit.WorldEditPlugin.<init>(WorldEditPlugin.java:61)
            ... 13 more
    17-Jan-2011 00:51:05 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins/SafePVP.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java: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.NoSuchMethodException: com.random101.safepvp.SafePVP.<init>(org.bukkit.plugin.PluginLoader, org.bukkit.Server, org.bukkit.plugin.PluginDescriptionFile, java.io.File, java.io.File, java.lang.ClassLoader)
            at java.lang.Class.getConstructor0(Class.java:2723)
            at java.lang.Class.getConstructor(Class.java:1674)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:78)
            ... 8 more
    BorderGuard version 1.1 is enabled!
    2011-01-17 00:51:05 [INFO] Done! For help, type "help" or "?"
  4. Offline

    Jobsti

    Oh yeah, wonderful! Many many thanks. Super nice config format (rocks with notepad++ )

    Whats about all permissions? "-/*" or "/+" or only "*" ?!
  5. Offline

    Dspradau

    Yeah getting a similar error here:

    Latest WG and WE on build 63. No other plugins active.

    Code:
    Preparing spawn area: 97%
    Jan 17, 2011 2:43:22 AM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: 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(NativeConstruct                                                                                        orAccessorImpl.java:57)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC                                                                                        onstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j                                                                                        ava:80)
            ... 8 more
    Caused by: while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 3, column 34:
            enforce-single-session: false
                                         ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja                                                                                        va:360)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18                                                                                        3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par                                                                                        serImpl.java:564)
            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.composeMappingNode(Composer.java                                                                                        :230)
            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 02:43:23 [INFO] WorldEdit WEVERSIONMACRO loaded.
    2011-01-17 02:43:25 [INFO] Done! For help, type "help" or "?"
    
  6. Offline

    sk89q

    Does WorldEdit say that it loaded when the server starts up? If it doesn't, then WE wasn't properly updated.


    Previously I copied WorldEdit code into WorldGuard so you didn't need WorldEdit, but this doesn't work in Bukkit. In Bukkit, plugins are loaded in the same loader, allowing plugins to communicate between each other. The downside is that if two plugins use the same code, they will conflict. Thus, if I changed something in WorldEdit that WorldGuard used, you would have to update WorldGuard too even if WorldGuard didn't change.

    61->63 should be fairly safe.

    Any errors? Anything in console?

    I appear to have forgotten about *. I plan to add it if Bukkit doesn't get permissions support soon.

    Get rid of tabs in the file.
  7. Offline

    riuthamus

    I cant get the permissions shit to work with this, works with default usergroups plugin, but will not work with this one.

    I go in and click with the axe and doesnt work. Was working on build 50, but with build 63 not working.
  8. Offline

    sk89q

    WorldEdit now has permissions -- you need to update it to give yourself permission.
  9. Offline

    Dspradau

    Ok I figured out the issue. The config files formatting is done with SPACES not TABS. I replaced the tabs and it works now.


    And ahhh yes I see you posted above. *facepalm* Thanks man!
  10. Offline

    Jobsti

    Works very very fine with #63, also Worldedit. YEAH, great work... I get a little bit wet :D
    In the .zip is the old worldguard.proerties, why? (I deleted it)
  11. Offline

    Nijikokun

    So this fully works now? So I can declare that Guardian will no longer be updated :p
  12. Offline

    tekac

    I'm about to test it with #63, permissions are a tad confusing though.. :D
  13. Offline

    sk89q

    Forgot to remove it.

    Works as far as https://spreadsheets.google.com/pub...Q0t3a0xfZTR6RGRCczZtWTlFbkE&hl=en&output=html

    It works similarly to hMod -- the only difference being that you can't have groups inherit each other. The format of the file may be confusing, but the idea is the same.
  14. Offline

    mark_Dano_4936

    I am confused on how to allow permissions for me!

    users:
    sk89q:
    groups:
    - example
    permissions:
    - /reload
    - /worldedit

    How do i edit this so i can use world edit?
  15. Offline

    riuthamus

    the premissions thing is confusing. I would remove the whole spacing shit, its good for formatting but really annoying for the end user where they matter.

    Code:
    permissions:
        groups:
            default:
                permissions:
                    - /
            serverowner:
                permissions:
                    - /reload WorldEdit
                    - /worldedit
                    - /worldgaurdnotify
                    - /worldeditselect
            mods:
                permissions:
                    - /reload WorldEdit
                    - /worldedit
                    - /worldgaurdnotify
                    - /worldeditselect
        users:
    thats my permissions file right now, but with tabs, ill remove the tabs and should work...??
  16. Offline

    mark_Dano_4936

    I am too Very confused.. Sorry for stressing you but i would change the format
  17. Offline

    Jobsti

    [IMG]
    You don't need "- /*" just a test.
  18. Offline

    stolen_insanity


    I'm getting this exact same error code
    and I also get it with WorldEdit, just the name is different obviously :p
  19. Offline

    mark_Dano_4936

    Thanks it was easier than i thought!
  20. Offline

    sk89q

    Change sk89q to your name.

    That will work, but you need to give yourself a group under "users:". Only use spaces -- no tabs.

    Everything in Bukkit is going to use this format.

    Also, you have to put WorldEdit's permissions in WorldEdit's config.yml and WorldGuard's permissions in WorldGuard's config.yml. This is quite backwards, I am aware, but I am waiting for permissions support in Bukkit (which should hopefully come out in the next few days) so this is all temporary.
  21. Offline

    Jobsti

    I use latest Version of SK89q's plugins, CB: http://bamboo.lukegb.com/browse/BUKKIT-CRAFTBUKKIT-63/artifact
    An all plugins, which worked >#61 (e.g. guardian, general, teleplus, Warps, Groups, Home, MM etc...)

    Edit:
    You get ErrorMessages in the ServerConsole, if you set up the .yml incorrect (e.g. using tab instead of space..)

    @Blacklist users:
    "on-create" "is changed" to "on-place"

    Q: blacklist in maindir or plugins/WorldGuard?
  22. Offline

    sk89q

    You need to update Bukkit.
  23. Offline

    Remus

    I use McMyAdmin because my host, MinecraftGSP provides that, so i use it. But it doesn't output anything to what would be the Console.

    I just think its the permissions are messed up.

    Also by the way now the i updated, Sheep arn't dropping their wool, but thats for another topic.
  24. Offline

    sk89q

    If it doesn't output something, then it's not being loaded.
  25. Offline

    riuthamus

    Code:
    permissions:
        groups:
            default:
                permissions:
                    - /regionlist
                    - /regionclaim
            serverowner:
                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:
           sk89q:
               groups:
                    - serverowner
               permissions:
                    - /reload
                    - /worldedit 
    So this will work?
  26. Offline

    sk89q

    Yes (except for a missing tabbing there). You can simplify it though:
    Code:
    permissions:
        groups:
            default:
                permissions:
                    - /regionlist
                    - /regionclaim
            serverowner:
                permissions:
                    - /region
                    - /regionbypass
            mods:
                permissions:
                    - /region
                    - /regionbypass
        users:
           sk89q:
               groups:
                    - serverowner
               permissions:
                    - /reload
                    - /worldedit 
  27. Offline

    Jobsti

    FAIL ;)
    Not "worldguard-blacklist.txt" only "blacklist.txt"

    You have to rename it!
  28. Offline

    riuthamus

    I hate to abuse you, but i want to verify i got this right... so will this work for my WorldEdit?

    Code:
    permissions:
        groups:
            default:
                permissions:
                    - /
            serverowner:
                permissions:
                    - /reload WorldEdit
                    - /worldedit
                    - /worldgaurdnotify
                    - /worldeditselect
            mods:
                permissions:
                    - /reload WorldEdit
                    - /worldedit
                    - /worldgaurdnotify
                    - /worldeditselect
        users:
           riuthamus:
               groups:
                    - serverowner
               permissions:
                    - /reload
                    - /worldedit 
  29. Offline

    sk89q

    Noted in the first post.

    Just put /reload, not /reload WorldEdit. You also spelled 'guard' wrong in /worldguardnotify.
  30. Offline

    Starrk

    Where do I put the WorldGuard properties?

    I just threw it in my server folder and set the TNT, Lighters and Creepers to false but it still works. Could anyone help?
  31. Offline

    sk89q

    worldguard.properties is for hMod. Ignore it.

    Copy config.yml to plugins/WorldGuard/config.yml and edit that.

    Creepers can't be blocked. See the linked spreadsheet.
  32. Offline

    riuthamus

    Thank you very much sir, testing it now.

Share This Page