OldCombatMechanics

OldCombatMechanics

46.1k Downloads

Give commands puts items in disabled offhand

GamefactsIG opened this issue ยท 2 comments

commented

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:

  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

commented

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

commented

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'.