Prevent Item Stacking inside inventory

Discussion in 'Plugin Development' started by sooon_mitch, Feb 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    sooon_mitch

    I am trying to prevent items from stacking inside a players inventory. I have no idea on what way to come about this. I'm trying to prevent any items from stacking that are stack able at all times. Prevent the player from stacking the items as well as when the the item is picked up. Any help would be helpful.
     
  2. Offline

    MrInspector

    Plugin list?
     
  3. Offline

    sooon_mitch

    Prevent items from stacking in the players inventory.
     
  4. try player.getInventory().setMaxStackSize(1);
     
  5. Offline

    sooon_mitch

    ferrybig I did try that when a player loads in so on the PlayerJoinEvent but did not work. Should I place it else wear?

    Bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  6. Offline

    sooon_mitch

Thread Status:
Not open for further replies.

Share This Page