This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | plugins { | |
| `java-library` | |
| `maven-publish` | |
| id("io.freefair.lombok") version "8.0.1" | |
| id("com.github.johnrengelman.shadow") version "8.1.1" | |
| id("io.papermc.paperweight.userdev") version "1.5.5" | |
| } | |
| group = "com.himerarp" | |
| version = "0.1-SNAPSHOT" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package me.wega.rpgambling; | |
| import org.bukkit.entity.Player; | |
| import org.bukkit.event.EventHandler; | |
| import org.bukkit.event.Listener; | |
| import org.bukkit.event.player.PlayerChatEvent; | |
| import org.bukkit.event.player.PlayerQuitEvent; | |
| import org.bukkit.plugin.Plugin; | |
| import java.util.HashMap; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Checks whether items can fit into the given inventory. | |
| * | |
| * @param inv Inventory to run check for | |
| * @param items Items that need to fit | |
| * @return <strong>true</strong> whether all items can fit, otherwise <strong>false</strong> | |
| * @author <a href="https://github.com/ThomasWega">Tomáš Weglarz</a> | |
| */ | |
| public static boolean canFit(Inventory inv, ItemStack... items) { | |
| final ItemStack[] contents = inv.getStorageContents().clone(); |