Skip to content

Write down tasks and indicate when they should be completed.

License

Notifications You must be signed in to change notification settings

CKATEPTb-minecraft/DeluxeActions

Repository files navigation

ScheduledActions


A simple and incredibly powerful plugin that allows you to do many things. Create tasks and specify a trigger to start executing them.

License Discord


Versioning

We use Semantic Versioning 2.0.0 to manage our releases.

Features

  • Plugin integrations:
    • PlaceholderAPI integration
      • You can use the PlaceholderAPI to its full potential
      • Expand placeholders
        • Player target
          • Entity
            • %player_target_entity_name%
            • %player_target_entity_location%
            • %player_target_entity_type%
            • %player_target_entity_health%
            • TODO... all from player ecloud
          • Block
            • %player_target_block_type%
            • %player_target_block_location%
          • Item included in player ecloud
    • MultiVerse-core integration
    • Lands integration
    • Chunky integration
  • Triggers
    • Player type="PLAYER_ACTION":
      • Sneak handle="SNEAK"
      • Sneak Release handle="SNEAK_RELEASE"
      • Fall handle="FALL"
      • Left click handle="LEFT_CLICK"
        • Entity handle="LEFT_CLICK_ENTITY"
        • Block handle="LEFT_CLICK_BLOCK"
      • Right click handle="RIGHT_CLICK"
        • Entity handle="RIGHT_CLICK_ENTITY"
        • Block handle="RIGHT_CLICK_BLOCK"
      • Hand Swap handle="HAND_SWAP"
      • ???
    • World
    • Item
    • Server
    • Scheduled type="SCHEDULED"
      • TimeUnit handle="MINUTES;1" you can use any ChornoUnit
  • Events
    • TaskTypeRequestEvent
      • Used to register your own task types
    • ActionRequestEvent
      • Used to register your own task actions
  • Misc
    • Commands
      • Player [COMMAND] examplecommand
      • Console [CONSOLE_COMMAND] examplecomand %player_name%
    • Messages Can be implemented using commands
      • Directly [MESSAGE] text
      • Broadcast [BROADCAST] text;world
    • Permissions [PERMISSION] example.permission.access;true set false if you need not_has check
    • Conditions [CONDITION] %player_is_sneaking%;true set false if you need not_has check
      • PlaceholderAPI any registered boolean placeholder can be user as condition check
      • Comparing
      • External
    • Delay [DELAY] SECONDS;5" you can use any ChornoUnit`

Disclaimer

Initially, I needed a plugin that would control the actions of others plugins in order to perform wipes on the server. In the process of thinking about the implementation, I realized that I could make primitive scripts out of this to interact with players/items/worlds and the server as a whole. This can replace a lot of unnecessary plugins in your build. The list of functionality is currently modest, but it will definitely be actively expanded; moreover, creating your own triggers and actions is very simple. All you need to do is use TaskTypeRequestEvent and ActionRequestEvent events, examples you can find in this repository. The concept of task types defines how the task will be activated, and the concept of actions defines a list that needs to be walked through and completed everything, sequentially. Each action is as short as possible to create, all you need to do is specify the entry point using [ACTION_NAME] and the input data via ;. If you combine this with PlaceholderAPI, you can do completely cool things. for example

tasks {
  open-menu {
    type="PLAYER_ACTION" < 1. Work with player action's
    handle="HAND_SWAP" < 2. On player swap hand
    actions=[
      "[PERMISSIONS] example.menu.open;true" < 3. Check player permission to do it
      "[CONDITION] %player_is_sneaking%;true" < 4. If player sneaking
      "[CONSOLE_COMMAND] menu %player_name%" < 5. Open menu
    ]
  }
}

How To Install Plugin

About

Write down tasks and indicate when they should be completed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages