Minepacks

Minepacks

2M Downloads

Backpack shortcut spawns into inventory regardless of whitelist settings.

OpenSourceSlime opened this issue · 3 comments

commented

Information

Environment information
Plugin + server version info:


#############################
[06:41:07] [Server thread/INFO]: ##### Start Minepacks version info #####
[06:41:07] [Server thread/INFO]: Minepacks: 2.4.2-Release
[06:41:07] [Server thread/INFO]: Server: git-Purpur-1385 (MC: 1.17.1)
[06:41:07] [Server thread/INFO]: Java: 16.0.2
[06:41:07] [Server thread/INFO]: #####  End Minepacks version info  #####

Online mode: Yes

BungeeCord: No, Multiverse

Server/crash log


No errors

Plugin config (optional)


https://gist.github.com/kerostampcrab/81b7ae00681ad0bf3b397a6660e7c326

Details

Description
The backpack shortcut will spawn in all worlds even if they are not whitelisted in my config.

Steps to reproduce

  1. Install and config a whitelist for survival worlds
  2. Reload config and join
  3. A non-functional backpack is in the lobby world, where you spawn, even tho it should only be in the survival world!

Expected
I only want the backpack in the survival.

Other information (e.g. detailed explanation, related issues, suggestions how to fix, links for us to have context, screenshots, etc.)

commented

This build should remove the shortcut in worlds in which the player does not have the permission to use the backpack.

commented

So that means people with perms to use the backpack will have it regardless of the world?
Can't you make it so it won't spawn if it's disabled in that world?

commented

You are right, I missed it. 🤦‍♂️
This build also removes it for all worlds where the plugin is disabled (Please keep in mind that players with the backpack.ignoreWorldBlacklist will still have and be able to use it in these worlds).