kernitus / BukkitOldCombatMechanics

Spigot plugin to configure combat mechanics for 1.9 onwards
https://www.spigotmc.org/resources/19510/
Mozilla Public License 2.0
179 stars 71 forks source link

Give commands puts items in disabled offhand #704

Open GamefactsIG opened 10 months ago

GamefactsIG commented 10 months ago

When a player obtains an item through i.e. /give , /i or a as a crate reward with a full inventory, item goes into offhand.

Information

Problem Description

To Reproduce

Steps to reproduce the behavior: 1. Give yourself a full inventory 2. Give yourself extra items 3. Items will be in offhand ### Expected Behaviour

Item should drop on floor due to being blocked

Actual Behaviour

Item goes in offhand

kernitus commented 10 months ago

Please fill in the issue template properly and provide your config.yml

kernitus commented 1 month ago

Not sure if much can be done about this. If a player has access to the /give and /item commands surely they can be expected to use the offhand? We can listen to the PlayerCommandPreprocessEvent and try to intercept these commands but that can be flaky and also would only work with the built-in Minecraft commands and not with any other plugins'.