WarzoneMC / tgm

Team Game Manager - Minecraft PVP Suite
https://warzone.network
40 stars 37 forks source link

Itemremove module works incorrectly on CTW maps #758

Closed TBG1000 closed 3 years ago

TBG1000 commented 3 years ago

Describe the bug The itemremove module ignores wools that are to be captured by either team on CTW maps. Example: yellow wool will still drop when broken on the map Cargo even if it is added to the itemremove module on the map's JSON.

Client version Tested on 1.12.2, but should happen across all versions.

To Reproduce Steps to reproduce the bug:

  1. Select a CTW map of your choice and edit its JSON to include all wool colors/materials inside the itemremove module.
  2. Start a local server with the latest build of TGM.
  3. Select the map you edited and start the match.
  4. Go into creative mode and grab all wool colors. Place one of each anywhere you like.
  5. Go back to survival mode and break each of the wools.
  6. Wools that are supposed to be captured to win the game will drop when broken/mined, but the rest won't.

Expected behavior None of the wools should have dropped after breaking them.

Screenshots Tested on Wahiz CTW https://youtu.be/9o3pgD7RAp8

Server Software (Spigot/PaperSpigot): PaperSpigot 1.16.5-584

Additional context The ItemRemoveModule is missing the following wool materials/colors: yellow, pink, red, and purple. However, when adding these colors to the module on a map's JSON, they seem to work fine (as long as those wools are not supposed to be captured).