Road Protector
Road Protector
Simple and effective plugin designed to protect area from destruction. The main difference from other similar plugins is the lack of saving information about protected area in databases or in file; certain modularity, which allows combine protected areas in any forms, so you can easy protect even a winding road; maintaining the possibility of destroying blocks under the protected territory and building over it.
How to use it?
Just place the "protector" block (default - bedrock) and you will create a create a "force field" of certain size (radius, depth, height are configurable) around that block. When you place other block, you increasing protected are. For convenience provided special wand-mode in which you can easily bury the protector (under 1 block) by right clicking with the wand (default - clay) on the surface of area, that you need to protect. If necessary to build something in protected zone, you can use the edit mode provided by plugin, or switch to creative mode.
Small video tutorial
Speedways
If you created a road and protect it using RoadProtector you can enable fast-sprinting at the roads. Command /rp speedway will toggle the speedway mode. First you must define road pavement blocks: it's a top block of your roads. For example if you using gravel and slabs to build roads you must define blocks 13,43,44 as a "speed blocks" (use command /rp speedblock 13,43,44). Than you need to define sprinting speed at your roads: /rp speed <speed>. Default speed value is set to 0 and it equal to effect of speed-potion level 1. Player with permission roadprotector.speedway now can sprint very fast on the road. Walking speed will not modified, player will walk with normal speed.
How to remove the protection
Since the plugin is designed for server administration, then you can use the creative-mode or any editor for example Voxels Sniper and remove the block tread. In addition, if you define as a "protector" any other block, for example a sponge, this block can be destroyed in the edit mode in the usual way.
Permissions
- roadprotector.edit — allow to use RP-wand and construct at protected area (player must switch to edit mode)
- roadprotector.config — allows to use configuration commands
- roadprotector.speedway — allows to fast-sprint at speedways
- roadprotector.walk — allows to use walk-mode (auto protect areas while walking)
Commands
- /rp help
- /rp edit — enable / disable the edit mode.
- /rp wand — enable / disable the "protector wand"
- /rp walk — enable / disable the "walk mode"
- /rp unpr [radius] — remove all protector-blocks around area defined by radius (if radius is skipped, will remove all protector affected to player location)
- /rp crmode — enable/disable of using creative mode as edit mode
- /rp reload — reload configuration from the config.yml
- /rp cfg — display current configuration
Configuration commands
- /rp w [radius] — set the "radius", which determines the horizontal dimensions of the protective zone.
- /rp h [height] — height of the protected area
- /rp d [depth] — the depth of the protected area
- /rp swlist — set the "switch" blocks to protect (doors, buttons, levers, chests, etc...). Default list: 54,61,62,64,69,77,96,84,107,23. If list is empty only build/break protection will be active.
- /rp explace — set this list of block allowed to place (default: 60,59)
- /rp exbreak — set this list of block allowed to break (default: 59,31)
- /rp prtmsg <message text> — set warning message when building and breaking blocks. If empty, will use default message.
- /rp swmsg <message text> — set warning message when try to click blocks from /rp swlist. If empty, message will not displayed.
- /rp prblock [block id] — set the protector-block (default is 7 - bedrock)
- /rp unprblock [block id] — set the unprotector-block (default is 3 - dirt)
- /rp setwand — change the "protector wand" (default is 337 - clay)
- /rp walkroad — toggle walkroad mode. If enabled walk mode will be activated only at roads (speedways)
- /rp effect — toggle effects/message. If effects on, you will see effect above the installed protector block instead of message in chat
- /rp efftype — set effect type: 0 - smoke, 1 - flames, 2 - ender signal, 3 - sound effect (click)
- /rp explosion — toggle explosion protection mode
- /rp snowblower — toggle snowblower (protection from snowforming)
- /rp speedway — toggle speedway mode
- /rp speed <speed> — define speedway sprinting speed
- /rp speedblock <id1,id2,...,idN> — define pavement block at speedways
- /rp lava — toggle lava-flow protection mode
- /rp water — toggle water-flow protection mode
Changes in v0.1.3
- Snowblower: Now you can protect your roads from the snow-forming! (Don't forget to define pavement blocks for your road)
@fromgate I have checked.. Ignore protect. in creative - disabled edit mode - disabled wand mode - disabled
I started out with a bukit made, Creative. I then used Myworlds /worlds create to make..
"L-space" Superflat, Survival (used as a central portal room to the 3 other worlds) "SuperFlat", A Superflat Creative (where they do most of their mucking about) "Survival" Bog standard survival (for when playing with lego gets a bit boring)
In that order, hence my confusion. I don't get why Superflat struggles.
Happy to PM you a FTP Username/Pwd if you wanna have a poke about. Does seem a tad weird tho eh?
@omgitsmit
Thank you :)))
@MrTheKod
Hello, Is your fourth world located in the same server where first free world located? Or it's a separated server? Can you show me your config.yml file?
I'v got a weird problem. I have 4 worlds going in "My Worlds".
Plugin works a beauty in 3 but in one (A creative Superflat world). No protection. I place blocks with the wand fine. I also have the crmode toggled.
I run this server for my lil 10yrold cuz and his schoolmates. Wouldn't ya know it.. they like blowing the bejeezuz out of everything! So sort of need to protect the inter world portals because I'm getting bored of rebuilding them.
Any Ideas, I'm pretty sure haven't missed anything obvious. I had no problems on the regular Creative/Survival worlds or Superflat survival (used as a sort of limbo between worlds).
Cheers in advance
MrTheKod
@Sanzennin
Nice addition to an already wonderful plugin! :)
@fromgate
Okey, thats good. :)
@Sanzennin
Protect where you walk? Nice idea! I'll add it :)
Speed bonus grants for only when: 1. Area is protected with road protector 2. Player walks on the "sped blocks" (/rp speedblock <id1,id2,...,idN>) 3. Player is sprinting
For example, at our server we made roads with slabs (and using blocks 43,44 as a speed blocks). Player will grant speed bonus at any area protected by RB, when he sprinting on the slabs.
But if road made from other material player will not gain speed bonus even this place is protected.
Here is a piece of code:
Please do use it to add automated road protecting as the admin walks.
Hitting with wand is cool and all, but it leaves gaps that are hard to spot and gets old quick.
Also, a quick question: Does the speedbonus only affect the roads, or ALL the similar blocks? Since I'd really hate start making roads out of sponge.
@Exote
Thank you :)
Love the plugin, but had to decompile it to find the permission for the road speed boost. You might want to list it in your permission section :P
It was: roadprotector.speedway
v.0.0.9/2
@ShdowFury12
"wand mode" - allows you to place bedrocks using the clay item. Command /rp wand "edit mode" - if enabled allows you to build/destroy inside protected area. /rp edit "crmode" - if enabled allows you build/destroy inside protected area (even when edit mode is off) if you in creative mode. When you change your game mode to survival you will not able to build inside protected area (if edit mode is off, of cause ))
So. You need to: switch off edit and crmode and check can you break/place blocks in protected area.
If yes you need to check depth, height, radius parameter. You will not set it to huge values.
@fromgate
wat the heck. in this plugin i place bedrock and no matter with edit mode on or off the bedrock those nothing. i need help.
@flyingtacoz It's not possible because additional scan for obsidian block will reduce performance. But you can fast place a protector block using line tool of VoxelSniper... Mmmmay be I need to add a line tool into Road Protector....
Nice! Can you please please please make a configurable option to change how long the protected area is , say you have a 4 block wide, longggg straight road, placing 1 obsidian at the edge or something protects the entire thing! Please let me know if you can do this it would be awesome!
v.0.0.8/2
New version v0.0.8:
@daveicaria
Most of this command required to fine-tuning the plugin configuration :) But after plugin installation you can use it without any commands - just place a bedrock in area you need to protect.
And you can use only one command /rp wand to enable the "wand mode", which allows you install protectors by right-clicking blocks with a clay item.
If you need to do some edit in protected area you must use command /rp edit (toggles edit mode)
And if you edited the config.yml file you can reload configuration by /rp reload command.