Minecraft Leaks

Farm Limiter 1.2!!

Submitted by NotACatOK?, , Thread ID: 85335

Thread Closed
20-04-2018, 02:47 AM
This post was last modified: 20-04-2018, 02:48 AM by NotACatOK?
#1
Content locked
This content has been locked. Please login or register in order to unlock it.


[b] [/b]


[b][Image: TfaSO7S.png][/b]

Description

Farm Limiter prevents players from making abnormal mob farms, limiting groups of near entities of the same type. This is a common issue on survival servers. Farm Limiter is able to limit mob farms, e.g.:
  • Friendly mob farms, counting hundreds of entities pushed into a very tight space.

  • One block wide automatic chicken farms, which generate a lot of lag.

  • Mob grinders with spawners, counting dozens of monsters when the players do not harvest them.
Features:
  • The plugin will search occasionally mob farms that aretoo bigfor the rules andremove exceeding mobs.

  • The plugin will givepriorityto entities withcertain characteristics(taming, custom names, saddle, etc.).

  • Option to completelyignore tamed entities.

  • You are able tocustomizethe rules, the check interval, as well as the broadcast message.

  • You can still remove all the rules and use the "/farms search" command to list the biggest entity groups periodically, and eventually remove them.
How Farm Limiter sees groups of entities, each color represents a different type (view from the top):
[Image: QhE9pJs.jpg]

Installation
  1. Stop the server

  2. Move FarmLimiter.jar to the plugins folder

  3. Start the server (to generate the configuration)

  4. Stop the server

  5. Edit the configuration in /plugins/FarmLimiter/config.yml (read below)

  6. Start your server

Configuration
You can find everything in the config.yml. The first time you open it, it will look like this:

check-interval: the amount of seconds between each check.
broadcast > enable: if you want to enable the broadcast message
broadcast > message: configure the broadcasted message. {amount} is the number of mobs despawned after the check.
broadcast > minimum: if the number of mobs despawned is below the minimum, the message will not be broadcasted.

rules
: a list of rules, each one made of four parts. To make a new rule, it's highly recommanded to copy and paste from another one (don't forget to include the dash and the spacing!).

A single rule is made of the following nodes:
Code (Text):
- entities: ...
worlds: ...
distance: ...
max-amount: ...
entities: a list of entity types affected by the rule, separated by a comma. "ALL" means all the types.
Please note that the plugin will not detect a group of different entities, but instead it will apply the rule for each type separately.
worlds: list of worlds where the rule is active, separated by a comma. "ALL" means all the worlds.
distance: the max distance between the entities to be considered part of the same group.
max-amount: the max amount of entities allowed for this rule. If a bigger group is found, the plugin will attempt to remove the entities in this order:
  1. Oldest entities without a name tag

  2. Newest entities without a name tag

  3. Entities with a name tag

Commands & Permissions
The permission for all the commands isfarmlimiter.admin

/farms reload
Reloads the plugin.

/farms check
Forces the plugin to check for mob farms. It tells the executor the amount of entities removed (even if it's not broadcasted).

/farms entities [world = current] [minTypeAmount = 10]
Lists all the entities grouped by type (including non-living ones) and sorted by amount in a single world.
[world] is world to check, yours by default.
[minTypeAmount] is the minimum amount of entities of a type to show up in the output.

/farms search <entityTypes> [distance = 5] [worlds = all]
Manually search for the biggest groups of the specified entity types.
<entityTypes> are the entity types to check, separated by a comma. Don't use spaces in between!
[distance] is the max distance between the entities, 5 by default.
[worlds] are the worlds to check, separated by a comma, all by default. Don't use spaces in between!


Developer API
The current API is pretty small: you can change which mobs are removed by the plugin, when the task is being run. The event isFarmLimitEvent.

RE: Farm Limiter 1.2!!

#2
Very nice looks very nice I think this would work very well.

RE: Farm Limiter 1.2!!

#3
haha, that's a really useful share dude, thanks for contributing and keep up the good work!

RE: Farm Limiter 1.2!!

#4
Awesome release for all kind of server types. awesome!Smile

RE: Farm Limiter 1.2!!

#5
download link is down.. please renew i used credits on it :(

Users browsing this thread: 2 Guest(s)