Insights  - Super configurable (region) Limits + Asynchronous Scans [1.19.2] icon

Insights - Super configurable (region) Limits + Asynchronous Scans [1.19.2] -----

Create group limits | Permission based | Extremely fast region scans | Many region addon support!



Hook API
  • Added Hook API, determine which "org.bukkit.Block" should be scanned by Insights
    Hook class:
    Code (Java):

    import net.frankheijden.insights.api.entities.Hook ;
    import org.bukkit.Material ;
    import org.bukkit.block.Block ;
    import org.bukkit.plugin.Plugin ;

    public class MyInsightsHook extends Hook {
        public MyInsightsHook ( Plugin plugin ) {
            super ( plugin ) ;
        }

        @Override
        public boolean shouldCancel ( Block block ) {
            return block. getType ( ) == Material. DIRT ;
        }
    }
     
    Plugin class:
    Code (Java):

    import net.frankheijden.insights.api.InsightsAPI ;

    public class MyPlugin extends JavaPlugin {
        @Override
        public void onEnable ( ) {
            super . onEnable ( ) ;

            InsightsAPI insightsAPI = new InsightsAPI ( ) ;
            insightsAPI. getHookManager ( ) . addHook ( new MyInsightsHook ( this ) ) ;
        }
    }
     
  • Added hook for WildStacker
Please look at the following lines in your messages.yml under the "messages" section, they have been changed:

Code (YAML):

  # Messages send when a user executed /insights
  insights
:
    # Messages send when a user executed /insights help
    help
: |-
      &8&m --------------- =&r&8 [ &b&l Insights Help&r &8 ] &m= --------------- -
      &b /insights &f| &7Displays information about this plugin.
      &b /insights help &f| &7Displays this message.
      &b /insights hooks &f| &7Shows plugin hooks.
      &b /insights reload &f| &7Reloads the plugin.
      &b /check &f| &7Displays the amount of entities & tiles in this chunk.
      &b /checkworlds &f| &7Displays the amount of entities & tiles in the server.
      &b /scan [ entity|tile| all ] &f| &7Displays a detailed scan of this chunk.
      &b /scan custom [ entity1 ] [ material2 ] ... &f| &7Scan this chunk.
      &b /scanradius [ entity|tile| all ] &f| &7Displays a detailed scan of chunks.
      &b /scanradius custom [ entity1 ] [ material2 ] ... &f| &7Scan chunks in a radius.
      &b /scanworld <world> [ entity|tile| all ] &f| &7Displays a detailed scan of a world.
      &b /scanworld <world> custom [ entity1 ] [ material2 ] ... &f| &7Scan a world.
      &b /togglecheck &f| &7Toggles realtime info in actionbar.
      &8&m ------------------------------------------------ -

    # Messages send when a user executed /insights hooks
    hooks
:
      header
: "&8&m---------------=&r&8[&b&l Insights Hooks&r &8]&m=---------------"
      # Special placeholders:
      # %plugin%
      format
: "&a&l✔ &r&a%plugin%"
      footer
: "&8&m-------------------------------------------------"
      none
: "&cInsights has no hooks enabled."

    # Message send when the plugin has been successfully reloaded
    reload
: "&3Insights has been successfully reloaded!"

    # Message send when the plugin had an error reloading config
    reload_failed
: "&cInsights failed to reload the config. Please check the console and report this error."
 
----------, Dec 22, 2019
Resource Information
Author:
----------
Total Downloads: 39,795
First Release: May 6, 2018
Last Update: Oct 6, 2022
Category: ---------------
All-Time Rating:
53 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings