HexRestrict
Overview
HexRestrict is a GriefPrevention add-on. It restricts block placements/item use inside or outside of GP Claims.
Config Sections:
PreventSafariNetPlayerGrief
PreventSafariNetPlayerGrief: true
Enables/Disables the check of DisableSafariNetCapture list.
DisableSafariNetCapture
List of entities that the SafariNet cannot capture.
SafariBlockedWorlds
List of worlds where the safari net cannot capture in.
ItemUseRestrictedOutsideClaims
List of items that are banned outside a claim that they do not have permission.
ProtectedWorlds
Worlds where ItemUseRestrictedOutsideClaims is checked.
BlocksRestrictedOutsideClaims
This is a list of blocks that can ONLY be placed inside a claim that you have trust build permissions in.
Example: Quarry, TNT, Industrial TNT, etc.
ItemUseRestrictedInsideOtherClaims
NEW! this now blocks wrench grief inside protected claims!! (requires mcpc+ #197 or greater).
This is a list of items that cannot be used inside other peoples claims (where you dont have trust build perms)
Example:
- Repower2 slabs, covers, etc.., yes redpower2 microblocks are a UseItem event, and not a block place event. So this would block the "placement" of microblocks in a claim where you dont have build permissions.
Requirements
This plugin requires Grief Prevention, as it is used to define claimed regions and this plugin is based upon those permissions. (I am not opposed to adding compatibility with other claim type plugins so long as they have an developer API)
Tekkit Compatability (MCPC+)
This is compatible with standard bukkit, and even varriants of MCPC+, just make sure you set simulate-block-place-event-default settings
I've specifically created this mod for Tekkit to stop grief from various new additions that Tekkit adds.
Current Config
PreventSafariNetPlayerGrief: true BlocksRestrictedOutsideClaims: - 239:*:Industrial TNT - 5205:*:Minium Stone ItemUseRestrictedInsideOtherClaims: - 5397:Wrench - 8858:PrototypeOmni Wrench - 5766:Quartz Wrench - 5685:Safari Net - 5683:Safari Net - 368:Ender Pearl - 359:Shears - 6037:Power Gauntlet - 5568:Flag - 5205:*:Minium Stone - 8887:*:Crescent - 325:*:Bucket - 326:*:Bucket - 327:*:Bucket - 335:*:Bucket - 5359:*:Bucket - 5360:*:Bucket - 5658:*:Bucket - 5664:*:Bucket - 5672:*:Bucket - 5673:*:Bucket - 5687:*:Bucket - 5689:*:Bucket - 5701:*:Bucket - 8884:*:Bucket - 4361:5:Wireless BannedItemUse: - 19263:Wrath Igniter ItemUseRestrictedOutsideClaims: - 5205:Minium Stone - 5759:Entropy Accelerator - 5767:Vibration Catalyst - 8808:Cart DisableSafariNetCapture: - CraftPlayer - CraftGhast - CraftPigZombie - CraftBlaze - CraftMagmaCube - CraftEnderman - CraftVillager ProtectedWorlds: - world - shopworld SafariBlockedWorlds: - world_nether - world_the_end
Permission Nodes
name: HexRestrict main: me.HexCraft.HexRestrict version: 0.0.3 commands: hexreload: description: Reload HexRestrict. permissions: hexcraft.hexrestrict.*: description: Gives access to all HexRestrict commands children: hexcraft.hexrestrict.reload: true hexcraft.hexrestrict.restrictedplacement: true hexcraft.hexrestrict.reload: description: Reloads HexRestrict Config default: false hexcraft.hexrestrict.restrictedplacement: description: Allows HexRestrict Restricted Placement default: false
Edit to how you see fit, Ill add more to the list as people report blocks that bypass protection.
stupid Grief Prevention.......create own api.
@Valconeye
It's fine, thank you very much! I just upgraded to Java 1.7, everything is working fine!
@zxcdserf
Ah, I'm using Java 1.7 for my compiling. Let me see if i can get a Java 1.6 compiled version for you.
@Valconeye
Here's the latest I have: http://pastebin.com/TsY7WEFs
The server is running on Debian 64 bit with Java 1.6
Good idea, ill throw a messages.config into the next release.
The reload command requires the permission node hexcraft.* or hexcraft.hexreload. Which i will be changing at a later date to hexcraft.hexrestrict.reload (more plugins planned with hexcraft name)
Hi, the new version seems to work fine but the /hexreload command doesnt seem to work.
If you find the time somewhen could you make the messages translateable?
New version with new config format (see file changes).
@zxcdserf
Try the latest version if you could please.
@Valconeye
[INFO] This server is running CraftBukkit version git-MCPC-Plus-jenkins -MCPC-Plus-199 (MC: 1.4.7) (Implementing API version 1.4.7-R1.1-SNAPSHOT)
and I believe Version 7.6.2 for GriefPrevention.
One more question, does this plugin stop Portal Gun grief at all?
Edit 2: Here's the full startup log..http://pastebin.com/L9GpxvUV
@zxcdserf
What version of MCPC and GriefPrevention are you running?
Hi Valconeye,
I am experiencing problems with HexEdit on my MCPC server for Mindcrack. http://pastebin.com/iPS840CP
GriefPrevention is loaded correctly with no errors.
Thanks for the report, ill test them out see what i can do.
Next version i've been working on includes the gp config like: - 750:*:All Microblocks (for blocks only, items don't have a meta data ID).
It also blocks item use when used on air inside claims, instead of just on a block (example the ender pearl teleport).
If all goes well in testing, I should be able to release it late tonight.
Hi while testing i found 3 blocks that you still can use the wrench on:
- Redstone-Engine
- Stirling-Engine
- Combustion-Engine
Everything else seems to work fine
I am working to make the config just like the griefprevention config, however as of now - 750 does the same as - 750:*:All.
The latest mcpc+ fixes microblocks without this plugin, however there can be other uses to block certain item uses so ill keep supporting it. (example block vanilla item use in claims)
Currently this does not affect quarries from destroying any blocks (just the placement of said quarries), MCPC+ has the fakeplayer [Buildcraft] for that. Even though I have yet to figure that out. Personally, i'd would love to implement that kind of functionality, it is something I am looking into. You can also add the quarry marker to the config.
Another option I could implement is checking the quarry boundary, and if there is a claim inside that boundary: deny placement of the quarry (and or markers). This however requires a lot of location checks (with makers, 64*64 total checks). It probably would have huge performance issues, and isn't something im planning at this time.
Hi, does the config listing already work like in griefprevention?
E.g.
- 750:*:All Microblocks
- 210:1:Whatever turtle this is
If not may i suggest to implement it that way to fit with GP config itself?
As i have no idea of the bukkit api or java, does this prevent quarrys placed outside my claim to destroy blocks inside my claim? (Sorry if this is a stupid question but i didnĀ“t really understand what the mcpc+ author meant by the blockbreak event that was implemented. I think nobody without knowledge on the bukkit/forge api knows.)
Thank you for this plugin. I will follow its development and definitly use it on my server.
Uploaded first release!
Currently in the config TNT (46) is only allowed to be placed inside your claim. Change it how ever you want, that's the beauty of the config.
All Tekkit Lite Redpower Microblocks (750) are working correctly with claim zones. Change it how you want, add more to the list too if you find any.
Where's the download. I having a issue with people being able to place blocks on lamps :/