Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ========================================== #
- # ×××××××××××××××××××××××××××××××××××××××××× #
- # Spleef #
- # by SaMaGamers #
- # ×××××××××××××××××××××××××××××××××××××××××× #
- # ========================================== #
- # ============> version: 4.2 <============== #
- # ========================================== #
- # Configuration #
- # ========================================== #
- options:
- maxspleefsnowplayers: 8 # The max players that can join by Snow: NOT 1! IF YOU SET IT TO 1, THERE ARE BUGS!!!
- maxspleefpizzaplayers: 8 # The max players that can join by Pizza: NOT 1! IF YOU SET IT TO 1, THERE ARE BUGS!!!
- prefix: &8[&3Spl&fee&3f&8]&r # The prefix will be shown in every message
- # ========================================== #
- # Skript (Don't touch!) #
- # ========================================== #
- On rightclick on sign:
- line 1 of event-block is "&3[Spleef]":
- line 2 of event-block is "&a&lJoin":
- line 3 of event-block is "&7Snow" or "&7snow":
- make player execute command "/join snow"
- make console execute command "/eco take %player% %line 4 of event-block%"
- line 3 of event-block is "&4Pizza" or "&4pizza":
- make player execute command "/join pizza"
- make console execute command "/eco take %player% %line 4 of event-block%"
- On break of sign:
- line 1 of event-block is "&3[Spleef]":
- line 2 of event-block is "&a&lJoin":
- line 3 of event-block is "&7Snow" or "&7snow" or "&4Pizza" or "&4pizza":
- player is sneaking:
- message "{@prefix} &3Sign Removed!"
- stop
- else:
- message "{@prefix} &cSneak for break a Spleef-sign!"
- cancel event
- on load:
- {spleef.game.snow.list} is not set:
- set {spleef.game.snow.list} to 0
- {spleef.game.snow.ingame} is not set:
- set {spleef.game.snow.ingame} to false
- {spleef.game.pizza.list} is not set:
- set {spleef.game.pizza.list} to 0
- {spleef.game.pizza.ingame} is not set:
- set {spleef.game.pizza.ingame} to false
- on right click holding a tnt:
- if {player.%player%.playing} is true:
- make the player shoot a tnt at speed 1
- remove 1 tnt from player
- on join:
- set {player.%player%.waiting} to false
- set {player.%player%.status} to "null"
- set {player.%player%.playing} to false
- {player.%player%.wins} is not set:
- set {player.%player%.wins} to 0
- {player.%player%.games} is not set:
- set {player.%player%.games} to 0
- on block damage:
- {player.%player%.status} is not "null":
- wait 1 second
- make player break the event-block
- on place:
- event-block is a sign named "&7Snow &6Join-sign":
- set line 1 of the event-block to "&3[Spleef]"
- set line 2 of the event-block to "&a&lJoin"
- set line 3 of the event-block to "&7Snow"
- event-block is a sign named "&4Pizza &6Join-sign":
- set line 1 of the event-block to "&3[Spleef]"
- set line 2 of the event-block to "&a&lJoin"
- set line 3 of the event-block to "&4Pizza"
- on break:
- {player.%player%.status} is not "null":
- set player's food level to 2 + player's food level
- event-block is snow block:
- {player.%player%.status} is "snow":
- add location of event-block to {spleef.blocks.snow.locations::*}
- event-block is obsidian:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.obsidian::*}
- apply blindness 2 to {spleef.game.pizza.list::*} for 4 seconds
- remove blindness from the player
- message "{@prefix} &e%player% &3blinded everywhone!" to {spleef.game.pizza.list::*}
- event-block is gold block:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.gold::*}
- poison {spleef.game.pizza.list::*} for 8 seconds
- cure the player from poison
- message "{@prefix} &e%player% &3poisoned everywhone!" to {spleef.game.pizza.list::*}
- event-block is redstone block:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.redstone::*}
- apply speed 3 to player for 6 seconds
- event-block is glass:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.glass::*}
- apply invisibility to player for 8 seconds
- event-block is wool:5:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.wool::*}
- apply jump boost to player for 6 seconds
- event-block is planks:1:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.planks::*}
- give player 1 tnt
- event-block is soul sand:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.soul::*}
- apply nausea 2 to {spleef.game.pizza.list::*} for 4 seconds
- remove nausea from the player
- message "{@prefix} &e%player% &3maked everywhone drunk!" to {spleef.game.pizza.list::*}
- event-block is stained hardened clay:0:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay0::*}
- event-block is stained hardened clay:1:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay1::*}
- event-block is stained hardened clay:2:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay2::*}
- event-block is stained hardened clay:3:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay3::*}
- event-block is stained hardened clay:4:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay4::*}
- event-block is stained hardened clay:5:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay5::*}
- event-block is stained hardened clay:6:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay6::*}
- event-block is stained hardened clay:7:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay7::*}
- event-block is stained hardened clay:8:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay8::*}
- event-block is stained hardened clay:9:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay9::*}
- event-block is stained hardened clay:10:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay10::*}
- event-block is stained hardened clay:11:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay11::*}
- event-block is stained hardened clay:12:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay12::*}
- event-block is stained hardened clay:13:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay13::*}
- event-block is stained hardened clay:14:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay14::*}
- event-block is stained hardened clay:15:
- {player.%player%.status} is "pizza":
- add location of event-block to {spleef.blocks.pizza.locations::*}
- add location of event-block to {spleef.blocks.pizza.locations.clay15::*}
- sub "Spleef.RegenBlocks.Snow":
- wait 1 tick
- set {spleef.blocks.snow.locations::*} to snow block
- loop {spleef.blocks.snow.locations::*}:
- remove loop-value from {spleef.blocks.snow.locations::*}
- sub "Spleef.RegenBlocks.Pizza":
- wait 1 tick
- set {spleef.blocks.pizza.locations.obsidian::*} to obsidian
- set {spleef.blocks.pizza.locations.gold::*} to gold block
- set {spleef.blocks.pizza.locations.redstone::*} to redstone block
- set {spleef.blocks.pizza.locations.glass::*} to glass
- set {spleef.blocks.pizza.locations.wool::*} to wool:5
- set {spleef.blocks.pizza.locations.planks::*} to planks:1
- set {spleef.blocks.pizza.locations.soul::*} to soul sand
- set {spleef.blocks.pizza.locations.clay0::*} to stained hardened clay:0
- set {spleef.blocks.pizza.locations.clay1::*} to stained hardened clay:1
- set {spleef.blocks.pizza.locations.clay2::*} to stained hardened clay:2
- set {spleef.blocks.pizza.locations.clay3::*} to stained hardened clay:3
- set {spleef.blocks.pizza.locations.clay4::*} to stained hardened clay:4
- set {spleef.blocks.pizza.locations.clay5::*} to stained hardened clay:5
- set {spleef.blocks.pizza.locations.clay6::*} to stained hardened clay:6
- set {spleef.blocks.pizza.locations.clay7::*} to stained hardened clay:7
- set {spleef.blocks.pizza.locations.clay8::*} to stained hardened clay:8
- set {spleef.blocks.pizza.locations.clay9::*} to stained hardened clay:9
- set {spleef.blocks.pizza.locations.clay10::*} to stained hardened clay:10
- set {spleef.blocks.pizza.locations.clay11::*} to stained hardened clay:11
- set {spleef.blocks.pizza.locations.clay12::*} to stained hardened clay:12
- set {spleef.blocks.pizza.locations.clay13::*} to stained hardened clay:13
- set {spleef.blocks.pizza.locations.clay14::*} to stained hardened clay:14
- set {spleef.blocks.pizza.locations.clay15::*} to stained hardened clay:15
- loop {spleef.blocks.pizza.locations::*}:
- remove loop-value from {spleef.blocks.pizza.locations::*}
- loop {spleef.blocks.pizza.locations.obsidian::*}:
- remove loop-value from {spleef.blocks.pizza.locations.obsidian::*}
- loop {spleef.blocks.pizza.locations.gold::*}:
- remove loop-value from {spleef.blocks.pizza.locations.gold::*}
- loop {spleef.blocks.pizza.locations.redstone::*}:
- remove loop-value from {spleef.blocks.pizza.locations.redstone::*}
- loop {spleef.blocks.pizza.locations.glass::*}:
- remove loop-value from {spleef.blocks.pizza.locations.glass::*}
- loop {spleef.blocks.pizza.locations.wool::*}:
- remove loop-value from {spleef.blocks.pizza.locations.wool::*}
- loop {spleef.blocks.pizza.locations.planks::*}:
- remove loop-value from {spleef.blocks.pizza.locations.planks::*}
- loop {spleef.blocks.pizza.locations.soul::*}:
- remove loop-value from {spleef.blocks.pizza.locations.soul::*}
- loop {spleef.blocks.pizza.locations.clay0::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay0::*}
- loop {spleef.blocks.pizza.locations.clay1::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay1::*}
- loop {spleef.blocks.pizza.locations.clay2::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay2::*}
- loop {spleef.blocks.pizza.locations.clay3::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay3::*}
- loop {spleef.blocks.pizza.locations.clay4::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay4::*}
- loop {spleef.blocks.pizza.locations.clay5::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay5::*}
- loop {spleef.blocks.pizza.locations.clay6::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay6::*}
- loop {spleef.blocks.pizza.locations.clay7::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay7::*}
- loop {spleef.blocks.pizza.locations.clay8::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay8::*}
- loop {spleef.blocks.pizza.locations.clay9::*}:
- remove loop-value from {spleef.blocks.10pizza.locations.clay9::*}
- loop {spleef.blocks.pizza.locations.clay10::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay10::*}
- loop {spleef.blocks.pizza.locations.clay11::*}:
- remove loop-value from {spleef.block.pizza.locations.clay11::*}
- loop {spleef.blocks.pizza.locations.clay12::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay12::*}
- loop {spleef.blocks.pizza.locations.clay13::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay13::*}
- loop {spleef.blocks.pizza.locations.clay14::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay14::*}
- loop {spleef.blocks.pizza.locations.clay15::*}:
- remove loop-value from {spleef.blocks.pizza.locations.clay15::*}
- command /stats [<player>] [<text>]:
- aliases: /st
- trigger:
- arg 1 is not set:
- arg 2 is not set:
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- message "&3Games played: &2%{player.%player%.games}%"
- message "&3Wins: &e%{player.%player%.wins}%"
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- arg 1 is set:
- arg 2 is not set:
- player has permission "spleef.stats.otherplayers" or "spleef.*":
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- message "&3Games played: &2%{player.%arg 1%.games}%"
- message "&3Wins: &e%{player.%arg 1%.wins}%"
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- stop
- arg 2 is "reset" or "delete" or "remove":
- player has permission "spleef.stats.otherplayers" or "spleef.*":
- set {player.%arg-2%.wins} to 0
- set {player.%arg-2%.games} to 0
- message "{@prefix} &aSuccesfully removed the stats from &e%arg-2%&a!"
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- stop
- Command /spleef [<text>] [<text>] [<number>]:
- aliases: /s, /sp, /spl
- description: The main SpleefPro command
- trigger:
- arg 1 is "help":
- player has permission "spleef.help" or "spleef.*":
- arg 2 is not set:
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- message "&3/spleef help [page]&6: Get this message"
- message "13/spleef info&6: Get info about the plugin"
- message "&3/spleef createspleef (spleef_type)&6: Create a spleef. It sets the spawn location"
- message "&3/spleef reload&6: Reload the Skript"
- message "&3/spleef setup&6: A GUI for setup Spleef-games"
- message "&3/spleef setmainhub&6: Set the mainhub"
- message "&3/spleef setwaitlobby (spleef_type)&6: Set the waitlobby"
- message "&3/join (spleef_type)&6: Join a game"
- message "&3/leave&6: Leave a game"
- message "&3/spleef mainhub&6: Teleport to the mainhub"
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- arg 2 is "1":
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- message "&3/spleef help&6: Get this message"
- message "13/spleef info&6: Get info about the plugin"
- message "&3/spleef createspleef (spleef_type)&6: Create a spleef. It sets the spawn location"
- message "&3/spleef reload&6: Reload the Skript"
- message "&3/spleef setup&6: A GUI for setup Spleef-games"
- message "&3/spleef setmainhub&6: Set the mainhub"
- message "&3/spleef setwaitlobby (spleef_type)&6: Set the waitlobby"
- message "&3/join (spleef_type)&6: Join a game"
- message "&3/leave&6: Leave a game"
- message "&3/spleef mainhub&6: Teleport to the mainhub"
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- arg 2 is "2":
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- message "&3/spleef waitlobby (spleef_type)&6: Teleport to the waitlobby"
- message "&3/spleef joinsign (spleef_type) [money_to_pay]&6: Get a join sign."
- message "&3/spleef kickspleef (spleef_type)&6: Kick all the players for a specific game"
- message ""
- message "&3You kan also do &5/s&3, &5/sp&3 or &5/spl"
- message ""
- message "&3The current spleeftypes are: &fSnow&3, &4Pizza"
- message ""
- message "&3Skript made by &5SaMaGamers"
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- arg 2 is not "1":
- arg 2 is not "2":
- arg 2 is set:
- message "{@prefix} &cThat page does'nt exists!"
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 1 is "info":
- player has permission "spleef.info" or "spleef.*":
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- message "&3maker: &6SaMaGamers"
- message "&3version: &64.2"
- message "&7Free Version"
- message "&1-=-=-=-=&3&l[Spleef]&1=-=-=-=-"
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 1 is "setup":
- player has permission "spleef.setup" or "spleef.*":
- open chest with 1 row named "&3Spleef" to player
- wait 1 tick
- format slot 0 of player with beacon named "&6Mainhub" to close then run [make player execute the command "spleef setmainhub"]
- format slot 3 of player with crafting table named "&6Waitlobby&3-Snow" to close then run [make player execute the command "spleef setwaitlobby snow"]
- format slot 4 of player with crafting table named "&6Waitlobby&3-Pizza" to close then run [make player execute the command "spleef setwaitlobby pizza"]
- format slot 6 of player with diamond block named "&6Create Game &3Snow" to close then run [make player execute the command "spleef createspleef snow"]
- format slot 7 of player with diamond block named "&6Create Game &3Pizza" to close then run [make player execute the command "spleef createspleef pizza"]
- stop
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 1 is "joinsign":
- player has permission "spleef.joinsign" or "spleef.*":
- arg 3 is not set:
- arg 2 is "snow":
- give sign named "&7Snow &6Join-sign" to player
- message "{@prefix} &3You got a &7Snow &3Join-sign"
- arg 2 is "pizza":
- give sign named "&4Pizza &6Join-sign" to player
- message "{@prefix} &3You got a &4Pizza &3Join-sign"
- arg 2 is not "snow":
- arg 2 is not "pizza":
- arg 2 is set:
- message "{@prefix} &cThat spleef-type does'nt exists!"
- arg 3 is set:
- arg 2 is "snow":
- give sign named "&7Snow &6Join-sign" with lore "%arg 3%" to player
- message "{@prefix} &3You got a &7Snow &3Join-sign"
- arg 2 is "pizza":
- give sign named "&4Pizza &6Join-sign" with lore "%arg 3%" to player
- message "{@prefix} &3You got a &4Pizza &3Join-sign"
- arg 2 is not "snow":
- arg 2 is not "pizza":
- arg 2 is set:
- message "{@prefix} &cThat spleef-type does'nt exists!"
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 1 is "mainhub":
- player has permission "spleef.mainhub" or "spleef.*":
- {spleef.location.mainhub} is set:
- teleport player to {spleef.location.mainhub}
- else:
- message "{@prefix} &3Set the mainhub location first with &o/spleef setmainhub&r&3!" to player
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 1 is "waitlobby":
- arg 2 is "snow":
- player has permission "spleef.waitlobby.snow" or "spleef.*":
- {spleef.location.waitlobby.snow} is set:
- teleport player to {spleef.location.waitlobby.snow}
- else:
- message "{@prefix} &3Set the waitlobby location first with &o/spleef setwaitlobby (spleef_type)&r&3!" to player
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 2 is "pizza":
- player has permission "spleef.waitlobby.pizza" or "spleef.*":
- {spleef.location.waitlobby.pizza} is set:
- teleport player to {spleef.location.waitlobby.pizza}
- else:
- message "{@prefix} &3Set the waitlobby location first with &o/spleef setwaitlobby (spleef_type)&r&3!" to player
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 2 is not "snow" or "pizza":
- message "{@prefix} &3Specify a spleeftype!"
- arg 1 is not set:
- message "{@prefix} &3Do &6&o/spleef help &r&3for a list of commands" to player
- arg 1 is "setmainhub":
- player has permission "spleef.setup" or "spleef.*":
- set {spleef.location.mainhub} to location of player
- message "{@prefix} &3You set the mainhub to your current location!" to player
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 1 is "setwaitlobby":
- arg 2 is "snow":
- player has permission "spleef.setup" or "spleef.*":
- set {spleef.location.waitlobby.snow} to location of player
- message "{@prefix} &3You set the waitlobby for SNOW to your current location!" to player
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 2 is "pizza":
- player has permission "spleef.setup" or "spleef.*":
- set {spleef.location.waitlobby.pizza} to location of player
- message "{@prefix} &3You set the waitlobby for PIZZA to your current location!" to player
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- arg 2 is not "snow" or "pizza":
- message "{@prefix} &3Specify a spleeftype!"
- arg 1 is "createspleef":
- arg 2 is "snow":
- player has permission "spleef.setup" or "spleef.*":
- {spleef.location.waitlobby.snow} is set:
- {spleef.location.mainhub} is set:
- set {spleef.location.snow} to location of player
- set {spleef.game.snow.created} to true
- message "{@prefix} &3You have created the arena snow!&o&7 Make sure that this is an area of snow! The spawn location is put on your current location!" to player
- stop
- else:
- message "{@prefix} &3Set the mainhub first!"
- stop
- else:
- message "{@prefix} &3Set the waitlobby first!"
- stop
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- stop
- arg 2 is "pizza":
- player has permission "spleef.setup" or "spleef.*":
- {spleef.location.waitlobby.pizza} is set:
- {spleef.location.mainhub} is set:
- set {spleef.location.pizza} to location of player
- set {spleef.game.pizza.created} to true
- message "{@prefix} &3You have created the arena &4Pizza&3!&o&7 Make sure you have only use this blocks:" to player
- message "{@prefix} &eObsidian (49), Gold Block (41), Redstone Block (152), Glass, (20)" to player
- message "&eLime Wool (35:5), Spruce Wood (5:1), Soul Sand (88) and any Hardened Clay Block (159:0-15)&3!" to player
- message "{@prefix} &3The spawn location is put on your current location!" to player
- stop
- else:
- message "{@prefix} &3Set the mainhub first!"
- stop
- else:
- message "{@prefix} &3Set the waitlobby first!"
- stop
- else:
- message "{@prefix} &cYou don't have the permission to do that!"
- stop
- arg 2 is not "snow" or "pizza":
- message "{@prefix} &3Specify a spleeftype!"
- stop
- arg 1 is "setnoplaying":
- player has permission "spleef.setnoplaying":
- if arg-2 is set:
- set {player.%arg 2%.playing} to false
- message "{@prefix} &3There may be bugs!"
- else:
- message "{@prefix} &3Specify an online player!"
- stop
- else:
- message "{@prefix} &cYou don't have the permission!"
- stop
- arg 1 is "reload":
- player has permission "spleef.reload" or "spleef.*":
- make console execute the command "sk reload Spleef"
- message "{@prefix} &3Succesfully reloaded &eSpleef.sk"
- arg 1 is "kickspleef":
- arg 2 is "snow":
- player has permission "spleef.kickspleef" or "spleef.*":
- {spleef.game.snow.created} is true:
- set {spleef.game.snow.list} to 0
- loop {spleef.game.snow.list::*}:
- teleport loop-value to {spleef.location.mainhub}
- set {player.%loop-value%.playing} to false
- set {player.%loop-value%.waiting} to false
- clear player's inventory
- invoke "Inv.Give" from loop-value
- message "{@prefix} &cYou are kicked from the game by %player%" to loop-value
- set {spleef.game.snow.ingame} to false
- remove loop-value from {spleef.game.snow.list::*}
- arg 2 is "pizza":
- player has permission "spleef.kickspleef" or "spleef.*":
- {spleef.game.pizza.created} is true:
- set {spleef.game.pizza.list} to 0
- loop {spleef.game.pizza.list::*}:
- teleport loop-value to {spleef.location.mainhub}
- set {player.%loop-value%.playing} to false
- set {player.%loop-value%.waiting} to false
- clear player's inventory
- invoke "Inv.Give" from loop-value
- message "{@prefix} &cYou are kicked from the game by %player%" to loop-value
- set {spleef.game.pizza.ingame} to false
- remove loop-value from {spleef.game.pizza.list::*}
- arg 1 is not "kickspleef" or "setnoplaying" or "createspleef" or "help" or "info" or "setwaitlobby" or "waitlobby" or "setmainhub" or "mainhub" or "setup" or "reload" or "joinsign":
- message "{@prefix} &4ERROR&c: Invalid Syntax &4> &3/spleef help"
- command /join <text>:
- aliases: /splj, /sj, /spj
- executable by: players
- trigger:
- arg 1 is "snow":
- {spleef.game.snow.created} is true:
- {player.%player%.status} is "null":
- {spleef.game.snow.list} is not equal to {@maxspleefsnowplayers}:
- {player.%player%.waiting} is false:
- {spleef.game.snow.ingame} is false:
- set {player.%player%.status} to "snow"
- heal the player
- invoke "Inv.Save" from loop-value
- clear player's inventory
- set player's health to 20
- set player's hunger to 20
- set {player.%player%.waiting} to true
- set level of player to 0
- set player's gamemode to survival
- add 1 to {spleef.game.snow.list}
- add player to {spleef.game.snow.list::*}
- teleport player to {spleef.location.waitlobby.snow}
- message "{@prefix} &3You joined the queue!"
- wait 5 ticks
- message "{@prefix} &3%player% has joined the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- {spleef.game.snow.list} = {@maxspleefsnowplayers}:
- loop {spleef.game.snow.list::*}:
- message "{@prefix} &3The game bigins in &510 seconds" to loop-value
- wait 5 seconds
- message "{@prefix} &3The game begins in &55 seconds" to loop-value
- wait 2 seconds
- message "{@prefix} &3The game begins in &53 seconds" to loop-value
- wait 1 second
- message "{@prefix} &3The game begins in &52 seconds" to loop-value
- wait 1 second
- message "{@prefix} &3The game begins in &51 seconds" to loop-value
- wait 1 second
- message "{@prefix} &3The game begins!!!" to loop-value
- teleport loop-value to {spleef.location.snow}
- give {spleef.game.snow.list::*} a diamond spade
- set {player.%player%.status} to "snow"
- set {player.%loop-value%.status} to "snow"
- set {player.%player%.playing} to true
- set {player.%loop-value%.playing} to true
- set {player.%player%.waiting} to false
- set {player.%loop-value%.waiting} to false
- set {spleef.game.snow.ingame} to true
- add 1 to {player.%player%.games}
- add 1 to {player.%loop-value%.games}
- else:
- message "{@prefix} &6This game is &2Ingame&6!"
- stop
- else:
- message "{@prefix} &6You are already playing!"
- stop
- else:
- message "{@prefix} &6This game is full!"
- stop
- else:
- message "{@prefix} &6You are already playing!"
- stop
- else:
- message "{@prefix} &6The Snow-arena is not created!"
- stop
- arg 1 is "pizza":
- {spleef.game.pizza.created} is true:
- {player.%player%.status} is "null":
- {spleef.game.pizza.list} is not equal to {@maxspleefpizzaplayers}:
- {player.%player%.waiting} is false:
- {spleef.game.pizza.ingame} is false:
- set {player.%player%.status} to "pizza"
- heal the player
- invoke "Inv.Save" from loop-value
- clear player's inventory
- set player's health to 20
- set player's hunger to 20
- set {player.%player%.waiting} to true
- set level of player to 0
- set player's gamemode to survival
- add 1 to {spleef.game.pizza.list}
- add player to {spleef.game.pizza.list::*}
- teleport player to {spleef.location.waitlobby.pizza}
- message "{@prefix} &3You joined the queue!"
- wait 5 ticks
- message "{@prefix} &3%player% has joined the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- {spleef.game.pizza.list} = {@maxspleefpizzaplayers}:
- loop {spleef.game.pizza.list::*}:
- message "{@prefix} &3The game bigins in &510 seconds" to loop-value
- wait 5 seconds
- message "{@prefix} &3The game begins in &55 seconds" to loop-value
- wait 2 seconds
- message "{@prefix} &3The game begins in &53 seconds" to loop-value
- wait 1 second
- message "{@prefix} &3The game begins in &52 seconds" to loop-value
- wait 1 second
- message "{@prefix} &3The game begins in &51 seconds" to loop-value
- wait 1 second
- message "{@prefix} &3The game begins!!!" to loop-value
- teleport loop-value to {spleef.location.pizza}
- give {spleef.game.pizza.list::*} a diamond pickaxe
- set {player.%player%.status} to "pizza"
- set {player.%loop-value%.status} to "pizza"
- set {player.%player%.playing} to true
- set {player.%loop-value%.playing} to true
- set {player.%player%.waiting} to false
- set {player.%loop-value%.waiting} to false
- set {spleef.game.pizza.ingame} to true
- add 1 to {player.%player%.games}
- add 1 to {player.%loop-value%.games}
- else:
- message "{@prefix} &6This game is &2Ingame&6!"
- stop
- else:
- message "{@prefix} &6You are already playing!"
- stop
- else:
- message "{@prefix} &6This game is full!"
- stop
- else:
- message "{@prefix} &6You are already playing!"
- stop
- else:
- message "{@prefix} &6The Pizza-arena is not created!"
- stop
- arg 1 is not "snow" or "pizza":
- message "{@prefix} &6You can't join that arena!" to player
- stop
- command /lobby:
- aliases: /spll, /leave
- trigger:
- {player.%player%.status} is "snow":
- {player.%player%.playing} is true:
- {spleef.game.snow.list} is not 2 or 1:
- remove player from {spleef.game.snow.list::*}
- remove 1 from {spleef.game.snow.list}
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.playing} to false
- set {player.%player%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- {spleef.game.snow.list} is 1:
- message "{@prefix} &cYou're the last man standing"
- message "{@prefix} &cWait a second and you will be teleported back!"
- {spleef.game.snow.list} is 2:
- remove player from {spleef.game.snow.list::*}
- set {spleef.game.snow.list} to 0
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.status} to "null"
- loop {spleef.game.snow.list::*}:
- message "{@prefix} &2You won the game!!!" to loop-value
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 60 ticks
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 2 seconds
- message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
- wait 5 seconds
- teleport loop-value to {spleef.location.mainhub}
- set {player.%loop-value%.playing} to false
- add 1 to {player.%loop-value%.wins}
- remove loop-value from {spleef.game.snow.list::*}
- set {player.%loop-value%.status} to "null"
- set {player.%player%.playing} to false
- message "{@prefix} &cYou leave the game"
- wait 5 ticks
- message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- invoke "Spleef.RegenBlocks.Snow"
- wait 10 seconds
- set {spleef.game.snow.ingame} to false
- {player.%player%.waiting} is true:
- remove player from {spleef.game.snow.list::*}
- remove 1 from {spleef.game.snow.list}
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.waiting} to false
- message "{@prefix} &cYou leave the queue"
- set {player.%player%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%player% leaved the queue! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- {spleef.%player%.playing} is false:
- {spleef.%player%.waiting} is false:
- message "{@prefix} &3You are not playing a game of Spleef!"
- {player.%player%.status} is "pizza":
- {player.%player%.playing} is true:
- {spleef.game.pizza.list} is not 2 or 1:
- remove player from {spleef.game.pizza.list::*}
- remove 1 from {spleef.game.pizza.list}
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.playing} to false
- set {player.%player%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- {spleef.game.pizza.list} is 1:
- message "{@prefix} &cYou're the last man standing"
- message "{@prefix} &cWait a second and you will be teleported back!"
- {spleef.game.pizza.list} is 2:
- remove player from {spleef.game.pizza.list::*}
- set {spleef.game.pizza.list} to 0
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.status} to "null"
- loop {spleef.game.pizza.list::*}:
- message "{@prefix} &2You won the game!!!" to loop-value
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 60 ticks
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 2 seconds
- message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
- wait 5 seconds
- teleport loop-value to {spleef.location.mainhub}
- set {player.%loop-value%.playing} to false
- add 1 to {player.%loop-value%.wins}
- remove loop-value from {spleef.game.pizza.list::*}
- set {player.%loop-value%.status} to "null"
- set {player.%player%.playing} to false
- message "{@prefix} &cYou leave the game"
- wait 5 ticks
- message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- invoke "Spleef.RegenBlocks.Pizza"
- wait 10 seconds
- set {spleef.game.pizza.ingame} to false
- {player.%player%.waiting} is true:
- remove player from {spleef.game.pizza.list::*}
- remove 1 from {spleef.game.pizza.list}
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.waiting} to false
- message "{@prefix} &cYou leave the queue"
- set {player.%player%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%player% leaved the queue! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- {spleef.%player%.playing} is false:
- {spleef.%player%.waiting} is false:
- message "{@prefix} &3You are not playing a game of Spleef!"
- On quit:
- {player.%player%.status} is "snow":
- {player.%player%.playing} is true:
- {spleef.game.snow.list} is not 2 or 1:
- remove player from {spleef.game.snow.list::*}
- remove 1 from {spleef.game.snow.list}
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.playing} to false
- set {player.%player%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- {spleef.game.snow.list} is 1:
- message "{@prefix} &cYou're the last man standing"
- message "{@prefix} &cWait a second and you will be teleported back!"
- {spleef.game.snow.list} is 2:
- remove player from {spleef.game.snow.list::*}
- set {spleef.game.snow.list} to 0
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.status} to "null"
- loop {spleef.game.snow.list::*}:
- message "{@prefix} &2You won the game!!!" to loop-value
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 60 ticks
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 2 seconds
- message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
- wait 5 seconds
- teleport loop-value to {spleef.location.mainhub}
- set {player.%loop-value%.playing} to false
- add 1 to {player.%loop-value%.wins}
- remove loop-value from {spleef.game.snow.list::*}
- set {player.%loop-value%.status} to "null"
- set {player.%player%.playing} to false
- message "{@prefix} &cYou leave the game"
- wait 5 ticks
- message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- invoke "Spleef.RegenBlocks.Snow"
- wait 10 seconds
- set {spleef.game.snow.ingame} to false
- {player.%player%.waiting} is true:
- remove player from {spleef.game.snow.list::*}
- remove 1 from {spleef.game.snow.list}
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.waiting} to false
- message "{@prefix} &cYou leave the queue"
- set {player.%player%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%player% leaved the queue! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- {spleef.%player%.playing} is false:
- {spleef.%player%.waiting} is false:
- message "{@prefix} &3You are not playing a game of Spleef!"
- {player.%player%.status} is "pizza":
- {player.%player%.playing} is true:
- {spleef.game.pizza.list} is not 2 or 1:
- remove player from {spleef.game.pizza.list::*}
- remove 1 from {spleef.game.pizza.list}
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.playing} to false
- set {player.%player%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- {spleef.game.pizza.list} is 1:
- message "{@prefix} &cYou're the last man standing"
- message "{@prefix} &cWait a second and you will be teleported back!"
- {spleef.game.pizza.list} is 2:
- remove player from {spleef.game.pizza.list::*}
- set {spleef.game.pizza.list} to 0
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.status} to "null"
- loop {spleef.game.pizza.list::*}:
- message "{@prefix} &2You won the game!!!" to loop-value
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 60 ticks
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 2 seconds
- message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
- wait 5 seconds
- teleport loop-value to {spleef.location.mainhub}
- set {player.%loop-value%.playing} to false
- add 1 to {player.%loop-value%.wins}
- remove loop-value from {spleef.game.pizza.list::*}
- set {player.%loop-value%.status} to "null"
- set {player.%player%.playing} to false
- message "{@prefix} &cYou leave the game"
- wait 5 ticks
- message "{@prefix} &3%player% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- invoke "Spleef.RegenBlocks.Pizza"
- wait 10 seconds
- set {spleef.game.pizza.ingame} to false
- {player.%player%.waiting} is true:
- remove player from {spleef.game.pizza.list::*}
- remove 1 from {spleef.game.pizza.list}
- clear player's inventory
- invoke "Inv.Give" from player
- teleport player to {spleef.location.mainhub}
- set {player.%player%.waiting} to false
- message "{@prefix} &cYou leave the queue"
- set {player.%player%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%player% leaved the queue! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- {spleef.%player%.playing} is false:
- {spleef.%player%.waiting} is false:
- message "{@prefix} &3You are not playing a game of Spleef!"
- On death:
- {player.%victim%.status} is "snow":
- {player.%victim%.playing} is true:
- {spleef.game.snow.list} is not 2 or 1:
- remove victim from {spleef.game.snow.list::*}
- remove 1 from {spleef.game.snow.list}
- clear victim's inventory
- invoke "Inv.Give" from victim
- teleport victim to {spleef.location.mainhub}
- set {player.%victim%.playing} to false
- set {player.%victim%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%victim% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- {spleef.game.snow.list} is 1:
- message "{@prefix} &cYou're the last man standing"
- message "{@prefix} &cWait a second and you will be teleported back!"
- {spleef.game.snow.list} is 2:
- remove victim from {spleef.game.snow.list::*}
- set {spleef.game.snow.list} to 0
- clear victim's inventory
- invoke "Inv.Give" from victim
- teleport victim to {spleef.location.mainhub}
- set {player.%victim%.status} to "null"
- loop {spleef.game.snow.list::*}:
- message "{@prefix} &2You won the game!!!" to loop-value
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 60 ticks
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 2 seconds
- message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
- wait 5 seconds
- teleport loop-value to {spleef.location.mainhub}
- set {player.%loop-value%.playing} to false
- add 1 to {player.%loop-value%.wins}
- remove loop-value from {spleef.game.snow.list::*}
- set {player.%loop-value%.status} to "null"
- set {player.%victim%.playing} to false
- message "{@prefix} &cYou leave the game"
- wait 5 ticks
- message "{@prefix} &3%victim% is eliminated from the game! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- invoke "Spleef.RegenBlocks.Snow"
- wait 10 seconds
- set {spleef.game.snow.ingame} to false
- {player.%victim%.waiting} is true:
- remove victim from {spleef.game.snow.list::*}
- remove 1 from {spleef.game.snow.list}
- clear victim's inventory
- invoke "Inv.Give" from victim
- teleport victim to {spleef.location.mainhub}
- set {player.%victim%.waiting} to false
- message "{@prefix} &cYou leave the queue"
- set {player.%victim%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%victim% leaved the queue! &5%{spleef.game.snow.list}%/{@maxspleefsnowplayers}" to {spleef.game.snow.list::*}
- {spleef.%victim%.playing} is false:
- {spleef.%victim%.waiting} is false:
- message "{@prefix} &3You are not playing a game of Spleef!"
- {player.%victim%.status} is "pizza":
- {player.%victim%.playing} is true:
- {spleef.game.pizza.list} is not 2 or 1:
- remove victim from {spleef.game.pizza.list::*}
- remove 1 from {spleef.game.pizza.list}
- clear victim's inventory
- invoke "Inv.Give" from victim
- teleport victim to {spleef.location.mainhub}
- set {player.%victim%.playing} to false
- set {player.%victim%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%victim% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- {spleef.game.pizza.list} is 1:
- message "{@prefix} &cYou're the last man standing"
- message "{@prefix} &cWait a second and you will be teleported back!"
- {spleef.game.pizza.list} is 2:
- remove victim from {spleef.game.pizza.list::*}
- set {spleef.game.pizza.list} to 0
- clear victim's inventory
- invoke "Inv.Give" from victim
- teleport victim to {spleef.location.mainhub}
- set {player.%victim%.status} to "null"
- loop {spleef.game.pizza.list::*}:
- message "{@prefix} &2You won the game!!!" to loop-value
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 60 ticks
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored pink at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored red at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored blue at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored yellow at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored purple at loop-value with duration 1
- wait 1 tick
- launch creeper firework colored green at loop-value with duration 1
- wait 2 seconds
- message "{@prefix} &3We teleport you to the mainhub in &65 seconds!" to loop-value
- wait 5 seconds
- teleport loop-value to {spleef.location.mainhub}
- set {player.%loop-value%.playing} to false
- add 1 to {player.%loop-value%.wins}
- remove loop-value from {spleef.game.pizza.list::*}
- set {player.%loop-value%.status} to "null"
- set {player.%victim%.playing} to false
- message "{@prefix} &cYou leave the game"
- wait 5 ticks
- message "{@prefix} &3%victim% is eliminated from the game! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- invoke "Spleef.RegenBlocks.Pizza"
- wait 10 seconds
- set {spleef.game.pizza.ingame} to false
- {player.%victim%.waiting} is true:
- remove victim from {spleef.game.pizza.list::*}
- remove 1 from {spleef.game.pizza.list}
- clear victim's inventory
- invoke "Inv.Give" from victim
- teleport victim to {spleef.location.mainhub}
- set {player.%victim%.waiting} to false
- message "{@prefix} &cYou leave the queue"
- set {player.%victim%.status} to "null"
- wait 5 ticks
- message "{@prefix} &3%victim% leaved the queue! &5%{spleef.game.pizza.list}%/{@maxspleefpizzaplayers}" to {spleef.game.pizza.list::*}
- sub "Inv.Save":
- set {_value} to parameter 1
- set {_uuid} to "%uuid of {_value}%"
- set {_count} to 0
- loop 36 times:
- set {inv.%{_uuid}%.%{_count}%.main} to slot {_count} of {_value}'s inventory
- add 1 to {_count}
- set {inv.%{_uuid}%.helmet.main} to {_value}'s helmet
- set {inv.%{_uuid}%.chest.main} to {_value}'s chestplate
- set {inv.%{_uuid}%.legs.main} to {_value}'s leggings
- set {inv.%{_uuid}%.feet.main} to {_value}'s boots
- sub "Inv.Give":
- set {_value} to parameter 1
- set {_uuid} to "%uuid of {_value}%"
- set {_count} to 0
- loop 36 times:
- set slot {_count} of {_value}'s inventory to {inv.%{_uuid}%.%{_count}%.main}
- add 1 to {_count}
- set the helmet of {_value} to {inv.%{_uuid}%.helmet.main}
- set the chestplate of {_value} to {inv.%{_uuid}%.chest.main}
- set the leggings of {_value} to {inv.%{_uuid}%.legs.main}
- set the boots of {_value} to {inv.%{_uuid}%.feet.main}
- every 1 tick:
- {spleef.game.snow.list} is -1:
- set {spleef.game.snow.list} to 0
- stop
- every 2 seconds:
- loop all players:
- {player.%loop-player%.status} is not "null":
- set the loop-player's food level to player's food level - 3
- every 15 minutes:
- loop all players:
- message "{@prefix} &7This server use the plugin &6Spleef &7from &6SpigotMc&7!" to loop-player
- loop-player is op:
- message "{@prefix} &2Don't want to receive this &emessage&2? Ask the developer &eSaMaGamers &2for a special version without promotion!" to loop-player
- stop
Add Comment
Please, Sign In to add comment