Plugin that prevents players/mobs from destroying farmland by jumping on it

Overview

🌾 SimpleNoCropTrample

Plugin that prevents players/mobs from destroying farmland by jumping on it.

Works with every version from 1.7 to 1.18 and all softwares supporting spigot plugins.

Config

// If true, mobs won't be able to trample crops
disable-mob-trampling: true

// If true, player won't be able to trample crops
disable-player-trampling: true

// List of blocks that count as farmland (FARMLAND for 1.13+ and SOIL for <1.13)
farmlands-blocks:
- FARMLAND
- SOIL

API

This plugin has a simple API that can be used to manipulate crop trampeling for different players/mobs.

You can listen to the CropTrampleEvent and implement your custom logic to add features like permissions or bypasses.

The plugin also uses the event to disable crop trample if the config settings are enabled.

Example

@EventHandler
public void onTrample(CropTrampleEvent event) {
	if (event.getCause() == CropTrampleEvent.TrampleCause.PLAYER) {
		Player player = (Player) event.getTrampler();
		player.sendMessage("You're not able to destroy " + event.getBlock().getType() + "!");
	}
}

TrampleCause can either be MOB or PLAYER, depending on what entity tries to destroy the farmland.

Stats (bStats)

You might also like...

Minecraft Hug Plugin

Hug Sometimes virtual hugs are better than IRL hugs because you don't actually have to touch anyone. Hug makes it possible to hug another player on th

Sep 7, 2022

GodType is a very simple Bukkit plugin to allow the console (or a player) to chat as a defined name.

GodType GodType is a very simple Bukkit plugin to allow the console (or a player) to chat as a defined name. Config A config.yml file will be created

Dec 24, 2021

A simple plugin to load behavior packs from the 'behavior_packs' folder.

Behaviour Pack Loader for Nukkit A simple plugin to load behavior packs from the behavior_packs folder. If you found any bugs or have any suggestions,

Dec 7, 2022

This is a plugin for Minecraft Server (Spigot API) introduces a sector system which connects a single world across multiple servers.

OpenSourceSectors 😎 🗒️ This is a plugin for Minecraft Server (Spigot API) introduces a sector system which connects a single world across multiple s

Dec 28, 2022

Minecraft configurable plugin , which sends messages the first time a player logs into the server or the next time they log in.

JoinMessages Minecraft configurable plugin , which sends messages the first time a player logs into the server or the next time they log in or leave.

Aug 30, 2022

The IK Analysis plugin integrates Lucene IK analyzer into elasticsearch, support customized dictionary.

IK Analysis for Elasticsearch The IK Analysis plugin integrates Lucene IK analyzer (http://code.google.com/p/ik-analyzer/) into elasticsearch, support

Jan 5, 2023

Log4j2Scan - Log4j2 RCE Passive Scanner plugin for BurpSuite

Log4j2Scan - Log4j2 RCE Passive Scanner plugin for BurpSuite

Log4j2Scan This tool is only for learning, research and self-examination. It should not be used for illegal purposes. All risks arising from the use o

Jan 6, 2023

HubCore - Lobby Plugin for Nukkit with Server Selector, Gadgets, and Friends , Parties!

HubCore HubCore is an in-Development Lobby Plugin for Nukkit and PowerNukkit supporting API Versions through 1.0.9 to 1.0.13 It is highly configurable

Jan 4, 2022

A Jenkins plugin for inserting the commits changelog into the jenkins build environment.

commits-changelog-env-plugin A Jenkins plugin for inserting the commits changelog into the jenkins build environment. Jenkins插件, 在构建时通过将提交的更新列表插入 Jenk

Feb 16, 2022
Comments
  • [FEATURE] Rework auto-updater

    [FEATURE] Rework auto-updater

    What should be done?

    The auto updater should be reworked as the current solution isn't very good.

    What would need to be done?

    Implement this Auto-Updater.

    opened by UeberallGebannt 0
  • [FEATURE] Prevent falling blocks (anvils, sand, ...) from destroying crops

    [FEATURE] Prevent falling blocks (anvils, sand, ...) from destroying crops

    What should be done?

    If blocks with gravity fall on farmland, crops will be destroyed. This plugin could implement a config option for disabling this feature.

    What would need to be done?

    A new listener for falling blocksdestroying crops would need to be created. This would also require a new TrampleCause (maybe TrampleCause.BLOCKS).

    opened by UeberallGebannt 0
  • [FEATURE] Prevent water from destroying crops

    [FEATURE] Prevent water from destroying crops

    What should be done?

    If water flows over farmland, crops will be destroyed. This plugin could implement a config option for disabling this feature.

    What would need to be done?

    A new listener for water destroying crops would need to be created. This would also require a new TrampleCause (maybe TrampleCause.WATER).

    opened by UeberallGebannt 0
Releases(1.0.0)
Owner
null
QuickShop is a shop plugin that allows players to easily sell/buy any items from a chest without any commands.

QuickShop is a shop plugin that allows players to easily sell/buy any items from a chest without any commands. In fact, none of the commands that QuickShop provides are ever needed by a player.

Ghost_chu 24 Dec 30, 2022
Fixes Minecraft client lag from receiving chat messages, at the expense of not being able to block players in chat.

chat-lag-fix Fixes Minecraft client lag from receiving chat messages, at the expense of not being able to block players in chat. Mojang in their infin

adryd 21 Dec 4, 2022
A free opensource domain tracker with a breakdown of which countries players connected with for each domain versions 1.13+

A free opensource domain tracker with a breakdown of which countries players connected with for each domain versions 1.13+

Ricky Lafleur 8 Aug 4, 2022
Provides a simple java application for managing internationall football teams, players, coaches and matches.

Internationall football team manager application Provides a simple java application for managing internationall football teams, players, coaches and m

Magnus Lilja 1 Feb 7, 2022
Distribute players across multiple servers while syncing packets

ShardMC Distribute players across multiple servers while syncing packets ShardMC aims to be a simple plugin that allows multiple servers to sync playe

Jacob Bashista 5 Nov 28, 2022
A powerful API whichs allows developers to change a players name and UUID on login.

UUIDSwitcher An easy to use but powerful API for spigot servers which gives developers control over the UUID and name a player logs in with. This chan

BeefDev 6 Nov 30, 2022
NeverScapeAlone! Instantly match with other players and take the hassle out of finding partners for bosses, minigames, skills, pking, and more!

NeverScapeAlone An Old School RuneScape Matchmaking Plugin on RuneLite! Tired of having to scour friend's chats, discords, and forums to find friends

null 14 Sep 2, 2022
trying to create a plugin using the spigot api! this plugin will be responsible for delivering the products according to the settings!

KettraShop "simples plugin de ativação de produtos da loja, dentro do Minecraft" ⚙️ Configurações caso você não tenha uma loja virtual para seu servid

SEBASTIAN JN ฅ^•ﻌ•^ฅ 4 Nov 2, 2022
FactionRanking is a plugin that allows server administrators to put factions in competition in different rankings

Description FactionRanking is a plugin that allows server administrators to put factions in competition in different rankings (working for 1.7 and hig

nz 8 Dec 22, 2022
An open source Minecraft plugin that allows operators to control who has access to the nether.

Nether Access Controller Description Nether Access Controller is a Minecraft plugin that allows operators to control access to the nether. It is essen

Daniel Stephenson 2 Feb 12, 2022