Jump to content

New method of grief protection, stops even OP'd fakeplayers from breaking blocks


Recommended Posts

Posted

The latest builds of ModDamage have the ability to catch and cancel block breaks/placement by FakePlayer-enabled mods. I've tested it with Buildcraft, Computercraft, and Redpower myself.

In essence it's a powerful dynamic blacklist for these mods...

Here's an example of the script's usage. It keeps redpower/buildcraft/computercraft from breaking machine blocks, it keeps anyone/anything from placing fillers, mining turtles, or block cutter upgrades with a custom error.

It seems pretty powerful to me; you can limit to specific regions, specific worlds, based on user permissions, time of the day, and you can reload the config at any time for a very dynamic white/blacklist.

BreakBlock:

    - 'if player.named.[RedPower] OR player.named.[buildcraft] OR player.named.[ComputerCraft]':

        - 'if block.type.X250 and block_data = 0':

            - 'message.console': '%{player_name} attempted to break a machine block.'

PlaceBlock:

    - 'if block.type.X155':

        - 'message.player': 'Fillers are banned.'

        - 'cancel'

    - 'if block.type.X216 and block_data = 1':

        - 'command.console': 'say %{player_name} attempted to place a mining turtle at %{player_x}, %{player_y}, %{player_z}.'

        - 'message.player': 'Mining turtles are banned.'

        - 'cancel'

    - 'if block.type.X254 and block_data = 3':

        - 'message.player': 'Block cutters are disabled due to griefing issues.'

        - 'cancel'

Posted

You should make a full tutorial post on this, I can see this getting very popular

ModDamage is very complicated; I'll post a few examples but it's powerful enough do do just about ANYTHING with; I can make quarries return dirt for diamond ore, for example, or make smooth stone simply vanish instead of being piped in as cobblestone.

    - 'if player.named.[buildCraft] or player.named.[RedPower] or player.named.[industrialCraft] or player.named.[ComputerCraft]':



        - 'if block.type.X248 OR block.type.X249 OR block.type.X140 OR block.type.X250 or block.type.X181 or block.type.CHEST or block.type.X136 or bloc$

            - 'cancel'

        - 'if block.type.STONE':

            - 'cancel'

            - 'set.block_typeid': '0'

The above keeps tekkit mods from breaking those block types, and makes quarries return no cobblestone at all...

Posted

I'm not sure what you mean by the first part, and you can use WG regiosn to determine ModDamage rules, sure.

*edit*

ModDamage dev just added support for Towny regions. Now we can block quarries/blockbreakers from destroying machines only in non-wilderness areas.

    - 'if player.named.[buildCraft] or player.named.[RedPower] or player.named.[industrialCraft] or player.named.[ComputerCraft]':

        - 'if !sender.inregion.wilderness':

            - 'if block.type.X248 OR block.type.X249 OR block.type.X140 OR block.type.X250 or block.type.X181 or block.type.CHEST or block.type.X136 or bloc$

                - 'cancel'

            - 'if block.type.STONE':

                - 'cancel'

                - 'set.block_typeid': '0'

Posted

I personally will not be installing this mod to my server but i can see the good side to it all.

The Tekkit plugin i am looking for is one that can link fake players such as [buildcraft] to the player that placed the machine so that way they have the exact same permissions as the real player.

PLUGINS DEVS GET ON IT :P

Posted

I personally will not be installing this mod to my server but i can see the good side to it all.

The Tekkit plugin i am looking for is one that can link fake players such as [buildcraft] to the player that placed the machine so that way they have the exact same permissions as the real player.

PLUGINS DEVS GET ON IT :P

I think you'll be waiting a while for that plugin. The mods themselves will have to be re-written to support that, more than likely...

Posted

I think you'll be waiting a while for that plugin. The mods themselves will have to be re-written to support that, more than likely...

yeah sadly...

i can dream..

  • 3 months later...
Posted

Is there anyway to use this to log who's explosive damaged a certain block? For instance, lets say player1 nuked an area. No one knows it was player1. Can this be used to check any of the blocks that the explosion destroyed, to find out who placed the initial explosive?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...