🚀Performance

UltimateShop is just a shop plugin that usually does not have too much impact on the server. It is usually a performance issue caused by your unreasonable settings or other plugins, such as:

Do not use ANY, ALL price/product mode unless necessary.

Different from CLASSIC_ANY, CLASSIC_ALL mode, ANY and ALL mode, the calculation for each buy or sell is independent. Only use the 2 mode when you set dynamic price or limit.

MMOItems/MythicMobs Item generation performance.

Both plugins are spend much server resource to generate item than vanilla items. If possible and your item is static item with no things like dynamic stat or level requirement, you can try use Save Item instead.

circle-info

For suggestions below: The change you need made are all exist in config.yml file.

Disable sell chest.

If you are not using sell chest feature, you can disable this feature to save serve performance.

sell:
  sell-chest:
    enabled: false 

Set placeholder.click.enabled option to false.

This maybe save server performance.

  click:
    # If enabled, {buy-click} and {sell-stick} will display different value according to product status.
    # But, it will maybe make server lag if you are running big server and have many products in your shop.
    enabled: false

Set cooldown for menu system.

Recommend use when you are running big server, it will make player no longer quickly click and reopen shop menu to make sure UltimateShop not lag your server.

Do not enable auto update GUI feature.

Enabling these options will significantly increase server performance consumption, but buttons within the GUI will be able to automatically update.

In most cases, you just want the GUI to update and display the latest data when we reset buy times or sell times, so you can achieve this idea through use-times.auto-reset-mode option.

If you pursue ultimate plugin performance, it's best not to turn on this option either.

Use BUKKIT item give method.

This item give method has the best performance, but the cost is that there may be some issues with stacking items, and when the player's inventory is full, we can only throw the excess items on the ground instead of preventing the player from further trading.

Use Bukkit sell item match method.

This can save some server performance, but the drawback is that the items to be sold must be identical to the items in the shop, with no differences, even including anvil cost, enchants, etc. (Items with durability and enchantable items basically cannot be sold to the shop because of this)

Last updated