PlayerKits 2
  • PlayerKits 2 Wiki
  • How to Start
  • Kits Tutorial
  • Items Tutorial
  • Config.yml Tutorial
  • Inventory.yml Tutorial
  • Actions
  • Commands and Permissions
  • PlaceholderAPI Variables
  • Migrating from PlayerKits v1
  • Common Issues
  • Default Files
    • config.yml
    • Inventory.yml
    • messages.yml
Powered by GitBook
On this page
  • Message
  • Console Command
  • Player Command
  • Play Sound
  • Actionbar
  • Title
  • Firework
  • Close Inventory

Actions

PreviousInventory.yml TutorialNextCommands and Permissions

Last updated 3 months ago

Actions can be used when claiming a kit. More info .

Message

Sends a message to the player.

message: &aOpening the main menu

Console Command

Executes a command from the console. Use %player% variable for player name. You can use PlaceholderAPI variables.

console_command: eco take %player% 1500

Player Command

Executes a command from the player. You can use PlaceholderAPI variables.

player_command: spawn

Play Sound

Plays a sound to the player. Use this format: <sound>;<volume>;<pitch> You can find a list of sounds here: Latest Versions: Legacy Versions:

playsound: BLOCK_NOTE_BLOCK_PLING;10;0.1

Actionbar

Sends an actionbar message to the player. Use this format: "actionbar: message;duration" (The duration must be in ticks, 20ticks = 1second)

actionbar: &6Kit Claimed!;120

Title

Sends a title and subtitle message to the player. Use this format: "title: fadeIn;stay;fadeOut;title;subtitle" (The duration of fadeIn, stay and fadeOut must be in ticks, 20ticks = 1second) If you want just a title, or just subtitle write "none".

title: 20;40;20;&c&lDIAMOND KIT &cclaimed!;&7Enjoy your new kit.

Firework

Spawns a firework from the player location. Use this format: firework: colors:<color1>,<color2> type:<type> fade:<color1>,<color2> power:<power>

The fade property is optional, the rest are necessary. You can add more than 2 colors.

firework: colors:YELLOW,RED type:BALL fade:AQUA power:0
firework: colors:BLACK,WHITE type:BURST power:1

Close Inventory

Closes the player inventory.

close_inventory

Firework Colors: Firework Types:

HERE
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
https://helpch.at/docs/1.8.8/index.html?org/bukkit/Sound.html
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Color.html
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/FireworkEffect.Type.html