SilkSpawners

SilkSpawners

3M Downloads

[Feature-Request] Placing/Breaking World Blacklist

Tomi010817 opened this issue ยท 2 comments

commented

Feature Request

Feature Description

A placing and breaking world blacklist options so you can disable these actions on certain worlds of specific spawner mobtypes. This option would not break any user data, and it would be pretty useful for deciding which world you want to disable the placing or breaking of specific spawners mobtypes. There are two examples at the end of this post explaining how these two options would look.

Motivation Behind Feature

The motivation behind this feature, is mainly because I wanted to disable the placing of skeleton spawners on the nether world.
But I've been thinking about it, and I concluded that this feature would be very useful for a lot of people who uses this plugin, since it would allow us to decide if we want to disable or not, the placing and breaking of specific spawners mobtypes on certain worlds.

/version output?

This server is running CraftBukkit version git-PaperSpigot-"4c7641d" (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)

SilkSpawners version

SilkSpawners v7.0.0

Please provide any additional information below.

How would these new options look?


Example 1:

  Skeleton:
    enable: true
    enableCraftingSpawner: true
    enableSpawnEggOverride: true
    displayName: Esqueletos
    placingWorldBlacklist: []
    breakingWorldBlacklist: []

On this example, you can see that these two new options are called "placingWorldBlacklist" and "breakingWorldBlacklist", and the input "[]" means that there aren't any worlds on those blacklists, so the Skeleton spawner will be able to be placed on any world. This would be the default value for those two options on every spawner, so, that way, it won't conflict with players current setups when implementing this feature.


Example 2:

  Skeleton:
    enable: true
    enableCraftingSpawner: true
    enableSpawnEggOverride: true
    displayName: Esqueletos
    placingWorldBlacklist:
      - ExampleWorld123
      - world_nether
    breakingWorldBlacklist:
      - ExampleWorld123

So this time, the players won't be able to neither place or break Skeleton spawners when inside the world "ExampleWorld123", and they won't be able to place Skeleton spawners inside the world "world_nether" yet they will be able to break them in case some spawner is found placed.


PD: A permission to be able to break and place on blacklisted worlds (for staff) would be very sweet.

commented

Thanks for filling in the issue template, appreciated!

However, such a feature is already backed in the permissions plugin as all support mutliworlds. You can just deny placing, breaking or changing for a specific user or group in a specific world. See e.g., https://luckperms.net/wiki/Context

commented

No problem, thank you too for answering!

Oh and yeah, I totally forgot about that way of disabling it. Now everything work as I wanted.