Hopper Limit
Description
Many Servers are having issues with Lag due to a large ammount of hoppers being active.
This plugin lets you limit the amount of hoppers, which can be placed in an certain area (configurable). Therefore, huge amounts of hoppers being loaded at the same time per player is reduced and therefore server performance improved. The Hopper Limit also has a command to detect already existing hopper collections on a server.
When refearing to hoppers with this plugin, I always mean the hopper blocks, as well as hopper minecarts, since this plugin works for both.
If you want to give some players, like server admins, an override permission to be able to place hoppers above the limit, give them the hopperlimit.place - permission.
Config
Category | Function | Default |
---|---|---|
place: radius: | the horizontal radius checked for hoppers when a player tries to place one | 40 |
place: limit: | the max amount of hoppers which can be placed in the radius defined above | 48 |
search: radius: | the radius around each player which is checked for hoppers when doing a server scan | 100 |
search: limit: | the minimum hopper count for search results to get listet | 60 |
message: deny: | the message which is sent to the player when placing a hopper is denyed | '&8There are already more than %limit% hopper in this area. You cannot place new ones.' |
message:count: | the message displaying the results of /hopper count | '&8There are %count% hopper within %radius% blocks of your location.' |
Parameters for messages:
- %radius% - the current check radius (place:radius:)
- %limit% - the current hopper limit (place:limit:)
- %result% - the count result (only for message:count:)
Commands
Command | Function | Permission |
---|---|---|
/hopper | counts all hoppers in the place radius (defined in config) | hopperlimit.count |
/hopper search | starts a server wide hopper scan around each player | hopperlimit.search |
/hopper list | displays search results above the serach limit | hopperlimit.search |
/hopper tp <id> | teleports the player to the location of the search result with the corresponding id | hopperlimit.search |
Change Log
- v 1.5
- fixed a NullPointerException when player right-click on a rail with an empty hand.
- fixed a NullPointerException when player right-click on a rail with an empty hand.
- v 1.4
- fixed a bug not counting hopper minecarts properly.
- fixed a bug not counting hopper minecarts properly.
- v 1.3
- fixed a NullpointerException with /hopper list without previous search.
- fixed a NullPointerException when listing a page that does not exist.
- fixed a bug which didn't allow user to place any minecart (instead of only hopper minecarts) in an area with too many hoppers.
- v 1.2
- added a /hopper tp <id> command, which teleports you to the corresponding search result. permission: hopper.search
- fixed the dixplay bugs of /hopper list
- fixed /hopper list <page> not working with the page parameter
- v 1.1
- added a /hopper search command to search in a configurable radius of each player for large amounts of hoppers. permission: hopperlimit.search
- added a /hopper list <page> command to list the seach results. permission: hopperlimit.search
- added a default /hopper command, which counts the hoppers in the place limit radius. permission: hopperlimit.count
- fixed a bug where hopper minecarts disappeared when placing was cancelled.
- added config option message.deny, which is shown when placing a hopper is cancelled. params: %limit%, %radius%
- added config option message.count, which displays the results of /hopper. params: %limit%, %radius%, %result%
- some leftover debug messages removed
- some internal code cleanup (more efficient better expandable)
- v 1.0
- initial release
- override-permission: hopperlimit.place
Although having tested this plugin on different servers in many situations without any problems, I cannot guarantee the functionality with your individual setup, and cannot be held responsible for any loss. If you have any errors, please report them providing the complete server log of this error, aswell as a list with your installed plugins and I will try to fix it.
Can you add permission to place a certain amount of hopper ? Like i got hopperlimit.place.100 then i can place 100 hopper.
nice, still working on spigot 1.8.8.... i had an user with 1200 hoppers seriously, this fixed my problem.
Thanks for this. Works in 1.7.5 API
Nice plugin, they should add this in Bukkit.
Love this plugin! :) Helped our performance alot!