[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

    WMP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh yeah, wonderful! Many many thanks. Super nice config format (rocks with notepad++ )

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

    Dspradau

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    WorldEdit now has permissions -- you need to update it to give yourself permission.
  9. Offline

    Dspradau

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So this fully works now? So I can declare that Guardian will no longer be updated :p
  12. Offline

    tekac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm about to test it with #63, permissions are a tad confusing though.. :D
  13. Offline

    sk89q

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I am too Very confused.. Sorry for stressing you but i would change the format
  17. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]
    You don't need "- /*" just a test.
  18. Offline

    stolen_insanity

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

    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks it was easier than i thought!
  20. Offline

    sk89q

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You need to update Bukkit.
  23. Offline

    Remus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If it doesn't output something, then it's not being loaded.
  25. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    FAIL ;)
    Not "worldguard-blacklist.txt" only "blacklist.txt"

    You have to rename it!
  28. Offline

    riuthamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Noted in the first post.

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

    Starrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thank you very much sir, testing it now.

Share This Page