BentoBoxWorld / Challenges

Add-on for BentoBox to add challenges for BSkyBlock and AcidIsland
Eclipse Public License 2.0
13 stars 32 forks source link

Challenge completed with less than minimum-required amount of items #101

Closed wellnesscookie closed 5 years ago

wellnesscookie commented 5 years ago

Description

Steps to reproduce the behavior:

  1. Have a challenge that requires x256 of arrows to be completed: https://prnt.sc/mwpkhb
  2. Have at least a stack of arrows in the inventory
  3. Try completing the challenge
  4. Challenge completed

Server / BentoBox information:

Server information:

BBox version output:

[10:40:33] [main/INFO]: [CHAT] Running PAPER 1.13.2.
[10:40:33] [main/INFO]: [CHAT] BentoBox version: 1.4.0-SNAPSHOT
[10:40:33] [main/INFO]: [CHAT] Loaded Game Worlds:
[10:40:33] [main/INFO]: [CHAT] skyblock (skyblock)
[10:40:33] [main/INFO]: [CHAT] Loaded Add-Ons
[10:40:33] [main/INFO]: [CHAT] Biomes 0.5.0-SNAPSHOT
[10:40:33] [main/INFO]: [CHAT] BSkyBlock 1.3.0-SNAPSHOT
[10:40:33] [main/INFO]: [CHAT] Challenges 0.6.0
[10:40:33] [main/INFO]: [CHAT] Level 1.2.2-SNAPSHOT
[10:40:33] [main/INFO]: [CHAT] SerbCraftAddon 2.0
[10:40:33] [main/INFO]: [CHAT] WelcomeWarps 1.2.1-SNAPSHOT

Plugins: [06:32:17 INFO]: Plugins (50): AnimatedNames*, AreaShop, ArmorStandTools, BentoBox, BungeeTabListPlus*, ChatControl, ChestCommands, ChestShop*, ClearLag*, CrateReloaded, EditableSign, Essentials, EssentialsChat*, EssentialsSpawn*, ExecuteEverywhere*, FastAsyncWorldEdit*, FeatherBoard*, HeadDatabase*, HolographicDisplays, HungerKeeperPlus*, IPWhitelist*, IslandBorder, LeaderHeads*, LibsDisguises, LuckPerms, MobManager*, Multiverse-Core*, MVdWPlaceholderAPI*, NickRemover*, NoSleepCMDs*, OpenInv*, PlayerHeads, PlayerPoints*, ProtocolLib*, PvPManager*, PvPManagerBossBar*, RedstoneClockDetector*, RPGHealthIndicator*, SilkSpawners, SkinsRestorer, Spartan, TradeMe, TrophyHeads*, UnbreakingAnvils*, Vault*, VoidGenerator, WorldEdit, WorldGuard, WorldGuardPistonFix*, Yamler*

Expected behavior / Additional context

BONNe commented 5 years ago

Any errors in console?

wellnesscookie commented 5 years ago

Yes,

When I tried to complete with x64 arrows: [11:50:38 ERROR]: [BentoBox] [Challenges] Could not remove 64 of ARROW from player's inventory! [11:50:38 ERROR]: [BentoBox] [Challenges] Could not remove 64 of ARROW from player's inventory! [11:50:38 ERROR]: [BentoBox] [Challenges] Could not remove 64 of ARROW from player's inventory!

Found for the player that had complained: https://prnt.sc/mwr2me

BONNe commented 5 years ago

Hmm, weird that it still proceed with completing a challenge. I will check and fix it asap.

BONNe commented 5 years ago

Sorry that it took so long time.

I fixed this issue, but currently it will not return removed items. I still need to work on it.

BONNe commented 5 years ago

Implemented in PR #109