# # :::::::: :::::::::: ::::::::: :::: ::: v1.9.1 # :+: :+: :+: :+: :+: :+:+: :+: # +:+ +:+ +:+ +:+ :+:+:+ +:+ # +#+ +#++:++# +#++:++#: +#+ +:+ +#+ # +#+ +#+ +#+ +#+ +#+ +#+#+# # #+# #+# #+# #+# #+# #+# #+#+# # ######## ########## ### ### ### #### # # ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ # # by Avaplays # TESTED MINECRAFT VERSION: 1.8 - 1.9 # # Please rate this resource at # ✰ ✰ ✰ ✰ ✰ http://bit.ly/2hbZ6lm ✰ ✰ ✰ ✰ ✰ # # ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ # options: prefix: §a[Cern] vault: false killstreak: true joinMessage: §7Player §a §7has joined the server! leaveMessage: §7Player §c §7has left the server! deathChest: false respawnSpawn: true messageTwice: true messageCooldown: true # ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ # # /!\ PLEASE DON'T CHANGE THE CODE /!\ # Maybe something get broken. # # ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ # on load: loop all players: set {cern::saveUUID::%UUID of loop-player%} to "%loop-player's name%" if {cern::balancePlayer::%UUID of loop-player%} is not set: set {cern::balancePlayer::%UUID of loop-player%} to 0 on quit: delete {cern::tellCooldown::%player%} delete {cern::godMode::%UUID of player%} delete {cern::vanishPlayer::%UUID of player%} set {_quitMessage} to "{@leaveMessage}" parsed as a text replace all "" with "%player's name%" in {_quitMessage} set quit message to "%coloured {_quitMessage}%" on join: set {cern::saveUUID::%UUID of player%} to "%player's name%" set {cern::saveIP::%UUID of player%} to "%ip-address of player%" if {cern::balancePlayer::%UUID of player%} is not set: set {cern::balancePlayer::%UUID of player%} to 0 set {_joinMessage} to "{@joinMessage}" parsed as a text replace all "" with "%player's name%" in {_quitMessage} set join message to "%coloured {_joinMessage}%" on damage: victim is a player: if {cern::godMode::%UUID of victim%} is set: cancel event if attacker is a player: send "{@prefix} §7That player maybe have god mode enabled." to attacker on respawn: if {@respawnSpawn} is true: teleport player to {cern::spawnLocation} on death: victim is a player: attacker is a player: if attacker's tool is set: set death message to "{@prefix} §7Player §b%victim% §7has been killed by §b%attacker% with §a%attacker's tool%§7." else: set death message to "{@prefix} §7Player §b%victim% §7has been killed by §b%attacker%§7." if {@killstreak} is true: add 1 to {cern::killStreak::%UUID of attacker%} if {cern::killStreak::%UUID of attacker%} is bigger than 1: send "{@prefix} §7You have a killstreak of §b%{cern::killStreak::%UUID of attacker%}%" to attacker if {cern::killStreak::%UUID of victim%} is bigger than 2: send "{@prefix} §7Attacker §b%attacker% §7ruined your kill streak!" to victim delete {cern::killStreak::%UUID of victim%} If {@deathChest} is true: set block at location of victim to chest loop drops: add loop-value to block at location of victim clear drops on sign change: if player have the permission "cern.signs.colours": loop 4 times: set line loop-value of event-block to "%coloured line loop-value of event-block%" command signedit [] []: aliases: se permission: cern.signedit permission message: {@prefix} §cYou don't have the permission for that command. trigger: if target block is not a sign: send "{@prefix} §7Please target a sign." stop if arg-1 is set: if "%arg-1%" regex matches "\d+": set {_l} to "%arg-1%" parsed as a number if {_l} is between 1 and 4: if arg-2 is set: set line {_l} of target block to coloured "%arg-2%" else: send "{@prefix} §7Usage: §a/signedit <§bline§a> <§btext§a>" else: send "{@prefix} §cInvalid line." else: send "{@prefix} §7Usage: §a/signedit <§bline§a> <§btext§a>" else: send "{@prefix} §7Usage: §a/signedit <§bline§a> <§btext§a>" on player start walking: if {cern::afk::%UUID of player%} is true: delete {cern::afk::%UUID of player%} send "{@prefix} §7Welcome back!" else: if {cern::afk::%UUID of player%} is set: delete {cern::afk::%UUID of player%} on player stop walking: if {cern::afk::%UUID of player%} is not set: set {cern::afk::%UUID of player%} to now else: if {cern::afk::%UUID of player%} is not true: if difference between {cern::afk::%UUID of player%} and now is bigger than 2 minutes: send "{@prefix} §7You're now away from keyboard." set {cern::afk::%UUID of player%} to true command afk: permission: cern.afk permission message: {@prefix} §cYou don't have the permission for that command. trigger: if {cern::afk::%UUID of player%} is set: if {cern::afk::%UUID of player%} is true: delete {cern::afk::%UUID of player%} send "{@prefix} §7Welcome back!" stop set {cern::afk::%UUID of player%} to true send "{@prefix} §7You're now away from keyboard." command killstreak []: aliases: ks permission: cern.killstreak permission message: {@prefix} §cYou don't have the permission for that command. trigger: if {@killstreak} is not true: send "{@prefix} §cKillstreaks are disabled." stop if arg is set: loop all players: if "%loop-player's name%" is equal to "%arg%": if {cern::killStreak::%UUID of loop-player%} is set: send "{@prefix} §7Player §b%arg% §7have a killstreak of §a%{cern::killStreak::%UUID of loop-player%}%§7." stop send "{@prefix} §cPlayer §b%arg% §chaven't a killstreak." stop send "{@prefix} §cPlayer §b%arg% §cis not online." else: send "{@prefix} §7Your killstreak: §a%{cern::killStreak::%UUID of player%}%" #every real second: # loop all players: # if difference between first login of loop-player and now is more than 8 hours: # set {cern::verified::%UUID of player%} to true command /cern []: trigger: if arg is set: send "§a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬§r%new line% " send " §a§lCern §7by §bAvaplays" send " §7§lVersion: §b1.9.1" send " %new line%§a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬§r" if arg is "1": send " %new line% §7Commands §8━ §7Page §b1 §7of §b6%new line% " send "§8⚝ §a/balance §a(<§bplayer§a>) §8━ §7Shows a players balance." send "§8⚝ §a/pay §a<§bamount§a> <§bplayer§a> §8━ §7Sends money to a player." send "§8⚝ §a/teleport §a(<§bplayer§a>) §8━ §7Teleport to a player or location." send "§8⚝ §a/tptoggle §a(<§bplayer§a>) §8━ §7Toggles a players teleportations." send "§8⚝ §a/setspawn §8━ §7Set the spawn location." send "§8⚝ §a/spawn §a(<§bplayer§a>) §8━ §7Teleport a player to spawn." send "§8⚝ §a/skull §a(<§bplayer§a>) §8━ §7Get a players skull." send "§8⚝ §a/ping §a(<§bplayer§a>) §8━ §7Shows a players ping." send "§8⚝ §a/suicide §8━ §7Commit suicide." send "§8⚝ §a/trash §8━ §7Opens a trash." else if arg is "2": send " %new line% §7Commands §8━ §7Page §b2 §7of §b6%new line% " send "§8⚝ §a/clear §a(<§bplayer§a>) §8━ §7Clear a players inventory." send "§8⚝ §a/clearchat §8━ §7Clear the chat." send "§8⚝ §a/kill §a(<§bplayer§a>) §8━ §7Kills a player." send "§8⚝ §a/fly §a(<§bon§a|§boff§a>) (<§bplayer§a>) §8━ §7Flight state." send "§8⚝ §a/god §a(<§bplayer§a>) §8━ §7Change a players god mode." send "§8⚝ §a/heal §a(<§bplayer§a>) §8━ §7Heal a player." send "§8⚝ §a/feed §a(<§bplayer§a>) §8━ §7Feed a player." send "§8⚝ §a/gamemode §a<§b0§a\§b1§a\§b2§a\§b3§a> (<§bplayer§a>) §8━ §7Game mode." send "§8⚝ §a/freeze §a(<§bplayer§a>) §8━ §7Freeze a player." send "§8⚝ §a/sethome §a(<§bstring§a>) §8━ §7Set home(s)." else if arg is "3": send " %new line% §7Commands §8━ §7Page §b3 §7of §b6%new line% " send "§8⚝ §a/home §a(<§bstring§a>) (<§bplayer§a>) §8━ §7Teleport to a home." send "§8⚝ §a/homes §a(<§bplayer§a>) §8━ §7Shows a players homes." send "§8⚝ §a/workbench §a(<§bplayer§a>) §8━ §7Open workbench to player." send "§8⚝ §a/setwarp §a<§bwarp§a> §8━ §7Set a warp." send "§8⚝ §a/delwarp §a<§bwarp§a> §8━ §7Delete a warp." send "§8⚝ §a/warp §a<§bwarp§a> (<§bplayer§a>) §8━ §7Teleport to warp." send "§8⚝ §a/warps §8━ §7List all warps." send "§8⚝ §a/killstreak §a(<§bplayer§a>) §8━ §7Shows killstreak." send "§8⚝ §a/break §8━ §7Break target block." send "§8⚝ §a/hat §8━ §7Set/remove hat." else if arg is "4": send " %new line% §7Commands §8━ §7Page §b4 §7of §b6%new line% " send "§8⚝ §a/kick §a<§bplayer§a> (<§breason§a>) §8━ §7Kick a player." send "§8⚝ §a/kickall §a(<§breason§a>) §8━ §7Kick all players." send "§8⚝ §a/tpa §a<§bplayer§a> §8━ §7Request teleport." send "§8⚝ §a/tpaccept §a<§bplayer§a> §8━ §7Accept teleportation." send "§8⚝ §a/vanish §a<§bplayer§a> §8━ §7Vanish a player." send "§8⚝ §a/msg §a<§bplayer§a> <§bmessage§a> §8━ §7Message a player." send "§8⚝ §a/reply §a<§bmessage§a> §8━ §7Reply." send "§8⚝ §a/invsee §a<§bplayer§a> §8━ §7Open a players inventory." send "§8⚝ §a/itemname §a<§bstring§a> §8━ §7Set a item's name." send "§8⚝ §a/itemlore §a<§bstring§a> §8━ §7Set a item's lore." else if arg is "5": send " %new line% §7Commands §8━ §7Page §b5 §7of §b6%new line% " send "§8⚝ §a/op §a<§bplayer§a> §8━ §7Op a player." send "§8⚝ §a/give <§bitem§a> <§bplayer§a> §8━ §7Give items." send "§8⚝ §a/ban §a<§bplayer§a> (<§breason§a>) §8━ §7Ban a player." send "§8⚝ §a/unban §a<§bplayer§a> §8━ §7Unban a player." send "§8⚝ §a/bans (<§bplayer§a>) §8━ §7Ban list and info." send "§8⚝ §a/banip §a<§baddress§a> (<§breason§a>) §8━ §7Ban ip-address." send "§8⚝ §a/unbanip §a<§baddress§a> §8━ §7Unban ip-address." send "§8⚝ §a/getip <§bplayer§a> §8━ §7Show a players ip-addres." send "§8⚝ §a/enchant <§benchantment§a> <§binteger§a> §8━ §7Enchant a tool." send "§8⚝ §a/disenchant §8━ §7Disenchant a tool." else if arg is "6": send " %new line% §7Commands §8━ §7Page §b6 §7of §b6%new line% " send "§8⚝ §a/afk §8━ §7Away from keyboard." else: send "{@prefix} §cInvalid page." send " %new line%§a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬§r" else: execute player command "/cern 1" function numberFormat(num: number) :: text: set {_return} to "%{_num}%" set {_length} to length of {_return} if {_length} >= 3: set {_mod} to {_length} mod 3 if {_mod} is 0: set {_groups::*} to groups 1 of {_return} matched to "([0-9]{3})" set {_return} to "%join {_groups::*} with "",""%" else: set {_1} to the first {_mod} characters of {_return} set {_2} to subtext of {_return} from characters ({_mod} + 1) to {_length} set {_groups::*} to groups 1 of {_2} matched to "([0-9]{3})" set {_return} to "%{_1}%,%join {_groups::*} with "",""%" return {_return} command balance []: permission: cern.balance permission message: {@prefix} §cYou don't have the permission for that command. aliases: /bal, /money, /cash trigger: if arg is set: if player have the permission "cern.balance.others": if {@vault} is not true: loop {cern::saveUUID::*}: if "%loop-value%" is equal to "%arg%": set {_balance} to numberFormat({cern::balancePlayer::%loop-index%}) send "{@prefix} §7Balance of §a%arg%§7: §f%{_balance}%§a$" stop send "{@prefix} §cThis player hasn't any cash." else: set {_p} to "%arg%" parsed as offline player set {_balance} to "%balance of {_p}%" parsed as a text replace all "$" with "" in {_balance} send "{@prefix} §7Balance of §a%arg%§7: §f%{_balance}%§a$" else: send "{@prefix} §cYou don't have the permission to see others balance." else: if {@vault} is not true: set {_balance} to numberFormat({cern::balancePlayer::%UUID of player%}) send "{@prefix} §7Your balance: §f%{_balance}%§a$" else: set {_balance} to "%balance of player%" parsed as a text replace all "$" with "" in {_balance} send "{@prefix} §7Your balance: §f%{_balance}%§a$" command enchant [] []: permission: cern.enchant permission message: {@prefix} §cYou don't have the permission for that command. trigger: if enchantment arg is set: set {_enchantment} to "%arg 1%" parsed as enchantment if {_enchantment} is an enchantment: if arg integer is set: if player's tool is set: set {_enchantment} to "%arg-1% %arg-2%" parsed as enchantment type enchant player's tool with {_enchantment} send "{@prefix} §7You enchanted your tool with §a%arg-1% %arg-2%§7." else: send "{@prefix} §7Please hold something in your hand." else: send "{@prefix} §7Nutzung: §a/enchant <§benchantment§a> <§binteger§a>" else: send "{@prefix} §7Nutzung: §a/enchant <§benchantment§a> <§binteger§a>" stop else: send "{@prefix} §7Nutzung: §a/enchant <§benchantment§a> <§binteger§a>" command disenchant: permission: cern.disenchant permission message: {@prefix} §cYou don't have the permission for that command. trigger: if player's tool is set: if player's tool is enchanted: send "{@prefix} §aSuccessfully removed enchantments." disenchant the player's tool else: send "{@prefix} §cYour tool isn't enchanted." else: send "{@prefix} §7Please hold something enchanted in your hand." command pay [] []: permission: cern.pay permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: if arg-2 is set: if arg-1 is greater than 1: if {cern::balancePlayer::%UUID of player%} is greater than or equal to arg-1: loop all players: if "%loop-player's name%" is equal to "%arg-2%": subtract arg-1 from {cern::balancePlayer::%UUID of player%} add arg-1 to {cern::balancePlayer::%UUID of loop-player%} set {_balance} to numberFormat(arg-1) send "{@prefix} §7You sent §f%{_balance}%§a$ §7to §b%arg-2%§7." to player send "{@prefix} §7You recieved §f%{_balance}%§a$ §7from §b%player's name%§7." to loop-player stop send "{@prefix} §cPlayer §b%arg-2% §cis not online." else: send "{@prefix} &cYou don't have enough money." else: send "{@prefix} §cYou cannot send negative quantities." else: send "{@prefix} §7Usage: §a/pay <§bamount§a> <§bplayer§a>" else: send "{@prefix} §7Usage: §a/pay <§bamount§a> <§bplayer§a>" command tp []: trigger: if arg is set: execute player command "/teleport %arg%" else: execute player command "/teleport" command getip []: permission: cern.ip permission message: {@prefix} §cYou don't have the permission for that command. aliases: ip trigger: if arg is set: set {_p} to "%arg%" parsed as offline player if {_p} is not online: loop {cern::saveUUID::*}: if "%loop-value%" is equal to "%arg%": if {cern::saveIP::%loop-index%} is set: send "{@prefix} §7Player §b%arg% §7last used ip-address: §a%{cern::saveIP::%loop-index%}%" stop send "{@prefix} §cThere isn't any ip-address logged for that player." else: send "{@prefix} §7Ip-address of §b%arg%§7: §a%ip-address of {_p}%" else: send "{@prefix} §7Your ip-address: §a%ip-address of player%" command teleport [] []: permission: cern.teleport permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: if arg-2 is set: if player doesn't have the permission "cern.teleport.others": send "{@prefix} §cYou doesn't have the permission to teleport players to other players." stop if "%arg-1%" regex matches "\d+,\d+,\d+": if "%arg-2%" regex matches "[a-zA-Z0-9_]+": if player doesn't have the permission "cern.teleport.others": send "{@prefix} §cYou can't teleport others to locations." stop set {_arg-1} to "%arg-1%" parsed as a text set {_splitt::*} to {_arg-1} split at "," loop 3 times: set {_splitt::%loop-value%} to "%{_splitt::%loop-value%}%" parsed as a number set {_world} to world of player set {_location} to location at {_splitt::1}, {_splitt::2}, {_splitt::3} in world {_world} set {_player} to "%arg-2%" parsed as offline player teleport {_player} to {_location} send "{@prefix} §7You have been teleported to §bx:%{_splitt::1}% y:%{_splitt::2}% z:%{_splitt::3}% §7in world §b%{_world}% §7by §b%player's name%§7." to {_player} send "{@prefix} §7You teleported §b%arg-2% §7to §bx:%{_splitt::1}% y:%{_splitt::2}% z:%{_splitt::3}% §7in world §b%{_world}%§7." else: send "{@prefix} §7Usage: §a/teleport <§bx,y,z§a|§bplayer§a> (<§bplayer§a>)" else: if "%arg-1%" regex matches "[a-zA-Z0-9_]+": set {_firstPlayer} to "%arg-1%" parsed as offline player set {_secondPlayer} to "%arg-2%" parsed as offline player if {_firstPlayer} is online: if {_secondPlayer} is online: teleport {_firstPlayer} to {_secondPlayer} send "{@prefix} §7You teleported §b%arg-1% §7to §b%arg-2%§7." send "{@prefix} §7Player §b%arg-1% §7have been teleported to you by §b%player's name%§7." to {_secondPlayer} send "{@prefix} §7You have been teleported by §b%player's name% §7to §b%arg-2%§7." to {_firstPlayer} else: send "{@prefix} §cPlayer §b%arg-2% §cis not online." else: send "{@prefix} §cPlayer §b%arg-1% §cis not online." else: send "{@prefix} §7Usage: §a/teleport <§bx,y,z§a|§bplayer§a> (<§bplayer§a>)" else: if "%arg-1%" regex matches "\d+,\d+,\d+": if player doesn't have the permission "cern.teleport.locations": send "{@prefix} §cYou can't teleport to locations." stop set {_arg-1} to "%arg-1%" parsed as a text set {_splitt::*} to {_arg-1} split at "," loop 3 times: set {_splitt::%loop-value%} to "%{_splitt::%loop-value%}%" parsed as a number set {_world} to world of player set {_location} to location at {_splitt::1}, {_splitt::2}, {_splitt::3} in world {_world} teleport player to {_location} send "{@prefix} §cSuccessfully teleported to §bx:%{_splitt::1}% y:%{_splitt::2}% z:%{_splitt::3}% §ain world §b%{_world}%§a." else: if "%arg-1%" regex matches "[a-zA-Z0-9_]+": loop all players: if "%loop-player's name%" is equal to "%arg-1%": if {cern::toggleTeleport::%UUID of loop-player%} is set: if player doesn't have the permission "cern.tptoggle.bypass": send "{@prefix} §cPlayer §b%arg-1% §chas disabled teleports!" stop teleport player to loop-player send "{@prefix} §aSuccesfully teleportet to player §b%arg-1%§a." send "{@prefix} §7Player §b%player's name% §7have been teleportet to you." to loop-player stop send "{@prefix} §cPlayer §b%arg-1% §cis not online." else: send "{@prefix} §7Usage: §a/teleport <§bx,y,z§a|§bplayer§a> (<§bplayer§a>)" else: send "{@prefix} §7Usage: §a/teleport <§bx,y,z§a|§bplayer§a> (<§bplayer§a>)" command tptoggle []: permission: cern.tptoggle permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if arg is "help": send "{@prefix} §7Usage: §a/tptoggle (<§bplayer§a>)" else: if "%arg-1%" regex matches "[a-zA-Z0-9_]+": if player doesn't have the permission "cern.tptoggle.others": send "{@prefix} §cYou can't toggle teleportations from other players." stop loop all players: if {cern::toggleTeleport::%UUID of loop-player%} is set: delete {cern::toggleTeleport::%UUID of loop-player%} send "{@prefix} §aYou allowed teleportations to §b%arg%§a." send "{@prefix} §7Player §b%player's name% §7allowed teleportations to you." to loop-player stop else: set {cern::toggleTeleport::%UUID of loop-player%} to true send "{@prefix} §cYou denied teleportations to §b%arg%§c." send "{@prefix} §7Player §b%player's name% §7denied teleportations to you." to loop-player stop send "{@prefix} §cPlayer §b%arg% §cis not online." else: send "{@prefix} §7Usage: §a/tptoggle (<§bplayer§a>)" else: if {cern::toggleTeleport::%UUID of player%} is set: delete {cern::toggleTeleport::%UUID of player%} send "{@prefix} §aYou allowed teleportations to you." else: set {cern::toggleTeleport::%UUID of player%} to true send "{@prefix} §cYou denied teleportations to you." command setspawn: permission: cern.setspawn permission message: {@prefix} §cYou don't have the permission for that command. trigger: set {cern::spawnLocation} to location of player send "{@prefix} §aSpawn successfully defined." command spawn []: permission: cern.spawn permission message: {@prefix} §cYou don't have the permission for that command. trigger: if {cern::spawnLocation} is set: if arg is set: if player doesn't have the permission "cern.spawn.others": send "{@prefix} §cYou can't teleport players to spawn." stop set {_player} to "%arg%" parsed as offline player if {_player} is online: teleport {_player} to {cern::spawnLocation} send "{@prefix} §aSuccessfully teleported §b%arg% §ato spawn!" send "{@prefix} §7You have been teleported from §b%player's name% §7to §aspawn§7!" to {_player} else: send "{@prefix} §cPlayer §b%arg% §cis not online." else: teleport player to {cern::spawnLocation} send "{@prefix} §aTeleportation successfully." else: send "{@prefix} §cSpawn location haven't been defined yet, please contact an admin." command skull []: permission: cern.skull permission message: {@prefix} §cYou don't have the permission for that command. aliases: head trigger: if arg is set: set {_player} to "%arg%" parsed as offline player if player have enough space for 1 of {_player}'s skull: add 1 of {_player}'s skull named "§b%arg%§a's Skull" to player's inventory send "{@prefix} §aSuccessfully recieved §b%arg%§a's skull." else: send "{@prefix} §cYou don't have enough space in your inventory!" else: send "{@prefix} §7Usage: §a/skull (<§bplayer§a>)" command ping []: permission: cern.ping permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if player doesn't have the permission "cern.ping.others": send "{@prefix} §cYou doesn't have the permission to ping other players." stop set {_player} to "%arg%" parsed as offline player if {_player} is online: send "{@prefix} §7Player §b%arg%'s §7Ping: §a%{_player}'s ping%" else: send "{@prefix} §cPlayer §b%arg% §cis not online." else: send "{@prefix} §7Your ping: §a%player's ping%" command suicide: permission: cern.suicide permission message: {@prefix} §cYou don't have the permission for that command. trigger: kill the player broadcast "{@prefix} §7Player §b%player's name% §7has committed suicide." command trash: aliases: disponsal permission: cern.trash permission message: {@prefix} §cYou don't have the permission for that command. trigger: open chest with 6 rows named "Trash" to player command clear []: aliases: clearinventory, ci permission: cern.clear permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if player doesn't have the permission "cern.clear.others": send "{@prefix} §7You doesn't have the permission to clear other players inventories." stop set {_player} to "%arg%" parsed as offline player if {_player} is online: clear {_player}'s inventory send "{@prefix} §7Player §b%player's name% §7cleared your inventory!" to {_player} send "{@prefix} §aSuccessfully cleared §b%arg%'s §ainventory." else: send "{@prefix} §cPlayer §b%arg% §cis not online." else: clear player's inventory send "{@prefix} §aSuccessfully cleared inventory." command kill []: permission: cern.kill permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: set {_player} to "%arg%" parsed as offline player if {_player} is online: kill {_player} broadcast "{@prefix} §7Player §b%arg% §7have been killed by command." else: send "{@prefix} §cPlayer §b%arg% §cis not online." else: kill the player broadcast "{@prefix} §7Player §b%player's name% §7have been killed by command." command heal []: permission: cern.heal permission message: {@prefix} §cYou don't have the permission for that command. trigger: set {_p} to player if arg is set: if player doesn't have the permission "cern.heal.others": send "{@prefix} §cYou don't have the permission to heal other players." stop set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online!" stop heal {_p} remove all potions from {_p} if arg is set: send "{@prefix} §aYou have been healed by §b%player's name%§a." to {_p} send "{@prefix} §aYou healed player §b%arg%§a." else: send "{@prefix} §aYou have been healed." command feed []: permission: cern.feed permission message: {@prefix} §cYou don't have the permission for that command. trigger: set {_p} to player if arg is set: if player doesn't have the permission "cern.feed.others": send "{@prefix} §cYou don't have the permission to feed other players." stop set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online!" stop set {_p}'s hunger bar to 20 if arg is set: send "{@prefix} §aYou have been feeded by §b%player's name%§a." to {_p} send "{@prefix} §aYou feeded player §b%arg%§a." else: send "{@prefix} §aYou have been feeded." command freeze []: permission: cern.freeze permission message: {@prefix} §cYou don't have the permission for that command. trigger: set {_p} to player if arg is set: if player doesn't have the permission "cern.freeze.others": send "{@prefix} §cYou don't have the permission to freeze other players." stop set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online!" stop if {_p}'s freeze state is false: set {_p}'s freeze state to true if arg is set: send "{@prefix} §aYou freezed §b%arg%§a." send "{@prefix} §aYou have been freezed by §b%player's name%§a." to {_p} else: send "{@prefix} §aYou have been freezed." else: set {_p}'s freeze state to false if arg is set: send "{@prefix} §aYou unfrozen §b%arg%§a." send "{@prefix} §aYou have been unfrozen by §b%player's name%§a." to {_p} else: send "{@prefix} §aYou have been unfrozen." command god []: permission: cern.god permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if player doesn't have the permission "cern.god.others": send "{@prefix} §cYou can't change others god mode!" stop loop all players: if "%loop-player's name%" is equal to "%arg%": if {cern::godMode::%UUID of loop-player%} is not set: set {cern::godMode::%UUID of loop-player%} to true send "{@prefix} §aGod mode enabled for §b%arg%§a." send "{@prefix} §aPlayer §b%player's name% §ahave enabled your god mode." to loop-player stop delete {cern::godMode::%UUID of loop-player%} send "{@prefix} §cGod mode disabled for §b%arg%§c." send "{@prefix} §cPlayer §b%player's name% §chave disabled your god mode." to loop-player stop send "{@prefix} §cPlayer §b%arg% §cis not online." else: if {cern::godMode::%UUID of player%} is not set: set {cern::godMode::%UUID of player%} to true send "{@prefix} §aGod mode enabled." else: delete {cern::godMode::%UUID of player%} send "{@prefix} §cGod mode disabled." command gm []: trigger: if arg is set: execute player command "/gamemode %arg%" else: execute player command "/gamemode" command gms []: permission: cern.gamemode permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: execute player command "/gamemode 0 %arg-1%" else: execute player command "/gamemode 0" command gmc []: permission: cern.gamemode permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: execute player command "/gamemode 1 %arg-1%" else: execute player command "/gamemode 1" command gma []: permission: cern.gamemode permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: execute player command "/gamemode 2 %arg-1%" else: execute player command "/gamemode 2" command gmsp []: permission: cern.gamemode permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: execute player command "/gamemode 3 %arg-1%" else: execute player command "/gamemode 3" command gamemode [] []: permission: cern.gamemode permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: set {_p} to player if arg-2 is set: if player doesn't have the permission "cern.gamemode.others": send "{@prefix} §cYou don't have the permission to set others game mode." stop set {_p} to "%arg-2%" parsed as offline player if {_p} is not online: send "{@prefix} §cSpieler §b%arg-2% §cis not online." stop if arg-1 is "0" or "s" or "survival": set {_p}'s game mode to survival if arg-2 is set: send "{@prefix} §aYou have updated §b%arg-2%'s §agame mode to Survival." send "{@prefix} §aYour game mode have updated to Survival by §b%player's name%§a." else: send "{@prefix} §aYou have updated your game mode to Survival." else if arg-1 is "1" or "c" or "creative": set {_p}'s game mode to creative if arg-2 is set: send "{@prefix} §aYou have updated §b%arg-2%'s §agame mode to Creative." send "{@prefix} §aYour game mode have updated to Creative by §b%player's name%§a." else: send "{@prefix} §aYou have updated your game mode to Creative." else if arg-1 is "2" or "a" or "adventure": set {_p}'s game mode to adventure if arg-2 is set: send "{@prefix} §aYou have updated §b%arg-2%'s §agame mode to Adventure." send "{@prefix} §aYour game mode have updated to Adventure by §b%player's name%§a." else: send "{@prefix} §aYou have updated your game mode to Adventure." else if arg-1 is "3" or "sp" or "spectator": set {_p}'s game mode to spectator if arg-2 is set: send "{@prefix} §aYou have updated §b%arg-2%'s §agame mode to Spectator." send "{@prefix} §aYour game mode have updated to Spectator by §b%player's name%§a." else: send "{@prefix} §aYou have updated your game mode to Spectator." else: send "{@prefix} §7Usage: §a/gamemode <§b0§a|§b1§a|§b2§a|§b3§a> (<§bplayer§a>)" command sethome []: permission: cern.sethome permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: if "%arg-1%" regex matches "[a-zA-Z0-9_]+": if player doesn't have the permission "cern.sethome.invinite": if size of {cern::homesPlayer::%UUID of player%::%arg%} + 1 is bigger than 3: send "{@prefix} §cYou don't have the permission to create more homes." stop set {cern::homesPlayer::%UUID of player%::%arg%} to location of player send "{@prefix} §aHome %arg% successfully set." else: send "{@prefix} §cInvalid home name." else: if size of {cern::homesPlayer::%UUID of player%::*} is greater than 1: send "{@prefix} §7Usage: §a/sethome <§bstring§a>" else: set {cern::homesPlayer::%UUID of player%::home} to location of player send "{@prefix} §aHome successfully set." command home [] []: permission: cern.home permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: if arg-2 is set: if player doesn't have the permission "cern.home.others": send "{@prefix} §cYou don't have the permission to teleport to others home." stop loop {cern::saveUUID::*}: if "%loop-value%" is equal to "%arg-2%": if {cern::homesPlayer::%loop-index%::%arg-1%} is set: teleport player to {cern::homesPlayer::%loop-index%::%arg-1%} send "{@prefix} §aSuccessfully teleportet to home %arg-1% of §b%arg-2%§a." stop send "{@prefix} §cPlayer §b%arg-2% §cdoesn't have a home named §a%arg-1%§c." stop else: if {cern::homesPlayer::%UUID of player%::%arg-1%} is set: teleport player to {cern::homesPlayer::%UUID of player%::%arg-1%} send "{@prefix} §aSuccessfully teleportet to home %arg-1%." else: loop all players: if "%loop-player's name%" is equal to "%arg-1%": if size of {cern::homesPlayer::%UUID of loop-player%::*} is greater than 1: send "{@prefix} §7Usage: §a/home (<§bstring§a>) (<§bplayer§a>)" stop loop {cern::homesPlayer::%UUID of loop-player%::*}: teleport player to {cern::homesPlayer::%UUID of loop-player%::%loop-index%} send "{@prefix} §aSuccessfully teleportet to home %loop-index% of §b%loop-player%§a." stop send "{@prefix} §cYou don't have a home named by §a%arg-1%§c." else: if size of {cern::homesPlayer::%UUID of player%::*} is greater than 1: send "{@prefix} §7Usage: §a/home (<§bstring§a>) (<§bplayer§a>)" else: loop {cern::homesPlayer::%UUID of player%::*}: teleport player to {cern::homesPlayer::%UUID of player%::%loop-index%} send "{@prefix} §aSuccessfully teleportet to home %loop-index%." stop send "{@prefix} §cYou don't have a home yet." command homes []: permission: cern.homes permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if player doesn't have the permission "cern.homes.others": send "{@prefix} §cYou don't have the permission to see others homes." stop loop {cern::saveUUID::*}: if "%loop-value%" is equal to "%arg%": loop {cern::homesPlayer::%loop-index%::*}: add loop-index-2 to {_homes::*} send "{@prefix} §b%arg%'s §7homes: §a%{_homes::*}%" stop send "{@prefix} §cPlayer §b%arg% §chasn't any homes yet." else: loop {cern::homesPlayer::%UUID of player%::*}: add loop-index-1 to {_homes::*} send "{@prefix} §7Your homes: §a%{_homes::*}%" command fly [] []: permission: cern.fly permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: if arg-1 is "on" or "off": set {_p} to player if arg-2 is set: if player doesn't have the permission "cern.fly.others": send "{@prefix} §cYou can't change the flight state of another player." stop set {_p} to "%arg-2%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg-2% §cis not online." stop if arg-1 is "on": if {_p}'s flight state is true: if arg-2 is set: send "{@prefix} §cPlayer §b%arg-2%'s §cflight state is already enabled." else: send "{@prefix} §cYou're flight state is already enabled." else: set {_p}'s flight state to true if arg-2 is set: send "{@prefix} §aFlight mode enabled for §b%arg-2%§c." send "{@prefix} §7Your flight mode has been enabled by §b%player's name%§7." to {_p} else: send "{@prefix} §aFlight mode enabled." else if arg-1 is "off": if {_p}'s flight state is false: if arg-2 is set: send "{@prefix} §cPlayer §b%arg-2%'s §cflight state is already disabled." else: send "{@prefix} §cYou're flight state is already disabled." else: set {_p}'s flight state to false if arg-2 is set: send "{@prefix} §aFlight mode disabled for §b%arg-2%§c." send "{@prefix} §7Your flight mode has been disabled by §b%player's name%§7." to {_p} else: send "{@prefix} §aFlight mode disabled." else: if arg-2 is set: send "{@prefix} §7Usage: §a/fly (<§bon§a|§boff§a>) (<§bplayer§a>)" else: if player doesn't have the permission "cern.fly.others": send "{@prefix} §cYou can't change the flight state of another player." stop set {_p} to "%arg-1%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg-1% §cis not online." stop if {_p}'s flight state is true: execute player command "/fly off %arg-1%" else: execute player command "/fly on %arg-1%" else: if player's flight state is true: execute player command "/fly off" else: execute player command "/fly on" command workbench []: aliases: wb permission: cern.workbench permission message: {@prefix} §cYou don't have the permission for that command. trigger: set {_p} to player if arg is set: if player doesn't have the permission "cern.workbench.others": send "{@prefix} §cYou don't have the permission to open workbench for other players." stop set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online." stop open workbench to {_p} command setwarp []: permission: cern.setwarp permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if "%arg%" regex matches "[a-zA-Z0-9_]+": set {cern::warpLocation::%arg%} to location of player if {cern::warpLocation::%arg%} is not set: send "{@prefix} §aWarp %arg% successfully created." else: send "{@prefix} §aWarp %arg% successfully replaced." else: send "{@prefix} §cInvalid warp name." else: send "{@prefix} §7Usage: §a/setwarp <§bwarp§a>" command delwarp []: permission: cern.delwarp permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if {cern::warpLocation::%arg%} is set: delete {cern::warpLocation::%arg%} send "{@prefix} §aSuccessfully deleted warp %arg%." else: send "{@prefix} §cWarp §a%arg% §cdoesn't exist." else: send "{@prefix} §7Usage: §a/delwarp <§bwarp§a>" command warp [] []: permission: cern.warp permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: set {_p} to player if arg-2 is set: if player doesn't have the permission "cern.warps.others": send "{@prefix} §cYou doesn't have the permission to warp other players." stop set {_p} to "%arg-2%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg-2% §cis not online!" stop if {cern::warpLocation::%arg-1%} is set: teleport {_p} to {cern::warpLocation::%arg-1%} if arg-2 is set: send "{@prefix} §aSuccessfully warped §b%arg-2% §ato %arg-1%." send "{@prefix} §7You have been warped to §a%arg-1% §7by §b%player's name%§7." to {_p} else: send "{@prefix} §aSuccessfully warped to %arg-1%." else: send "{@prefix} §cWarp §a%arg-1% §cdoesn't exist." else: send "{@prefix} §7Usage: §a/warp <§bwarp§a>" command warps: permission: cern.warps permission message: {@prefix} §cYou don't have the permission for that command. trigger: if {cern::warpLocation::*} is set: loop {cern::warpLocation::*}: add loop-index to {_warps::*} send "{@prefix} §7Warps: §a%{_warps::*}%" else: send "{@prefix} §cThere aren't any warps set yet." command break: permission: cern.break permission message: {@prefix} §cYou don't have the permission for that command. trigger: if target block is set: set target block to air send "{@prefix} §aSuccessfully breaked %target block%!" else: send "{@prefix} §cTarget is not a block" command hat: permission: cern.hat permission message: {@prefix} §cYou don't have the permission for that command. trigger: if player's tool is set: if player's helmet is set: set player's tool to player's helmet set player's helmet to player's tool send "{@prefix} §aHat successfully equiped." else: if player's helmet is set: if player have enough space for player's helmet: set player's tool to player's helmet set player's helmet to air send "{@prefix} §aSuccessfully removed your hat." else: send "{@prefix} §cYou can't remove your hat once your inventory is full." command kick [] []: permission: cern.kick permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: set {_p} to "%arg-1%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg-1% §cis not online." stop if {_p} have the permission "*": send "{@prefix} §cYou can't kick that player." stop if arg-2 is set: broadcast "{@prefix} §7Player §b%arg-1% §7have been kicked by §b%player's name% with reason: §a%arg-2%" kick {_p} due to "{@prefix}%new line% %new line%§7You have been kicked by §b%player's name% with reason:%new line%§a%arg-2%" send "{@prefix} §aSuccessfully kicked §b%arg-1% §awith reason: %arg-2%" else: broadcast "{@prefix} §7Player §b%arg-1% §7have been kicked by §b%player's name% §7with no reason." kick {_p} due to "{@prefix}%new line% %new line%§7You have been kicked by §b%player's name% §7with no reason." send "{@prefix} §aSuccessfully kicked §b%arg-1% §awith no reason." else: send "{@prefix} §7Usage: §a/kick <§bplayer§a> (<§breason§a>)" on connect: wait a tick set {_IP} to "%player's ip-address%" parsed as a text if {cern::bannedIP::%{_IP}%} is set: if {cern::bannedIP::%{_IP}%} is true: kick player due to "{@prefix}§7Your ip-address have been banned permanently." else: kick player due to "{@prefix}§7Your ip-address have been banned permanently with reason:%new line%§a%{cern::bannedIP::%{_IP}%}%" command banip [] []: permission: cern.banip permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: if "%arg-1%" regex matches "\d+.\d+.\d+.\d+": set {_IP} to "%arg-1%" parsed as a text set {cern::ip-bannedByPlayer::%arg-1%} to "%player's name%" if arg-2 is not set: set {cern::bannedIP::%{_IP}%} to true broadcast "{@prefix} §7Ip-address §a%arg-1% §7have been banned with no reason." else: set {cern::bannedIP::%{_IP}%} to "%arg-2%" broadcast "{@prefix} §7Ip-address §a%arg-1% §7have been banned due to §a%arg-2%§7." else: send "{@prefix} §7Usage: §a/banip <§baddress§a> (<§breason§a>)" else: send "{@prefix} §7Usage: §a/banip <§baddress§a> (<§breason§a>)" command unbanip []: permission: cern.unbanip permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: if "%arg-1%" regex matches "\d+.\d+.\d+.\d+": set {_IP} to "%arg-1%" parsed as a text if {cern::bannedIP::%{_IP}%} is set: delete {cern::bannedIP::%{_IP}%} send "{@prefix} §7Unbanned ip-adress: §a%arg-1%" broadcast "{@prefix} §7Player §b%player's name% §7unbanned ip-adress: §a%arg-1%" else: send "{@prefix} §7That ip-address is not banned." else: send "{@prefix} §7Usage: §a/unbanip <§baddress§a>" else: send "{@prefix} §7Usage: §a/unbanip <§baddress§a>" on connect: wait a tick set {_p} to "%player's name%" parsed as offline player if {cern::bannedName::%{_p}%} is set: if {cern::bannedName::%{_p}%} is true: set {cern::bannedPlayer::%UUID of player%} to true else: set {cern::bannedPlayer::%UUID of player%} to "%{cern::bannedName::%{_p}%}%" delete {cern::bannedName::%{_p}%} if {cern::bannedPlayer::%UUID of player%} is set: if {cern::bannedPlayer::%UUID of player%} is true: kick player due to "{@prefix}%new line%§7You have been banned permanently by §b%player's name%§7." else: kick player due to "{@prefix}%new line%§7You have been banned permanently by §b%player's name% §7with reason:%new line%§a%{cern::bannedPlayer::%UUID of player%}%" command ban [] []: permission: cern.ban permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: loop all players: if "%loop-player's name%" is equal to "%arg-1%": if loop-player have the permission "*": send "{@prefix} §cYou can't ban that player." send "{@prefix} §7Player §b%player's name% §7tryed to ban you." to loop-player stop set {cern::bannedByPlayer::%UUID of loop-player%} to "%player's name%" if arg-2 is set: set {cern::bannedPlayer::%UUID of loop-player%} to "%arg-2%" kick loop-player due to "{@prefix}%new line%§7You have been banned permanently by §b%player's name% §7with reason:%new line%§a%arg-2%" broadcast "{@prefix} §7Player §b%player's name% §7banned §b%loop-player's name% §7due to §a%arg-2%§7." send "{@prefix} §7You banned §b%loop-player's name% §7due to §a%arg-2%§7." else: set {cern::bannedPlayer::%UUID of loop-player%} to true kick loop-player due to "{@prefix}%new line%§7You have been banned permanently by §b%player's name%§7." broadcast "{@prefix} §7Player §b%player's name% §7banned §b%loop-player's name% §7with no reason." send "{@prefix} §7You banned §b%loop-player's name% §7with no reason." stop set {_p} to "%arg-1%" parsed as offline player if arg-2 is set: set {cern::bannedName::%{_p}%} to "%arg-2%" if {_p} is online: kick {_p} due to "{@prefix}%new line%§7You have been banned permanently by reason:%new line%§a%arg-2%" broadcast "{@prefix} §7Player §b%player's name% §7banned §b%arg-1% §7due to §a%arg-2%§7." send "{@prefix} §7You banned §b%arg-1% §7due to §a%arg-2%§7." else: if {_p} is online: kick {_p} due to "{@prefix}%new line%§7You have been banned permanently with no reason" set {cern::bannedName::%{_p}%} to true broadcast "{@prefix} §7Player §b%player's name% §7banned §b%arg-1% §7with no reason." send "{@prefix} §7You banned §b%arg-1% §7with no reason." else: send "{@prefix} §7Usage: §a/ban <§bplayer§a> (<§breason§a>)" command unban []: permission: cern.unban permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: set {_p} to "%arg%" parsed as offline player loop {cern::saveUUID::*}: if {cern::bannedPlayer::%loop-index%} is set: delete {cern::bannedName::%{_p}%} delete {cern::bannedPlayer::%loop-index%} delete {cern::bannedByPlayer::%loop-index%} send "{@prefix} §7You unbanned player §b%arg-1%§7." broadcast "{@prefix} §7Player §b%player's name% §7unbanned §b%arg-1%§7." stop if {cern::bannedName::%{_p}%} is set: delete {cern::bannedName::%{_p}%} send "{@prefix} §7You unbanned player §b%arg-1%§7." broadcast "{@prefix} §7Player §b%player's name% §7unbanned §b%arg-1%§7." stop send "{@prefix} §7Player §b%arg-1% §7is not banned." else: send "{@prefix} §7Usage: §a/unban <§bplayer§a>" command bans []: permission: cern.bans permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: loop {cern::bannedPlayer::*}: if "%{cern::saveUUID::%loop-index%}%" is equal to "%arg%": if {cern::bannedPlayer::%loop-index%} is true: send "{@prefix} §7Player §b%arg% §7has been banned by §b%{cern::bannedByPlayer::%loop-index%}% §7with no reason." stop else: send "{@prefix} §7Player §b%arg% §7has been banned by §b%{cern::bannedByPlayer::%loop-index%}% §7due to %{cern::bannedPlayer::%loop-index%}%§7." stop send "{@prefix} §7Is banned with no reason by unknown." stop send "{@prefix} §7Player §b%arg% §7is not banned." else: loop {cern::bannedPlayer::*}: add "%{cern::saveUUID::%loop-index%}%" to {_bans::*} send "{@prefix} §7Banned players: §a%{_bans::*}%" command kickall []: permission: cern.kickall permission message: {@prefix} §cYou don't have the permission for that command. trigger: if number of all players is bigger than 1: loop all players: if loop-player is not player: if arg is set: kick loop-player due to "{@prefix}%new line% %new line%§7All players have been kicked with reason:%new line%§a%arg%" else: kick loop-player due to "{@prefix}%new line% %new line%§7All players have been kicked with no reason." if arg is set: send "{@prefix} §7You kicked all players with reason §a%arg%§7." else: send "{@prefix} §7You kicked all players." else: send "{@prefix} §cThere aren't any players to kick." command tpa []: permission: cern.tpa permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: loop all players: if "%loop-player's name%" is equal to "%arg%": if {cern::tpaRequest::%UUID of loop-player%::%UUID of player%} is set: if difference between {cern::tpaRequest::%UUID of loop-player%::%UUID of player%} and now is less than 60 seconds: send "{@prefix} §cYou already sended a request to §b%arg%§c." stop set {cern::tpaRequest::%UUID of loop-player%::%UUID of player%} to now send "{@prefix} §aSuccessfully requestet teleport to §b%arg%§a." send "{@prefix} §7Player §b%player's name% §7want's to teleport to you." to loop-player send "{@prefix} §7Type §a/tpaccept <§bplayer§a> §7to accept." to loop-player while {cern::tpaRequest::%UUID of loop-player%::%UUID of player%} is set: wait a tick if difference between {cern::tpaRequest::%UUID of loop-player%::%UUID of player%} and now is bigger than 60 seconds: delete {cern::tpaRequest::%UUID of loop-player%::%UUID of player%} send "{@prefix} §cTeleport request to §b%loop-player% §cexpired." send "{@prefix} §cRequest of §b%player's name% §cexpired." to loop-player set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online." stop else: send "{@prefix} §7Usage: §a/tpa <§bplayer§a>" on join: loop all players: if {cern::vanishPlayer::%UUID of loop-player%} is set: hide loop-player from player command vanish []: permission: cern.vanish permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online." stop loop all players: if "%loop-player's name%" is equal to "%arg%": if {cern::vanishPlayer::%UUID of loop-player%} is set: send "{@prefix} §aSuccessfully unvanished §b%arg%§a." send "{@prefix} §aYou have been unvanished by §b%player's name%§a." to loop-player delete {cern::vanishPlayer::%UUID of loop-player%} reveal loop-player from all players else: send "{@prefix} §aSuccessfully vanished §b%arg%§a." send "{@prefix} §aYou have been vanished by §b%player's name%§a." to loop-player set {cern::vanishPlayer::%UUID of loop-player%} to true hide loop-player from all players else: if {cern::vanishPlayer::%UUID of player%} is set: send "{@prefix} §aVanish successfully disabled." delete {cern::vanishPlayer::%UUID of player%} reveal player from all players else: send "{@prefix} §aVanish successfully enabled." set {cern::vanishPlayer::%UUID of player%} to true hide player from all players command tpaccept []: permission: cern.tpaccept permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: loop all players: if "%loop-player's name%" is equal to "%arg%": if {cern::tpaRequest::%UUID of player%::%UUID of loop-player%} is set: if difference between {cern::tpaRequest::%UUID of player%::%UUID of loop-player%} and now is less than 60 seconds: delete {cern::tpaRequest::%UUID of player%::%UUID of loop-player%} teleport loop-player to player send "{@prefix} §aRequest of §b%loop-player's name% §aaccepted." send "{@prefix} §aPlayer §b%player's name% §ahave accepted your request." to loop-player stop send "{@prefix} §cRequest expired." stop send "{@prefix} §cPlayer §b%loop-player's name% §cdidn't make a request." stop send "{@prefix} §cPlayer §b%arg% §cis not online." stop else: send "{@prefix} §7Usage: §a/tpaccept <§bplayer§a>" command w []: trigger: if arg is set: execute player command "/tell %arg%" else: execute player command "/tell" command whisper []: trigger: if arg is set: execute player command "/tell %arg%" else: execute player command "/tell" command tell [] []: aliases: msg permission: cern.tell permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg-1 is set: if arg-2 is set: set {_p} to "%arg-1%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg-1% §cis not online." stop if {cern::tellCooldown::%player%} is set: if difference between {cern::tellCooldown::%player%} and now is less than 3 seconds: send "{@prefix} §7Please wait some seconds before you send a message again." stop send "§a<§b%player's name% §ato §bme§a> §f%arg-2%" to {_p} send "§a<§bme §ato §b%arg-1%§a> §f%arg-2%" set {cern::tellCooldown::%player%} to now loop all players: if "%arg-1%" is equal to "%loop-player's name%": set {cern::replyPartner::%player%} to loop-player set {cern::replyPartner::%loop-player%} to player else: send "{@prefix} §7Usage: §a/msg <§bplayer§a> <§bmessage§a>" else: send "{@prefix} §7Usage: §a/msg <§bplayer§a> <§bmessage§a>" command reply []: aliases: r permission: cern.reply permission message: {@prefix} §cYou don't have the permission for that command. trigger: if {cern::replyPartner::%player%} is set: set {_p} to "%{cern::replyPartner::%player%}%" parsed as offline player if {_p} is not online: send "{@prefix} §cThere is no chat partner to reply." stop if {cern::tellCooldown::%player%} is set: if difference between {cern::tellCooldown::%player%} and now is less than 3 seconds: send "{@prefix} §7Please wait some seconds before you send a message again." stop if arg is set: set {cern::tellCooldown::%player%} to now send "§a<§b%player's name% §ato §bme§a> §f%arg-1%" to {_p} send "§a<§bme §ato §b%{cern::replyPartner::%player%}%§a> §f%arg-1%" loop all players: if "%{cern::replyPartner::%player%}%" is equal to "%loop-player's name%": set {cern::replyPartner::%player%} to loop-player set {cern::replyPartner::%loop-player%} to player else: send "{@prefix} §7Usage: §a/reply <§bmessage§a>" else: send "{@prefix} §cThere is no chat partner to reply." command invsee []: permission: cern.invsee permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online." stop open {_p}'s inventory for the player else: send "{@prefix} §7Usage: §a/invsee <§bplayer§a>" command itemname []: permission: cern.itemname permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if length of arg is bigger than 32: send "{@prefix} §cToo large item name." stop if player's tool is not air: set name of player's tool to "%coloured arg%" else: send "{@prefix} §7You're holding air." else: send "{@prefix} §7Usage: §a/itemname <§bstring§a>" command itemlore []: permission: cern.itemlore permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: if player's tool is not air: set lore of player's tool to "%coloured arg%" else: send "{@prefix} §7You're holding air." else: send "{@prefix} §7Usage: §a/itemlore <§bstring§a>" command op []: permission: cern.op permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg is set: set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online." stop op {_p} send "{@prefix} §eYou are now Op!" to {_p} send "{@prefix} §ePlayer §b%arg% §eis now Op!" else: send "{@prefix} §7Usage: §a/op <§bplayer§a>" command me []: permission: cern.me permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg is set: broadcast "§a* §b%player's name% §a%arg%" else: send "{@prefix} §7Usage: §a/me <§bmessage§a>" command say []: permission: cern.say permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg is set: if executor is console: broadcast "§a[Server] §f%arg%" else: broadcast "§a[%player's name%] §f%arg%" else: send "{@prefix} §7Usage: §a/say <§bmessage§a>" command tree: permission: cern.tree permission message: {@prefix} §7You don't have the permission for that command. trigger: if target block is grass or dirt: grow tree of type any tree above the targeted block send "{@prefix} §aYou growed a tree!" else: send "{@prefix} §7Please target grass or dirt to summon trees." command repair: permission: cern.repair permission message: {@prefix} §7You don't have the permission for that command. trigger: if player's tool is air: send "{@prefix} §7Please hold something." else: repair tool of player send "{@prefix} §aSuccessfully repaired §a%player's tool%§a." command sun: aliases: sunny permission: cern.weather permission message: {@prefix} §7You don't have the permission for that command. trigger: execute player command "weather sun" command rain: aliases: rainy, raining permission: cern.weather permission message: {@prefix} §7You don't have the permission for that command. trigger: execute player command "weather rain" command storm: aliases: thunderstorm, thundering permission: cern.weather permission message: {@prefix} §7You don't have the permission for that command. trigger: execute player command "weather storm" command weather []: permission: cern.weather permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg is set: if arg is "clear" or "sun" or "sunny": set weather to clear send "{@prefix} §7Set weater to §asun§7." else if arg is "rain", "rainy" or "raining": set weather to rain send "{@prefix} §7Set weater to §arain§7." else if arg is "storm", "thunder", "thundering" or "thunderstorm": set weather to thunder send "{@prefix} §7Set weater to §astorm§7." else: send "{@prefix} §7Usage: §a/weather <§bsun§a|§brain§a|§bstorm§a>" else: send "{@prefix} §7Usage: §a/weather <§bsun§a|§brain§a|§bstorm§a>" command surface: aliases: top permission: cern.surface permission message: {@prefix} §7You don't have the permission for that command. trigger: set {_loc} to location of player set y-coordinate of {_loc} to 257 loop 256 times: remove 1 from the y-coordinate of {_loc} if block at {_loc} is not a block: teleport player to block above {_loc} stop loop send "{@prefix} §aTeleported to the top most block at your location." stop send "{@prefix} §7Already reached the surface." command jump: permission: cern.jump permission message: {@prefix} §7You don't have the permission for that command. trigger: if target block is set: teleport player to target block send "{@prefix} §7Jumped." else: send "{@prefix} §7Too far!" command fireball: permission: cern.fireball permission message: {@prefix} §7You don't have the permission for that command. trigger: shoot a fireball at speed 1 command burn [] []: aliases: ignite permission: cern.burn permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg-1 is set: set {_p} to "%arg-1%" parsed as offline player if {_p} is offline: send "{@prefix} §cPlayer §b%arg-1% §cis not online." stop if arg-2 is set: ignite the {_p} for arg timespan send "{@prefix} §7You set §b%arg-1% §7on fire." send "{@prefix} §7You have been ignited." to {_p} else: send "{@prefix} §7Usage: §a/burn <§bplayer§a> <§btimespan§a>" else: send "{@prefix} §7Usage: §a/burn <§bplayer§a> <§btimespan§a>" command /near []: permission: cern.near permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg is set: if "%arg-1%" regex matches "\d+": set {_radius} to "%arg-1%" parsed as a number set {_count} to 0 loop all players in radius {_radius} around player: add "§b%loop-player's name% §7(%distance between player and loop-player%)" to {_near::*} add 1 to {_count} if {_count} is 0: send "{@prefix} §cThere isn't any player nearby." stop set {_near} to "%{_near::*}%" parsed as a text replace all "," with "§a,§b" in {_near} replace all "and" with "§aand§b" in {_near} send "{@prefix} §7There are §a%{_count}% §7players around radius §a%arg-1%§7:" send "%{_near}%" else: send "{@prefix} §cInvalid radius." command helpop []: permission: cern.helpop permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg is set: set {_count} to 0 loop all players: if loop-player is op: send "§c[§b%player's name%§c] §f%arg%" to loop-player add 1 to {_count} if {_count} is 0: send "{@prefix} §cThere is no operator online yet." else: send "{@prefix} §7Usage: §a/helop <§bmessage§a>" command item [] []: aliases: i permission: cern.item permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg-1 is set: if "%arg-1%" regex matches "\d+": if arg-2 is set: set {_a} to "%arg-1%" parsed as a number set {_i} to "%arg-2%" parsed as item type if {_i} is an item type: give player {_a} of {_i} send "{@prefix} §7You recieved §a%{_a}% §7of §a%{_i}%§7." else: send "{@prefix} §7Usage: §a/item (<§bamount§a>) <§bitem§a>" else: set {_i} to "%arg-1%" parsed as item type if {_i} is an item type: give player 1 of {_i} send "{@prefix} §7You recieved §a1 §7of §a%{_i}%§7." else: send "{@prefix} §b%arg-2% §cis not a valid item type." else: send "{@prefix} §7Usage: §a/item (<§bamount§a>) <§bitem§a>" command give [] [] []: permission: cern.give permission message: {@prefix} §7You don't have the permission for that command. aliases: g trigger: if arg-1 is set: if "%arg-1%" regex matches "\d+": if arg-2 is set: set {_n} to "%arg-1%" parsed as a number set {_i} to "%arg-2%" parsed as item type if {_i} is an item type: if arg-3 is set: set {_p} to "%arg-3%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg-2% §cis not online." stop give {_p} {_n} of {_i} send "{@prefix} §7You recieved §a%{_n}% §7of §a%{_i}% §7from §b%player's name%§7." to {_p} else: give player {_n} of {_i} send "{@prefix} §7You recieved §a%{_n}% §7of §a%{_i}%§7." else: send "{@prefix} §b%arg-2% §cis not a valid item type." else: send "{@prefix} §7Usage: §a/give (<§bamount§a>) <§bitem§a> <§bplayer§a>" else: if arg-2 is set: execute player command "/give 1 %arg-1% %arg-2%" else: execute player command "/give 1 %arg-1%" else: send "{@prefix} §7Usage: §a/give (<§bamount§a>) <§bitem§a> <§bplayer§a>" # # # 𝒞𝐸𝑅𝒩 𝒞𝐻𝒜𝒯 # # command clearchat []: aliases: cc permission: cern.clearchat permission message: {@prefix} §cYou don't have the permission for that command. trigger: if arg is set: set {_p} to "%arg%" parsed as offline player if {_p} is not online: send "{@prefix} §cPlayer §b%arg% §cis not online." stop loop 120 times: send "" to {_p} send "{@prefix} §7Your chat has been cleared by §b%player's name%§7." to {_p} else: loop 120 times: broadcast "" broadcast "{@prefix} §7The chat has been cleared by §b%player's name%§7." command swear [] []: permission: cern.swear permission message: {@prefix} §7You don't have the permission for that command. trigger: if arg-1 is set: if arg-1 is "add": if arg-2 is set: loop {cern::swearList::*}: if "%loop-value%" is equal to "%arg-2%": send "{@prefix} §cThis word is already blocked." stop add "%arg-2%" to {cern::swearList::*} send "{@prefix} §aAdded §a%arg-2% §ato swearlist." else: send "{@prefix} §7Usage: §a/swear §badd §a<§bword§a>" else if arg-1 is "rem", "remove", "del" or "delete": if arg-2 is set: loop {cern::swearList::*}: if "%loop-value%" is equal to "%arg-2%": remove loop-value from {cern::swearList::*} send "{@prefix} §aRemoved §a%arg-2% §afrom swearlist." stop send "{@prefix} §cThis word is not blocked yet." else: send "{@prefix} §7Usage: §a/swear §bremove §a<§bword§a>" else if arg-1 is "list": if {cern::swearList::*} is not set: send "{@prefix} §cThere aren't any words blocked yet." stop if arg-2 is set: if "%arg-2%" regex matches "\d+": set {_argument} to "%arg-2%" parsed as a number set {_page} to 1 set {_integer} to 0 loop {cern::swearList::*}: set {_page.%{_page}%::%{_integer}%} to loop-value add 1 to {_integer} if {_integer} is 36: set {_integer} to 0 add 1 to {_page} if {_argument} is bigger than {_page}: send "{@prefix} §cThat page doesn't exist." stop else: send "{@prefix} §7Swearlist page §b%arg-2% §7of §b%{_page}%§7:" set {_swearlist} to "%{_page.%arg-2%::*}%" parsed as a text replace all "," with "§7,§a" in {_swearlist} replace all "and" with "§7and§a" in {_swearlist} send "§a%{_swearlist}%" else: send "{@prefix} §cInvalid page number." else: execute player command "swear list 1" else: send "{@prefix} §7Usage: §a/swear <[§badd§a|§bremove§a]|§blist§a> [<§bword§a>]" on chat: if {@messageCooldown} is true: if {cern::lastSend::%player%} is set: if difference between {cern::lastSend::%player%} and now is less than 3 seconds: send "{@prefix} §7Please wait a moment before you chat again!" stop if {@messageTwice} is true: if {cern::lastMessage::%player%} is set: if "%message%" is equal to "%{cern::lastMessage::%player%}%": send "{@prefix} §7Please don't send it twice." stop loop {cern::swearList::*}: if message contains "%loop-value%": send "{@prefix} §7Please tame you're language!" stop set {cern::lastMessage::%player%} to "%message%" set {cern::lastSend::%player%} to now # # # 𝒞𝐸𝑅𝒩 𝐹𝐸𝒜𝒯𝒰𝑅𝐸𝒮 # # command sponge: trigger: if {cern::spongeToggle::%UUID of player%} is not set: set {cern::spongeToggle::%UUID of player%} to true send "{@prefix} §aJump pad successfully enabled." else: delete {cern::spongeToggle::%UUID of player%} send "{@prefix} §cJump pad successfully disabled." on any movement: block under player is sponge: if {cern::spongeToggle::%UUID of player%} is set: push player upwards with speed 0.4 right click on any wool or any carpet: if player can build at event-block: if event-block is any wool: set {_block-type} to "wool" else if event-block is any carpet: set {_block-type} to "carpet" if player's tool is any dye: set {_colour} to "%player's tool%" parsed as text if player's tool is dandelion yellow, rose red or cactus green: set {_colour::*} to {_colour} split at " " set {_block} to "%{_colour::2}% %{_block-type}%" parsed as item else: set {_colour::*} to {_colour} split at " dye" set {_block} to "%{_colour::1}% %{_block-type}%" parsed as item set event-block to {_block} if player's tool is lapis: if {_block-type} is "wool": set event-block to blue wool else if {_block-type} is "carpet": set event-block to blue carpet else if player's tool is ink sack: if {_block-type} is "wool": set event-block to black wool else if {_block-type} is "carpet": set event-block to black carpet if player's game mode is survival: set {_tool} to player's tool remove 1 of {_tool} from player's inventory else if player's tool is water bucket: if player is sneaking: cancel event set player's tool to empty bucket if event-block is any carpet: set event-block to white carpet else if event-block is any wool: set event-block to white wool