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
No I have to thank you
so Thank you
@TheMasturMinecrafter
Thank you. I'll fix it next version.
Hi since yesterday I get this eror in my server screen from road protector, can someone help me?
10:24:41 [SEVERE] Could not pass event PlayerInteractEvent to RoadProtector org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven t(CraftEventFactory.java:177) at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:1 14) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at fromgate.roadprotector.FGUtilCore.isIdInList(FGUtilCore.java:263) at fromgate.roadprotector.RPListener.onPlayerInteract(RPListener.java:89 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:330) ... 16 more
@GregioKnight
Hello, RoadProtector tested with 1.3.1 it works fine.
About roads. If you going to use speed-modifier on the roads you need to use speed-blocks to build a roads. But if you don't need to allow players to run fast - you can use any block to create a road.
And you can create a "main" road built with a speed-blocks and ordinary road created with any other blocks. Player will move fast on the main roads, but will not gain additional speed on ordinary road.
@fromgate Hello, we use your plugin in our server, works wonders.
Just wondering if/when a 1.3.1. update will be released or if we should change plugins.
Also, a question about roads, will it make all blocks of that type speeders?
For example, I choose smooth stone, will all smooth stone have speeding properties?
@Rickious
Hmm... check the protected area size. What is your radius, height, depth values?
Hi, im testing and creating my bukkit server on my home pc. All seems fine, Loved the idea of your plugin. Setwand worked, its placing the bedrock fine, but nothing is protected... I have deop myself and come off creative, turned /rp edit off and i can still destroy blocks.
Any idea what I have missed?
@CiroGC Hello, Not sure that I understood you right.
All areas in Road Protector has a predefined dimensions (specified in config and ​​equal for all regions). It not possible to create a area 10x10 and other area 30x30. But you can combine it from some areas :)
This plugin is created for protection purposes not for private. So there's no way to define area where only one user can build, but other - not. I think best way of use RP is protecting areas where no one (except of server operators) will not build anything. You can use any other private plugin (like WorldGuard, Towny...) to create a private ares.
Hola, lo primero, perdón por hablar español, pero es que no sé inglés D:
Bueno, increÃble plugin, pero tengo una pregunta: ¿Cómo puedo hacer que un usuario pueda editar una región? (Por ejemplo, su casa de 20x20, pero nada más)
v0.1.0 features video
I was literally just looking to update my version of craftbukkit when I saw this. Thank you. I was wondering how on earth I was going to protect all the roads on my server. THANK YOU!!!
@fromgate
Thank you very much.
@rmh4209 Hello, New version uploaded. API included. But methods described in API available since this version, so your users must update RoadProtector too.
http://dev.bukkit.org/server-mods/road-protector/pages/main/api/
@fromgate
I would do something similar to that if it weren't for the fact that my external plugin support is modular. If someone's has Towny on the server, but doesn't want my plugin to interface with Towny, it won't. If they do, it will. Same goes for Factions, WorldGuard, Regios, etc.
So essentially, I need to check each plugin that they have enabled to use to see if they can build or, in the case of Towny or Factions, are in claimed land.
@rmh4209
Ok. I'll do it. But I think there's a better solution then hook every plugin: http://forums.bukkit.org/threads/solved-block-settype-material-and-blockplaceevent.75791/ May be you can find it more useful? I'm using it at MonsterFix
@fromgate
What I'd need is a method or two to check and see if a player is allowed to build at their location.
@rmh4209
Hello, Which features you need? I can try to implement required API methods.
Is there an API I can hook into? I'd like to add support in MobBountyReloaded.
Cheers Bud!
Now I don't have to constantly rebuild portals the lil buggers keep blowing up. You have saved me much hassle! Again, Thanks.
@MrTheKod
Hello MrTheKod,
Here is new version. It will help you :)
v.0.0.9/3
http://dev.bukkit.org/server-mods/road-protector/files/14-road-protector-v0-0-9-3/