📚
GSLibrary
  • 👋Welcome
  • 👾Our plugins
  • Language API
    • 🇬🇧Languages
    • 🇰🇳For developers
  • Color API
    • 🎨Colors in configurations
  • GUI API
    • 🆕Creating GUI
    • 📕GUI Normal item
  • ACTIONS API
    • ⚙️How to make action
    • 📰Actions list
  • CONDITIONS API
    • 📐How to make condition
    • 📰Conditions types list
Powered by GitBook
On this page
  • - Message action
  • - Broadcast action
  • - Player command action
  • - Console command action
  • - Bungee connect action
  • - Inventory close action
  • - GUI open action
  • - GUI back action
  • - GUI forward action
  • - Actionbar action
  • - Actionbar for all players action
  • - Title action
  • - Title for all players action
  • - Sound action
  • - Sound for all players action
  • - Gamemode action
  • - Fly toggle action
  • - Fly enabled/disabled action

Was this helpful?

  1. ACTIONS API

Actions list

Here is list of all existing actions with examples

PreviousHow to make actionNextHow to make condition

Last updated 2 years ago

Was this helpful?

Actions in this list are actions that each of our plugins has. Each plugin may also have its own actions, which are separated on its wiki page.

- Message action

Sends a message to the player who performed the action. Support for PlaceholderAPI, <center> and .

type: message

SINGLE LINE
actions:
  message1:
    type: message
    value: '&aHELLO!'
MULTIPLE LINES
actions:
  message1:
    type: message
    values:
      - '<center>&aHELLO!'
      - '&aHELLO!'

- Broadcast action

Sends a broadcast to all online players. Support for PlaceholderAPI, <center> and .

type: broadcast

SINGLE LINE
actions:
  broadcast1:
    type: broadcast
    value: '&aHELLO!'
MULTIPLE LINES
actions:
  broadcast1:
    type: broadcast
    values:
      - '<center>&aHELLO!'
      - '&aHELLO!'

- Player command action

type: player-cmd

SINGLE LINE
actions:
  playercommand1:
    type: player-cmd
    value: 'say hello'
MULTIPLE LINES
actions:
  playercommand1:
    type: player-cmd
    values:
      - 'say hello'
      - 'say GSLibrary is best'

- Console command action

use placeholder: %player%

type: console-cmd

SINGLE LINE
actions:
  consolecommand1:
    type: console-cmd
    value: 'say hello %player%'
MULTIPLE LINES
actions:
  consolecommand1:
    type: console-cmd
    values:
      - 'say hello %player%'
      - 'say %player% is best'

- Bungee connect action

Connect a player who called the action to specific server. Support for PlaceholderAPI.

type: connect

EXAMPLE
actions:
  survival:
    type: connect
    value: 'survival'

- Inventory close action

Close a inventory for player who called the action.

type: close-inv

EXAMPLE
actions:
  close:
    type: close-inv

- GUI open action

Opens a gui from any of our plugins.

type: open-gui

EXAMPLE
actions:
  menu:
    type: open-gui
    value: 'gui_name'

- GUI back action

Opens the player's previous menu.

type: gui-back

EXAMPLE
actions:
  back:
    type: gui-back

- GUI forward action

Opens the player's upcoming menu.

type: gui-forward

EXAMPLE
actions:
  forward:
    type: gui-forward 

- Actionbar action

type: actionbar

EXAMPLE
actions:
  actionbar1:
    type: actionbar
    value: '&cHello!'

- Actionbar for all players action

type: actionbar-all

EXAMPLE
actions:
  actionbar1:
    type: actionbar-all
    value: '&cHello!'

- Title action

type: title

EXAMPLE
actions:
  title1:
    type: title
    title: '&cHello!'
    subtitle: '&4world!'
    fade-in: 20
    stay: 60
    fade-out: 20

- Title for all players action

type: title-all

EXAMPLE
actions:
  title1:
    type: title-all
    title: '&cHello!'
    subtitle: '&4world!'
    fade-in: 20
    stay: 60
    fade-out: 20

- Sound action

type: sound

EXAMPLE
actions:
  sound1:
    type: sound
    value: 'ENTITY_VILLAGER_NO'
    volume: 10
    pitch: 1

- Sound for all players action

type: sound-all

EXAMPLE
actions:
  sound1:
    type: sound-all
    value: 'ENTITY_VILLAGER_NO'
    volume: 10
    pitch: 1

- Gamemode action

Change a gamemode for a player who called the action. Gamemode types: SURVIVAL, CREATIVE, SPECTATOR, ADVENTURE

type: gamemode

EXAMPLE
actions:
  gamemode1:
    type: gamemode
    value: 'CREATIVE'

- Fly toggle action

Toggle fly to on/off for a player who called the action.

type: fly-toggle

EXAMPLE
actions:
  fly1:
    type: fly-toggle

- Fly enabled/disabled action

Set fly to on/off for a player who called the action.

type: fly-enabled

type: fly-disabled

EXAMPLE
actions:
  fly1:
    type: fly-enabled

Dispatch a command by player who called the action. Support for PlaceholderAPI and .

Dispatch a command from a console. Use placeholder %player% to get a player who called the action. Support for PlaceholderAPI and .

Sends a actionbar message to a player who called the action. Support for PlaceholderAPI and .

Sends a actionbar message to all online players. Support for PlaceholderAPI and .

Sends a title message to a player who called the action. Support for PlaceholderAPI and .

Sends a title message to all online players. Support for PlaceholderAPI and .

Play a sound to a player who called the action. All sound type can be found !

Play a sound to all online players. All sound type can be found !

📰
colors
colors
colors
colors
colors
colors
colors
colors
here
here