@Override
    public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
        if (event.isCancelled()) {
            return;
        }
        Player player = event.getPlayer();
        if (player.getGameMode().equals(GameMode.CREATIVE)) {
            if (!this.config.yml.getBoolean("Game Mode.Separate Inventories", true)) {
                return;
            }
            if (player.hasPermission("bcs.bypass.chestaccess")) {
                return;
            }
            Entity entity = event.getRightClicked();
            if (entity instanceof StorageMinecart || entity instanceof PoweredMinecart) {
                event.setCancelled(true);
            }
        }
    }