Wiki

Clone wiki

BukkitGames / Syntax elements for Skript

The following syntax elements are added by BukkitGames can be used in scripts for Skript.

Effects

Ability cooldown

cooldown ability [%integer%] of [%player%] for [%integer%] seconds

This creates a cooldown for the given ability of the given player for the given amount of time. This is especially useful when checking for an ability with "can use/might use".

Ability registration

register new ability [%integer%] name [%string%] description [%string%]

This registers a new ability with the given id, name and description.

Conditions

Ability checking with cooldown

[%player%] (can use|might use) ability [%integer%]

This checks if a player can use the ability with the given id at the moment. This will return false if a cooldown for given the ability and player exists.

Ability checking without cooldown

%player% (has|does have) ability [%integer%]

This checks if a player has the ability. (E.g. the kit he selected has the ability). This will ignore if the ability is on cooldown or not.

Team member checking

%player% (is team member of) [%player%]

Spectator checking

%player% (is spectator|is spectating)

Events

Game start

on game (starts|start|started)

This event is called when the game starts.

Game enable

game (enables|enable|enabled|fighting begins)

Called when the invincibility is turned off.

Game end

game (ends|ended|end)

Called when the game ends.

Expressions

Player Balance

Example: set the player's balance to 10

Tributes alive

Example: message "There are %tributes left% tributes alive!"

Last winner

Example: message "The winner of the last game is %last winner%!"

Current winner

Example: message "The winner of the current game is %current winner%!"

Custom world name

Example: message "Currently playing on %custom world name%!"

Updated