Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[Plugin][Bukkit] WorldGuard 5.0 - Protect your world [1.4]


  • Please log in to reply
145 replies to this topic

#1

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 14 November 2010 - 09:14 AM

WorldGuard has a number of features to protect your server from either griefing or accidents or add a few new cool features. It can selectively disable fire spread and lava fires, among many other protection features. You can make the sponge block actually work and simulate classic water.

Any feature can be enabled or disabled!

    [*:1i77t48p]Protect cuboids
    [*:1i77t48p]God mode with /god
    [*:1i77t48p]Adjustable spawn protection and login protection
    [*:1i77t48p]Disable:
      [*:1i77t48p]Creeper explosions from taking out terrain
      [*:1i77t48p]TNT explosions
      [*:1i77t48p]Lighters from setting fires
    [*:1i77t48p]Control fire spreading:
      [*:1i77t48p]Block ALL fire spreading, OR
      [*:1i77t48p]Prevent it from spreading to some blocks (your choice!)
    [*:1i77t48p]Control lava:
      [*:1i77t48p]Prevent lava from starting fires
      [*:1i77t48p]Restrict lava to spreading to only some blocks (your choice!)
    [*:1i77t48p]Use a powerful block and item blacklist:
      [*:1i77t48p]Choose what you want WorldGuard to do when (1) a player attempts place a block, (2) a player attempts to destroy a block, (3) a player attempts to left click with an item in their inventory, (4) a player attempts to right click a block (such a chest), (5) when a player attempts to drop an item or block, or (6) when a player attempts to pick up an item
      [*:1i77t48p]Choose to deny; notify admins; log to console, file, or database; kick; ban; and/or tell the player
    [*:1i77t48p]Simulate Classic-esque water by letting water infinitely expand (only if there is a block underneath)
    [*:1i77t48p]Simulate the sponge from Classic (blocks water in its general area)
    [*:1i77t48p]Enforce only one session for a player on a server (so a person can't login twice)
    [*:1i77t48p]Stop all fire spread globally with /stopfire in chat or fire-stop from console
    [*:1i77t48p]Allow the placement of portal blocks anywhere
    [*:1i77t48p]Prevent gravel and sand from falling**

Using the Blacklist

In worldguard-blacklist.txt you can make WorldGuard perform actions if:
    [*:1i77t48p]A player tries to destroy a block
    [*:1i77t48p]A player is about to break a block
    [*:1i77t48p]A player tries to place a block
    [*:1i77t48p]A player tries to use / right click a block (i.e. chest)
    [*:1i77t48p]A player tries to use a tool or object (left click)
    [*:1i77t48p]A player tries to drop an item
    [*:1i77t48p]A player acquires an item
Possible actions include:
    [*:1i77t48p]Notifying all administrators
    [*:1i77t48p]Logging it to a database, to a file, and/or to console
    [*:1i77t48p]Telling the player that s/he can't do it
    [*:1i77t48p]Blocking the player from doing it
    [*:1i77t48p]Kicking the player
    [*:1i77t48p]Banning the player

For example, if you didn't want players to be able to use diamond pickaxes or diamond axes and you wanted to announce to administrators when a player tried to destroy obsidian, you could use this:
[diamondpickaxe,diamondaxe]
ignore-groups=admins,mods
on-destroy-with=deny,tell,kick
:obsidian:
ignore-groups=admins,mods,vip
on-destroy=notify

More details in the example blacklist file that comes in the ZIP.

Download

WorldGuard requires hMod.

To get WorldGuard:
http://www.sk89q.com...cts/worldguard/

Posted Image
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

Register or log in to remove.

#2

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 16 November 2010 - 08:00 PM

I threw in my version of agdan's block lag fix. This will play nicely with WorldProtect's blacklists:

worldprotect-1.1.zip

Enable 'block-lag-fix' in the configuration.
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

#3

yottabyte
    yottabyte

    Forum/Wiki Sponsor

  • Members
  • 435 posts
  • Location: Sweden

Posted 16 November 2010 - 10:36 PM

Thanks for this, will give it a shot tomorrow!

Posted Image


#4

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 16 November 2010 - 11:45 PM

Here is an UNTESTED version of hMod, but TNT should work now:
http://www.sk89q.com... ... early2.zip
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

#5

damelon
    damelon

    Tree Puncher

  • Members
  • 22 posts

Posted 17 November 2010 - 09:51 PM

The block lag fix works well except for leaves.   If leaves do not spawn saplings then you need to keep hacking at them until they do.    It's the only way to destroy them.  Dont know why this is.  If it is the mod itself or Hey0 or the combo of the two.   Only an issue with leaves tho.

#6

Jademalo
    Jademalo

    Redstone Miner

  • Members
  • 545 posts
  • Location: England
  • Minecraft: Jademalo

Posted 17 November 2010 - 11:31 PM

I cant thank you enough for fixing block lag, I can finally play again.

Seriously, its amazing. And im guessing this is pretty much a replacement for llamacraft? because if it is fantastic, one less mod i have to wait on being updated on a patch :D
Posted Image

#7

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 18 November 2010 - 07:15 AM

Leaves should be fixed:
https://github.com/d... ... -1.1.1.zip

NOTE: PLUGIN NAME CHANGED (for legal reasons). Be sure to rename your configuration files.

And yes, this is a 100% replacement (and improvement) for llamacraft.

I added in protection (and other plugin) support for the block lag fix as well. It works much better than the other block lag fix plugin in that regard.
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

#8

damelon
    damelon

    Tree Puncher

  • Members
  • 22 posts

Posted 18 November 2010 - 03:05 PM

Thanks for the quick turnaround on that leaf fix man!

#9

ledhead900
  • Location: Australia
  • Minecraft: ledhead900

Posted 18 November 2010 - 05:23 PM

one question HOW STABLE IS THE UNRELEASED VERSION ;P/ like is it going to cripple exsisitng 125 mods.

If its not to broken I will exhange 125 for 126 and swap out llamacraft and griefalert for this :Iron: as this kinda does both in one.

eaither way mate your plugins are a godsend

#10

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 18 November 2010 - 05:40 PM

Very stable from my experience. Right now WorldGuard fails at blocking water and lava buckets, so you might have to wait until later if you want those two blocked.
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

#11

t0phux
    t0phux

    Tree Puncher

  • Members
  • 17 posts
  • Location: Austin, TX

Posted 18 November 2010 - 07:15 PM

I would love to implement this on my server, but unfortunately I'm running the stats/achievements plugin which requires patches to hey0's mod.  I'm not 100% on how to patch this manually, so I'm using the pre-patched 125 version.  Obviously, if I used this 126, it would break the stats/achievements.  If you could either provide just the standalone block lag fix, or patch your 126 for the stats plugin people, it would be very greatly appreciated!  (Or maybe someone who knows how to patch it point me in the right direction).

Thank you!
.:SuperBadass:. - SMP: superbadass.kicks-ass.org

#12

ledhead900
  • Location: Australia
  • Minecraft: ledhead900

Posted 19 November 2010 - 07:15 AM

Im good I allow water and buckets - why block them from users who really use them for good and not grief if your plugin does anything like griefalerts we should get notified who used it and if there not trusted with it simply tp to them and check it out.

being lazy and blocking everything fails for people who actually are responsible.

edit:

Just noticed if I was to use this id be using all of plugins minus the craftAPI.
I also notice  your plugin can deny placing of blocks so why cant users simply just add water and lava to the list of how it handles the block when placed. seems like a simple solution to me unless u rather spend extra time to  add a config option to enable or disable buckets when.

I don't know if mean that the plugin it self has no support for the item ID's or just you have not added ability to block buckets if its the later then my above idea is just as a decent temp solution for those who just want to stop people placing water and lava.

#13

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 19 November 2010 - 08:04 AM

The problem is that you cannot block buckets at all in any reliable or safe way from a plugin. The only possible method is currently used by GriefAlert but it can be easily bypassed and worse, it risks the stability of the server.

As for the stats issue, we will see.
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

#14

ledhead900
  • Location: Australia
  • Minecraft: ledhead900

Posted 19 November 2010 - 08:51 AM

I'm very confused by how you setup the log file I dont know how to give it a directory to save in or how to make it save in a txt file just plainly I fail to use this lol. I worked out I could name it tho

#Minecraft Properties File
#Fri Nov 19 05:38:51 EST 2010
blacklist-log-file=worldguardlog%u
classic-water=false
blacklist-log-file-limit=5242880
blacklist-log-file-count=10
disallowed-fire-spread-blocks=
block-tnt=true
block-lighter=false
block-creepers=true
disable-lava-fire=true
enforce-single-session=true
block-lag-fix=true
blacklist-log-console=false
allowed-lava-spread-blocks=
simulate-sponge=false
disable-all-fire-spread=true

But it saves it in the ROOT of my server directoy as "worldguardlog0.0" instead of "worldguardlog0.txt" and the system pic the file type up as 0.file as well (you know in win7 how it shows the filetype column that is what it shows there)

Also for some reason my blacklist is being stupid
My diamond tools have the desired deny, "block replacement upon Leftclick" but it applys the effect to the ignored group but not groups that are NOT! ingnored.

It also will sometimes tell the player its not allowed even when set to deny but it allowes them to do it anyway.  Meanwhile it wont even pick up tnt,adminum being placed or destroyed and it wont kick players.

I could explain more but I think my Config file would be better for you to see.

#Actual Data Below!
#Blocks and Carts,dangerstuff
[stilllava,water,stillwater]
on-right=deny,tell,log
ignore-groups=admins,mods,trust,vip
[bucket,fire,lava]
on-right=deny,tell,log
ignore-groups=admins,mods,trust,vip
[tnt,sapling,adminium]
on-right=deny,notify,kick
ignore-groups=admins,mods,trust,vip
[tnt,sapling,adminium]
on-left=deny,tell
ignore-groups=admins,mods,trust,vip
[adminium,obsidian,signblock]
on-destroy=tell,notify,log
ignore-groups=admins,mods,vip
[poweredminecart,minecart]
on-right=deny,tell,log
on-destroy=notify,log
ignore-groups=admins,mods,vip,trust
[rails]
on-right=log
on-destroy=notify,log
ignore-groups=admins,mods
[lever,redstonedust
on-destroy=notify,log
ignore-groups=admins,mods
#
#
#Diamond Item Control
[diamondore]
on-left=deny,tell,log
on-destroy=deny,tell
ignore-groups=admins,mods,vip,trust
[diamondsword,diamondshovel,diamondpickaxe]
on-left=deny,tell,log
ignore-groups=admins,mods,vip,trust
[diamondaxe,diamondhoe]
on-left=deny,tell,log
ignore-groups=admins,mods,vip,trust 

Also whats with N in the examples, the documentation was ok but left some things out probably is what lead to this post

#15

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 19 November 2010 - 09:36 PM

You put the directory like logs\worldguardlog.txt

The reason it didn't have .txt was because you didn't have .txt in the filename.

Right now I am rewriting a fair amount of the blacklist to be better, although it's odd that you are having your problems. Maybe the new version will work better.
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

#16

ledhead900
  • Location: Australia
  • Minecraft: ledhead900

Posted 19 November 2010 - 09:43 PM

we ended up fixing the blacklist to be pretty much perfect but for some reason its Diamond tools slip past the Ignore groups list and admins and mods cant use the diamond tools the blocks bounce back to the deny option. I also made a post on your Hey0 forums topic with some ideas and issues we are having working things out.


Here is our updated blacklist, It still has some issues but overall its much cleaner to work with. These issues being as I said it ignores the Ingnored option for tools and these tools are not denyed on group that are not ignored!. Other then this I think its working as intended.

#
# This is the blacklist for WorldGuard. Comments start with # and they
# are ignored so you can put your own notes.
#
# Format:
# [item1,item2,itemN]
# option1=options
# event1=action1,action2,actionN
# eventN=action1,action2,actionN
# Events/Options:
# - ignore-groups (comma-delimited list of groups to not affect)
# - on-destroy (when a block of this type is destroyed)
# - on-left (when this item is held and the player is left clicking)
# - on-right (when this item is held and the player is right clicking)
#
# Actions:
# - deny (deny completely)
# - notify (notify admins)
# - log (log to console/file)
# - kick (kick player)
# - tell (tell a player that that's not allowed)
#
# Some examples follow.
#
#[lavabucket]
#on-left=deny,log,kick
#on-right=deny,tell
#[coalore,goldore,ironore]
#on-destroy=notify,deny,log
#:iapprove:
#on-right=deny,tell,log
#
#Actual Data Below!
#Blocks and Carts,dangerstuff
[stilllava,water,stillwater]
on-right=deny,tell,log
ignore-groups=admins,mods,trust,vip
[bucket,fire,lava]
on-right=deny,tell,log
ignore-groups=admins,mods,trust,vip
[sapling]
on-right=deny,notify,tell
ignore-groups=admins,mods,trust,vip
:opblock:
on-left=deny,notify
on-right=deny,log,notify,kick
ignore-groups=admins,mods
[obsidian,signblock]
on-destroy=notify,log
ignore-groups=admins,mods,vip
[adminium]
on-left=deny,notify
on-right=deny,notify,log,kick
on-destroy=deny,notify,log,kick
ignore-groups=admins,mods
[poweredminecart,minecart,chestminecart]
on-right=deny,tell,log
on-destroy=notify,log
ignore-groups=admins,mods,vip,trust
[rails]
on-destroy=notify,log
ignore-groups=admins,mods
[lever,redstonedust]
on-destroy=notify,log
ignore-groups=admins,mods
#
#
#Diamond Item Control
ignore-groups=admins,mods,vip,trust
[diamondsword,diamondshovel,diamondpickaxe]
on-left=tell,log,deny
ignore-groups=admins,mods,vip,trust
[diamondaxe,diamondhoe]
on-left=tell,log,deny
ignore-groups=admins,mods,vip,trust
#
#
#UnMineAbles
[diamondore,leaves,reed,ice,netherstone,slowsand,lightstone,portal,crops,goldrecord,milkbucket]
on-right=notify,log
ignore-groups=admins,mods 

We also made one with Item Id's instead of names as we did not know if you could use item Id's as well - the first version of this blacklist was a rushed one by me just to get it up there and testing. But as I have said the one issue we notice with the blacklist now is how it handles the tools ignore groups.

most of our confusion with the log file is simply the % options and there usage we would prefer to make use of the cycle and unique but as for the temp %t and couple others we have NO idea what they do in relation to how it would handle the log file.

Going by your post tho we can now fix the log file to actually work and store data properly and im guessing u just any of the % to end of its name like logs/log%u.txt. when I first created the log I gave it the drive letter as well like this, C:\DirectoryA\DirectoryB\logs\log%u.txt - < this did not work out so well as it ended up calling the log file C:\DirectoryA\DirectoryB\logs\log%u.txt.

edit:
Just tried the log file setting exctly as u posted it and its still saving in a format as .0 with or with out the %u before the .txt makes no difference with it it saves as wordguardlog0.0, I realoded the mod via console but It might need a full restart and a clear of the LCK and old log before it works maybe ...., you might wish to look into it tho.

#17

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 19 November 2010 - 10:54 PM

I am going to write my own log rotation rather than use Java's.

Also, to block TNT, use on-destroy instead of on-left (on-left considers the block that you are holding).
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image

#18

ziggo0
    ziggo0

    Forum/Wiki Sponsor

  • Members
  • 388 posts
  • Location: Indiana

Posted 19 November 2010 - 11:15 PM

I want to use this, as block lag is fucking ridiculous right now - but between the hey0 beta and this - my server's memory was maxed out...where as before it never was. Any issues with memory leaks?
sigh...

#19

ledhead900
  • Location: Australia
  • Minecraft: ledhead900

Posted 20 November 2010 - 12:59 AM

Nope and not that I have done any testing but I gave it 2.5gig and its trudged along just as it always has running on java 64bit not 32java and using all those lovely java command lines for opimization.

sk89q said:

I am going to write my own log rotation rather than use Java's.

Also, to block TNT, use on-destroy instead of on-left (on-left considers the block that you are holding).
I think your avoiding a lot of my inquires :D

#20

sk89q
    sk89q

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 474 posts

Posted 20 November 2010 - 06:26 AM

Version 1.2

Highlights:
    [*:1jnz08ok]/stopfire and /allowfire disable and enable fire spreading globally.
    [*:1jnz08ok]I significantly improved the blacklist! More events to catch (item drop, block 'use' for chests, etc.)! Database support! New file logger (note: you will have to change your configuration) that can even create a log per player!
    [*:1jnz08ok]LeafDropper and other similar plugins are now supported by the block lag fix.

More features are listed below:

    [*:1jnz08ok]/stopfire and /allowfire disable and enable fire spreading globally.
    [*:1jnz08ok]Block lag fix slightly improved in accuracy for item drops.
    [*:1jnz08ok]Sponge updated to remove water when the sponge block is set. Sponge radius can now be controlled using the 'sponge-radius' parameter and the default is now set to simulate Classic.
    [*:1jnz08ok]Updated for a newer build of "b126," meaning that lava spread control now works well!
    [*:1jnz08ok]A new summary of the status of some core protections is now printed on start. Disable this with 'summary-on-start'.
    [*:1jnz08ok]Blacklist system has been overhauled. Check README.txt for changed configuration settings!
    [*:1jnz08ok]The blacklist's method of preventing notification repeats is now better, instead waiting 3 seconds before notifying again (before it didn't notify again at all unless the user started using another blocked action).
    [*:1jnz08ok]To give users the ability to receive notifications, the command to give permission to has been changed to /worldguardnotify, although the old one (that was never mentioned anywhere) still works.
    [*:1jnz08ok]Water and lava buckets are now psuedo-blocked using an unreliable method that risks the stability of your server (no other plugin does it better though). Use it as your own risk.
    [*:1jnz08ok]Added on item drop and on item use (i.e. chest) events.
    [*:1jnz08ok]Chests, signs, and furnaces can now be blocked better with the blacklist system.
    [*:1jnz08ok]The event names in the blacklist configuration have changed but the old event names should still work. The new names should make "more sense."
    [*:1jnz08ok]A new "ban" action has been added to the blacklist.
    [*:1jnz08ok]Action messages have been improved, now longer saying "destroyed" for everything.
    [*:1jnz08ok]Logging to file has been completely changed, allowing you to use the date and time and the player's username in the log filename. It no longer rotates log files based on size, however.
    [*:1jnz08ok]Logging to database is now supported.
    [*:1jnz08ok]Tools can now be destroyed on drop to alleviate the durability cheat. You can do this with either with the blacklist or with the 'item-drop-blacklist' configuration option. The configuration option prints more friendly messages than the 'tell' action of blacklists.

A NEW build of the unreleased b126 version of hMod is required. If you downloaded a previous version from me, YOU MUST UPGRADE. Get it here: hmod-b126-early3.zip

Posted Image WorldGuard 1.2
(Minimum hMod v126+)

Links: Configuration ยท GitHub

Posted Image
I'm the author of WorldEdit, WorldGuard, WarmRoast, a custom MC launcher platform, and a few other things.
I've also been running a server since MC alpha:
Posted Image