Placeholders
AnimatedMenu mainly uses AnimationLib for its placeholders. It doesn't work on its own though. AnimationLib needs either PlaceholderAPI or MVdWPlaceholderAPI. You can then use %placeholder% in order to add a placeholder to text. AnimatedMenu itself adds a few placeholders:
The following placeholders can contain an <id>. In order to use these, inside of the plugin's config.yml you will need to put:
Connections:
<id>:
IP: '<ip>:<port>'
# ... Further information can be found at each placeholder
<id> can be anything, just make sure to use the same value inside of the placeholder
Obtains the motd of a server.
Obtains the first line of the motd of a server.
Obtains the second line of the motd of a server. If the motd only has 1 line, it returns an empty text.
Obtains the online player count of a server.
Obtains the max player count of a server.
Obtains the status of a server. In the config, you would have to put two values, "Online" and "Offline":
Connections:
example:
IP: <ip>:<port>
Online: '&aOnline'
Offline: '&cOffline'
# Then you could use %animatedmenu_status_example%
Maps specific MOTD texts to values. In the config, the keys would be the motd and the values the result.
Connections:
example:
IP: <ip>:<port>
# In game? Red wool
'&cIn Game': 'wool:1:14'
# Waiting? Green wool!
'&aWaiting': 'wool:1:5'
# The server has a different MOTD
Default: 'wool:1:14'
# The server is offline
Offline: 'wool:1:14'
# Then in an item you could use:
Material: '%animatedmenu_motdcheck_example%'
Obtain the player count of a world.
Obtain the player count of a world, excluding those who are vanished through Essentials.
-
Menus
- Title(-Update-Delay)
- Menu-Type and Rows
- Permission(-Message)
- Menu-Opener (with Item, Name, Lore and/or Slot
- Open-On-Join
- Open-Sound
- Hide-From-Command
- Command (with Name, Usage, Description and/or Fallback)
- Click-Delay
- Items
- Worlds (AnimatedMenu Plus)
- View-Script (AnimatedMenu Plus)
- Open-Commands and Close-Commands (AnimatedMenu Plus)
- Auto-Close (AnimatedMenu Plus)
- Sql-Await and Wait-Message (AnimatedMenu Plus)
- Save-Navigation (AnimatedMenu Plus)
- Open-Animation (AnimatedMenu Plus)
- Empty-Item (with Single) (AnimatedMenu Plus)
- Items
- Click Handlers