Hopper Limit

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.


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


CategoryFunctionDefault
place: radius:the horizontal radius checked for hoppers when a player tries to place one40
place: limit:the max amount of hoppers which can be placed in the radius defined above48
search: radius:the radius around each player which is checked for hoppers when doing a server scan100
search: limit:the minimum hopper count for search results to get listet60
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


CommandFunctionPermission
/hoppercounts all hoppers in the place radius (defined in config)hopperlimit.count
/hopper searchstarts a server wide hopper scan around each playerhopperlimit.search
/hopper listdisplays search results above the serach limithopperlimit.search
/hopper tp <id>teleports the player to the location of the search result with the corresponding idhopperlimit.search



Change Log


  • v 1.5
    • 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.

  • 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.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    65929
  • Created
    Sep 20, 2013
  • Last Released File
    Sep 20, 2013
  • Total Downloads
    1,582
  • License

Categories

Members

Recent Files