Skip to content

Features

ZetaStormy edited this page Sep 6, 2022 · 2 revisions

Actions

What are actions?

Actions are small pieces of text between brackets (like [THIS]) that allow you to execute, like the name says, certain actions when something happens. There are different type of actions, some receive arguments and some don't. Here is the list of the current available actions:

# [MESSAGE] <message> - Send a message to the player
# [BROADCAST] <message> - Broadcast a message to everyone
# [TITLE] <title;subtitle>[;fade-in][;stay][;fade-out] - Send the player a title message
# [ACTIONBAR] <message> - Send an action bar message
# [SOUND] <sound> - Send the player a sound
# [COMMAND] <command> - Execute a command as the player
# [CONSOLE] <command> - Execute a command as console
# [GAMEMODE] <gamemode> - Change a players' gamemode
# [SERVER] <server> - Send a player to a server
# [EFFECT] <effect;level>- Give a potion effect
# [MENU] <menu> - Open a menu from (plugins/Akropolis/menus)
# [CLOSE] - Close an open inventory

Examples

Rick roll everyone with a message!

actions:
  - "[BROADCAST] <hover:show_text:'<red>Never gonna give you up!'><rainbow>Hello world!</hover>"

Send someone to a server called "survival1"

actions:
  - "[SERVER] survival1"

Play a bat sound

actions:
  - "[SOUND] ENTITY_BAT_TAKEOFF"

Open a custom menu called "serverselector"

actions:
  - "[MENU] serverselector"

Custom menus

What are custom menus?

Custom menus are just chest inventories that you can customize through a file and the open it with the /akropolis open <menu> or with the [MENU] <menu> action. Custom menus are located in the Akropolis/menus/ directory.

Examples

The best example you can see about this feature, is the serverselector.yml custom menu that comes by default with the plugin.