Home›Java›Mods›No Offline Dropping
ModsJava

No Offline Dropping

Java mod listed for Minecraft 1.8–1.12. Download on the author's site.

⬇ Download on Spigot
This plugin simply cancels the PlayerDropItemEvent if the player is offline.
It also logs when it does it.
Source code here: https://github.com/ataranlen/NoDroppingOffline

Code (Text):
@EventHandler(priority = EventPriority.HIGHEST)
    public void onPlayerDropEvent(PlayerDropItemEvent e) {
        Player player = e.getPlayer();
        if (!player.isOnline()) {
            MTLog.debug(player.getDisplayName() +" dropped item while offline!");
            e.setCancelled(true);
       
        }
    }
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

No Offline Dropping is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.10, 1.11, 1.12. Downloaded 372 times (via Spigot). Download it and open it directly in the game.

Explore more