GeorgH93 / Minepacks

Free and reliable backpack plugin for Bukkit/Spigot/Paper
https://www.spigotmc.org/resources/19286/
GNU General Public License v3.0
170 stars 75 forks source link

World filter is not working #288

Closed emerysteele closed 7 months ago

emerysteele commented 10 months ago

WorldSettings:
  # Options: blacklist (all worlds listed in FilteredWorlds will be blocked), whitelist (all worlds listed in FilteredWorlds will be allowed)
  FilterType: "whitelist"
  # All worlds listed here will not have the plugin usable
  # FilteredWorlds: ["creative_world"]
  # FilteredWorlds: ["creative_world1", "creative_world2"]
  FilteredWorlds: ["world"]
  # Defines how the Blacklist will be enforced
  # Options:
  #   Message           = The player will see a message that the usage of the backpack is not allowed in this world.
  #   MissingPermission = The player will receive the plugins no permission message.
  #   NoPlugin          = The plugin will not be available at all and act as if it was not installed.
  #                       This also exclude players with permission to bypass the world restriction from using it!
  #                       It will not disable the Shulkerboxes filter!
  BlockMode: "Message"

Details

Description
This config should only let minepacks work in world named "world"

Steps to reproduce

  1. Set config
  2. Restarted server
  3. Minepacks works in all worlds, not just world "world"

Expected behavior
Minepacks should only work in world "world"

GeorgH93 commented 10 months ago

Please make sure you are testing this with an user that does not have OP, or any off the following permissions: backpack.*, backpack.bypass or backpack.ignoreWorldBlacklist

If you still encounter the issue, please run /backpack debug and share the file with me, as well as the output of the /backpack debug permissions <name of a non OP player that is currently on the server> command.

emerysteele commented 7 months ago

OP/admin user was the issue.

Just set perms for backpack.ignoreWorldBlacklist & backpack.bypass to false for my user account for testing & it works as expected.