Give commands puts items in disabled offhand
GamefactsIG opened this issue ยท 2 comments
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
- Server Version:
- 1.20.4
- OldCombatMechanics version:
- 2.0.1
- Server Log File:
Server Log
- OldCombatMechanics config file:
config.yml
Problem Description
To Reproduce
Steps to reproduce the behavior:
- Give yourself a full inventory
- Give yourself extra items
- Items will be in offhand
Expected Behaviour
Item should drop on floor due to being blocked
Actual Behaviour
Item goes in offhand
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'.