FabioZumbi12 / RedProtect

RedProtect Easy and Light Weight Antigrief plugin.
https://www.spigotmc.org/resources/redprotect-anti-grief-server-protection-region-management-1-7-1-15.15841/
GNU General Public License v3.0
90 stars 78 forks source link

[Suggestion] Server protection - deny-build-in-worlds #608

Closed Krosta8 closed 4 years ago

Krosta8 commented 4 years ago

Hello,

I have a modded Minecraft server with IndustrialCraft. I would love the option to set "blacklist" of items, that can't be placed in specific world. Example:

    # Deny build of specific block in specific world.
    deny-build-in-worlds {
        world=[
            ic2:te:80 (example, Advanced Miner)
        ]
        DIM-1=[
            ic2:te:12 (example, Chunk Loader)
        ]
    }

I think, that this is described enough :D Would be also nice, to be able to set custom message for each blocked item. Example:

    # Deny build of specific block in specific world.
    deny-build-in-worlds {
        world=[
            ic2:te:80, "&cYou cant build this here, you can mine only in Mineworld!"
        ]
        DIM-1=[
            ic2:te:12, "&cChunk Loader is only possible to be build in Mineworld to let you use Advanced Miner without being in Mineworld."
        ]
    }
FabioZumbi12 commented 4 years ago

You already can do this on globalflags.conf:

        # Control what items the player can use.
        deny-item-usage {
            allow-on-claimed-rps=true
            allow-on-wilderness=false
            # The item names is like you see holding "F3" and pressing "H".
            items=[]
        }

Use the new command /rp debug-item with the item in your hand to get the material name for use on config ( the same for issue #610 )

Krosta8 commented 4 years ago

Yeah, sorry, didn't get this config part correctly. I tried to use it, but unfortunately it is impossible to use with a bunch of modded items. I tried to use /rp debug-item to know, how correctly use it for (example) Generator from IndustrialCraft2, the name is ic2:te:3, via debug-item command it is IC2_TE, which means, that every machine from IC2 is not allowed. Can you make it possible to use "the full address to the block"? Not justIC2_TE but also with 3? IC2_TE:3?

And like I wrote on your Discord server, the new command /rp debug-item doesn't do anything, if you don't have permission. (I mean like "You don't have permission to do this")

Just find out, that if you don't have flag block-transform set to true in claim, you can't place anything from mods.

FabioZumbi12 commented 4 years ago

Well, redprotect cant know the item material name if its not passed from modded to Mohist... In this case, its not possible

Krosta8 commented 4 years ago

Okay, thanks, I will try to communicate this with Mohist developers.