gentili / RailDriver

Bukkit Plugin for automated mining and railroad construction machine
4 stars 2 forks source link

Respecting worldguard and towny regions #5

Closed raycrash closed 11 years ago

raycrash commented 12 years ago

I would love to use this plugin but as of now people could drill into the regions of other peoples and that's an absolute nono.

fyrenth commented 12 years ago

WorldEdit test successful, not having rights in an area to build result in a "You do not have permission" message like if you tried to break a block, and the driver shuts down.

Will run test with Towny as well to confirm the Driver shutdown

raycrash commented 12 years ago

Good to hear and I'm sorry to be a bugger but could you implement support griefprevention aswell ? http://dev.bukkit.org/server-mods/grief-prevention/

Public Griefprevention-api http://dev.bukkit.org/server-mods/grief-prevention/pages/public-api-documentation/

fyrenth commented 12 years ago

I could, but it already triggers it if its installed?

GriefProtection catches the onBlockBreak event and cancels it if the player in context has no right to break the block, the same way the rest of the bukkit system does, and that is the event I use to check for break rights.

If the driver enters a users claim, (and it has right to do the damage) it will fall under the same protect as that claim, when it leaves its normal. Thats the only other impact I can foresee.

Unless you're wanting me to define/manage the claims within RailDriver?

gentili commented 11 years ago

Resolved in 0.4