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
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);
}
}
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
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.10, 1.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.