options: servername: SERVER_NAME #HCF AND FACTIONS ARE AVAILABLE servertype: "Factions" server-type-text: Factions joinmessage: "&8[&a&l+ &7%player%&8]" leavemessage: "&8[&c&l- &7%player%&8]" #HCF HELP warzoneradius: 3k World: 3k Nether: 1k End: 1.5k #END PORTAL LOCATION endlocation: Overworld, 1k | 1k Teamspeak: teamspeak Server rules: /rules forums: forums Store: store f-help-def: Some faction help! pay-def: Pay someone money! set-del-def: Delete or set a home! balance-def: Check your balance! pv-def: Open your own personal vault! echest-def: Open up your own secret ender chest! faction-info: &7Type &3/f create &7 to create a faction and get started! error-prefix: &4Error &8» help-prefix: &3Help &6» report-prefix: &3Report &6» normal-prefix: &3EssentialsA&6 » alert-prefix: &4Alert &8» broadcast-prefix: &4Broadcast &8» sr-prefix: &3Server &6» eco-prefix: &3Economy &6» pay-prefix: &3Pay &6» give-prefix: &3Give &6» home-prefix: &3Home &6» warp-prefix: &3Warp &6» kill-prefix: &3Kill &6» helpop-prefix: &3HelpOP &6» report-prefix: &3Report &6» god-prefix: &3God &6» tp-prefix: &3TP &6» head-prefix: &3Heads &6» ping-prefix: &3Ping &6» staffchat-prefix: &3StaffChat &6» vanish-prefix: &3Vanish &6» freeze-prefix: &3Freeze &6» chat-prefix: &3Chat &6» enchant-prefix: &3Enchanter &6» afk-prefix: &3AFK &6» staff-prefix: &3StaffMode &6» feed-prefix: &3Feed &6» heal-prefix: &3Heal &6» ga-prefix: &3Giveaway &6» ban-prefix: &3Ban &6» rename-prefix: &3Rename &6» enchant-line: &6&lENCHANT no-perms-message: &cYou do not have permission to perform or execute this command. defualt-homes: 1 vip-homes: 5 mvp-homes: 10 giveaway-command: execute console command "kit weekly %{random}%" #IN SECONDS home-delay: 10 warp-delay: 10 tp-delay: 10 giveaway-time: 5 command /head []: permission: essentialsa.skull permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix}&7 /skull " stop else: message "{@head-prefix} &7We have given you the head of &3%arg-1%&7!" give player ("%arg-1%" parsed as offline player)'s skull named "&6%arg-1%'s Head" with lore "&7This head belongs to &3%arg-1%&7!" stop command /skull []: permission: essentialsa.skull permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix}&7 /skull " stop else: message "{@head-prefix} &7We have given you the head of &3%arg-1%&7!" give player ("%arg-1%" parsed as offline player)'s skull named "&6%arg-1%'s Head" with lore "&7This head belongs to &3%arg-1%&7!" stop command /ping []: permission: essentialsa.ping permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@ping-prefix} &7Your ping is &3%player's ping%ms&7!" stop if arg-1 is set: message "{@ping-prefix} &7&3%arg-1%&7's ping is &3%arg-1's ping%ms&7!" stop command /vanish []: permission: essentialsa.vanish permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: if {v.%player%} is not set: message "{@vanish-prefix} &7You have toggled your vanish &aON&7!" set {v.%player%} to true loop all players: if loop-player has permission "essentialsa.vanish": stop hide player from loop-player stop else: message "{@vanish-prefix} &7You have toggled your vanish &cOFF&7!" loop all players: reveal player from loop-player clear {v.%player%} stop if arg-1 is set: if {v.%arg-1%} is not set: message "{@vanish-prefix} &7You have toggled &3%arg-1%&7's vanish &aON&7!" loop all players: if loop-player has permission "essentialsa.vanish": stop else: hide arg-1 from loop-player stop else: message "{@vanish-prefix} &7You have toggled &3%arg-1%&7's vanish &cOFF&7!" loop all players: reveal arg-1 from loop-player stop command /v []: permission: essentialsa.vanish permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: if {v.%player%} is not set: message "{@vanish-prefix} &7You have toggled your vanish &aON&7!" set {v.%player%} to true loop all players: if loop-player has permission "essentialsa.vanish": stop hide player from loop-player stop else: message "{@vanish-prefix} &7You have toggled your vanish &cOFF&7!" loop all players: reveal player from loop-player clear {v.%player%} stop if arg-1 is set: if {v.%arg-1%} is not set: message "{@vanish-prefix} &7You have toggled &3%arg-1%&7's vanish &aON&7!" loop all players: if loop-player has permission "essentialsa.vanish": stop else: hide arg-1 from loop-player stop else: message "{@vanish-prefix} &7You have toggled &3%arg-1%&7's vanish &cOFF&7!" loop all players: reveal arg-1 from loop-player stop command /sc: permission: essentialsa.staffchat permission message: {@error-prefix} {@no-perms-message} trigger: if {sc.%player%} is not set: message "{@staffchat-prefix} &7You have toggled your staffchat &AON&7!" set {sc.%player%} to true stop else: message "{@staffchat-prefix} &7You have toggled your staffchat &COFF&7!" clear {sc.%player%} stop command /freeze []: aliases: /ss permission: essentialsa.freeze permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix}&7 /freeze " stop if arg-1 is set: if arg-1 is command sender: message "{@error-prefix} &7You cannot freeze yourself!" stop if {freeze.%arg-1%} is not set: message "{@freeze-prefix} &7You have froze &3%arg-1%&7!" message "{@freeze-prefix} &7You have been frozen!" to arg-1 message "{@freeze-prefix} &7Please join TeamSpeak! IP: &3{@Teamspeak}" to arg-1 set {freeze.%arg-1%} to location of arg-1 stop else: message "{@freeze-prefix} &7You have unfroze &3%arg-1%&7!" message "{@freeze-prefix} &7You have been unfrozen!" to arg-1 clear {freeze.%arg-1%} stop command /ss []: aliases: /ss permission: essentialsa.freeze permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix}&7 /freeze " stop if arg-1 is set: if arg-1 is command sender: message "{@error-prefix} &7You cannot freeze yourself!" stop if {freeze.%arg-1%} is not set: message "{@freeze-prefix} &7You have froze &3%arg-1%&7!" message "{@freeze-prefix} &7You have been frozen!" to arg-1 set {freeze.%arg-1%} to location of arg-1 stop else: message "{@freeze-prefix} &7You have unfroze &3%arg-1%&7!" message "{@freeze-prefix} &7You have been unfrozen!" to arg-1 message "{@freeze-prefix} &7Please join TeamSpeak! IP: &3{@Teamspeak}" to arg-1 clear {freeze.%arg-1%} stop on any movement: if {freeze.%player%} is set: teleport player to {freeze.%player%} stop command /staffchat: permission: essentialsa.staffchat permission message: {@error-prefix} {@no-perms-message} trigger: if {sc.%player%} is not set: message "{@staffchat-prefix} &7You have toggled your staffchat &AON&7!" set {sc.%player%} to true stop else: message "{@staffchat-prefix} &7You have toggled your staffchat &COFF&7!" clear {sc.%player%} stop command /chat []: permission: essentialsa.staffchat permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "&7&m-----------------------" message "" message " &6Chat Help" json("%player%", "&3/chat clear||sgt:/chat clear||ttp:&7Use this to clear the chat!") json("%player%", "&3/chat mute|disable||sgt:/chat disable||ttp:&7Use this to mute|disable the chat!") message "" message "&7&m-----------------------" stop if arg-1 is "clear": loop 200 times: broadcast "" broadcast "{@chat-prefix} &7The chat has been cleared by &3%command sender%&7!" stop if arg-1 is "mute" or "disable": if {cm} is not set: broadcast "{@chat-prefix}&7 The chat has been disabled by &3%command sender%&7!" set {cm} to true stop else: broadcast "{@chat-prefix}&7 The chat has been enabled by &3%command sender%&7!" clear {cm} stop on chat: if {sc.%player%} is set: if player has permission "essentialsa.staffchat": cancel event loop all players: if loop-player has permission "essentialsa.staffchat": set {scz.%player%} to "{@staffchat-prefix}" json("%loop-player%", "%{scz.%player%}% &3%player%&7: &7%message%||ttp:&b* &fUsername: &b%player%&f%nl%&b* &fMessage: &b%message%%nl%&f%nl%&bClick to message %player%!||sgt:/msg %player% ") stop else: clear {sc.%player%} stop command /setspawn: permission: essentialsa.setspawn permission message: {@error-prefix} {@no-perms-message} trigger: message "{@normal-prefix} &7You have set the spawn to &3%location of player%&7!" set {spawn} to location of player stop command /spawn: trigger: if {spawn} is not set: message "{@error-prefix} &7The spawn is not set!" stop message "{@normal-prefix} &7We are teleporting you to spawn in &3{@warp-delay} seconds&7!" wait {@warp-delay} seconds message "{@normal-prefix} &7You've been teleported to spawn!" teleport player to {spawn} stop command /msg [] []: trigger: if arg-2 is not set: message "{@error-prefix} &7/msg " stop else: if arg-1 is command sender: message "{@error-prefix} &7You cannot message yourself!" stop if {afk.%arg-1%} is set: message "{@afk-prefix} &3%arg-1%&7 is currently AFK and may not respond!" send "&8[&e{@server-type-text}&8] &8[&ame &b➟ &c%arg-1%&8] &7%arg-2%" to player send "&8[&e{@server-type-text}&8] &8[&c%command sender% &b➟ &ame&8] &7%arg-2%" to arg-1 set {reply.%arg-1%} to command sender set {reply.%player%} to arg-1 stop command /r []: trigger: if arg-1 is not set: message "{@error-prefix} &7/r " stop if arg-1 is set: if {reply.%player%} is set: if {afk.%{reply.%player%}%} is set: message "{@afk-prefix} &3%{reply.%player%}%&7 is currently AFK and may not respond!" send "&8[&e{@server-type-text}&8] &8[&ame &b➟ &c%{reply.%player%}%&8] &7%arg-1%" to player send "&8[&e{@server-type-text}&8] &8[&c%command sender% &b➟ &ame&8] &7%arg-1%" to {reply.%player%} command /setwarp []: permission: essentialsa.setwarp permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix} &7/setwarp " stop else: message "{@warp-prefix} &7You have set the warp &3%arg-1%&7 to &3%location of player%&7!" set {warp%arg-1%} to location of player stop command /warp []: trigger: if arg-1 is not set: message "{@error-prefix} &7/warp " stop else: if {warp%arg-1%} is set: message "{@warp-prefix} &7Warping you to &3%arg-1%&7 in &3{@warp-delay} seconds&7!" wait {@warp-delay} seconds message "{@warp-prefix} &7You have warped to &3%arg-1%&7!" teleport player to {warp%arg-1%} stop else: message "{@error-prefix} &7The warp &3%arg-1%&7 does not exist!" stop command /home []: trigger: if arg-1 is not set: if player has the permission "*": if {homes.%player%::*} is not set: message "{@error-prefix} &7You do have any homes!" stop else: message "{@home-prefix} &7%{home.%player%::*}%" stop else: if {home%arg-1%.%player%} is not set: message "{@error-prefix} &7That is not a valid home that you have set!" stop else: message "{@home-prefix}&7 Teleporting you to your house in &3{@home-delay} seconds&7!" wait {@home-delay} seconds teleport player to {homel%arg-1%.%player%} message "{@home-prefix}&7 You are now at your home!" stop if player is not op: if {homes.%player%::*} is not set: message "{@error-prefix} &7You do have any homes!" stop else: message "{@home-prefix} &7%{home.%player%::*}%" stop command /report [] []: trigger: if arg-2 is not set: message "{@error-prefix} &7/report " stop if arg-2 is set: if arg-1 is command sender: message "{@error-prefix} &7You cannot report yourself!" stop message "{@report-prefix} &7Your report on &3%arg-1%&7 has been sent to all staff!" loop all players: if loop-player has permission "reports.recieve": message "{@report-prefix} &3%command sender%&7 has reported &3%arg-1%&7 for &3%arg-2%&7!" to loop-player stop command /helpop []: trigger: if arg-1 is not set: message "{@error-prefix} &7/helpop " stop if arg-1 is set: message "{@helpop-prefix} &7Your message has been sent to all online staff!" loop all players: if loop-player has permission "helpop.recieve": message "{@helpop-prefix} &3%command sender%&7 needs help with &3%arg-1%&7!" to loop-player stop command /suicide: permission: essentialsa.suicide permission message: {@error-prefix} {@no-perms-message} trigger: message "{@kill-prefix}&7 You have suicided!" broadcast "{@kill-prefix} &3%command sender%&7 has taken the easy way out of life." kill player stop command /god []: permission: essentialsa.god permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: if {god.%player%} is not set: message "{@god-prefix} &7You have enabled god mode!" set {god.%player%} to true stop else: message "{@god-prefix} &7You have disabled god mode!" clear {god.%player%} stop if arg-1 is set: if arg-1 is not online: message "{@error-prefix} &3%arg-1%&7 is not online!" stop if {god.%arg-1%} is not set: message "{@god-prefix} &7You have enabled god mode for &3%arg-1%&7!" set {god.%arg-1%} to true stop else: message "{@god-prefix} &7You have disabled god mode for &3%arg-1%&7!" clear {god.%arg-1%} stop on damage of player: if {god.%victim%} is true: cancel event stop command /tptoggle []: permission: essentialsa.tptoggle permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: if {tptoggle.%player%} is not set: message "{@tp-prefix} &7You have toggled your TP to &cOFF" set {tptoggle.%player%} to true stop else: message "{@tp-prefix} &7You have toggled your TP to &aON" clear {tptoggle.%player%} stop if arg-1 is set: if {tptoggle.%arg-1%} is not set: message "{@tp-prefix} &7You have toggled &3%arg-1%&7's TP to &cOFF" set {tptoggle.%arg-1%} to true stop else: message "{@tp-prefix} &7You have toggled &3%arg-1%&7's TP to &aON" clear {tptoggle.%arg-1%} stop command /tpa []: trigger: if arg-1 is not set: message "{@error-prefix} &7/tpa " stop if arg-1 is set: if {tptoggle.%arg-1%} is not set: message "{@tp-prefix} &7You have sent a tp request to &3%arg-1%&7!" message "{@tp-prefix} &7You have recieved a tp request from &3%command sender%&7!" to arg-1 message "&7/tpaccept, /tpyes to accept it" to arg-1 message "&7/tpdeny, /tpno to deny it" to arg-1 set {request.%arg-1%} to true set {rp.%arg-1%} to command sender stop on logout: clear {request.%player%} clear {reply.%player%} clear {rp.%player%} command /tpyes: trigger: if {request.%player%} is set: message "{@tp-prefix} &7You have accepted &3%{rp.%player%}%&7's TP request!" message "{@tp-prefix} &7You will now teleport to &3%command sender%&7 in &3{@tp-delay}&7!" to {rp.%player%} wait {@tp-delay} seconds teleport {rp.%player%} to player stop else: message "{@tp-delay} &7You have denied &3%{rp.%player%}%&7's TP request!" message "{@tp-delay} &3%command sender%&7 had denied your TP request" to {rp.%player%} stop command /tpaccept: trigger: if {request.%player%} is set: message "{@tp-prefix} &7You have accepted &3%{rp.%player%}%&7's TP request!" message "{@tp-prefix} &7You will now teleport to &3%command sender%&7 in &3{@tp-delay}&7!" to {rp.%player%} wait {@tp-delay} seconds teleport {rp.%player%} to player stop else: message "{@tp-prefix} &7You have no one to accept!" stop command /tpdeny: trigger: if {request.%player%} is set: message "{@tp-delay} &7You have denied &3%{rp.%player%}%&7's TP request!" message "{@tp-delay} &3%command sender%&7 had denied your TP request" to {rp.%player%} stop else: message "{@tp-prefix} &7You have no one to deny!" stop command /afk []: permission: essentialsa.afk permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: broadcast "{@afk-prefix} &3%command sender%&7 is now AFK!" message "{@afk-prefix}&7 You're now in AFK mode!" set {afk.%player%} to true stop else: broadcast "{@afk-prefix} &3%arg-1%&7 is now AFK!" set {afk.%arg-1%} to true stop on any movement: if {afk.%player%} is set: clear {afk.%player%} broadcast "{@afk-prefix} &3%command sender%&7 is now no longer AFK!" message "{@afk-prefix}&7 You're no longer AFK mode!" stop on command: if {afk.%player%} is set: clear {afk.%player%} broadcast "{@afk-prefix} &3%command sender%&7 is now no longer AFK!" message "{@afk-prefix}&7 You're no longer AFK mode!" stop on chat: if {afk.%player%} is set: clear {afk.%player%} broadcast "{@afk-prefix} &3%command sender%&7 is now no longer AFK!" message "{@afk-prefix}&7 You're no longer AFK mode!" stop command /tp [] []: permission: essentialsa.tp permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix} &7/tp " stop if arg-1 is set: message "{@tp-prefix} &7You have teleported to &3%arg-1%&7!" teleport player to arg-1 stop if arg-2 is set: message "{@tp-prefix} &7You have teleported &3%arg-1%&7 to &3%arg-2%&7!" teleport arg-1 to arg-2 stop command /kill []: permission: essentialsa.kill permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix} &7/kill " stop if arg-1 is set: if arg-1 is command sender: message "{@error-prefix} &7You cannot kill yourself use /suicide!" stop if arg-1 is op: message "{@error-prefix}&7 You cannot kill an OP!" stop message "{@kill-prefix} &7You have killed &3%arg-1%&7!" kill arg-1 message "{@kill-prefix}&7 You have been killed by &3%command sender%&7!" to arg-1 command /sethome []: trigger: if arg-1 is set: if player has the permission "*": set {home%arg-1%.%player%} to true set {homel%arg-1%.%player%} to location of player message "{@home-prefix}&7 You have set your home to &3%location of player%&7!" add arg-1 to {home.%player%::*} add 1 to {homes.%player%} stop if arg-1 is not set: if player has the permission "*": if {homes.%player%} is greater than 1: message "{@error-prefix} &7Please add a name to your home!" stop message "{@home-prefix}&7 You have set your home to &3%location of player%&7!" set {home.%player%} to location of player add arg-1 to {home.%player%::*} stop if {homes.%player%} is greater than 1: message "{@error-prefix} &7You can only have 1 home!" stop else: message "{@home-prefix}&7 You have set your home to &3%location of player%&7!" set {home.%player%} to location of player add 1 to {homes.%player%} stop command /xp: trigger: message "&7&m-----------------------------" message "" message " &6&lYOUR XP" message "" message "&a%player's level% Lvl" message "" message "&7&m-----------------------------" stop command /help: trigger: if {@servertype} is "HCF": message "&7&m-----------------------------" message "" message "&4Warzone&7 Radius: &3{@warzoneradius}" message "&7Border Sizes:" message " &6» &7World: &3{@World}" message " &6» &7Nether: &3{@Nether}" message " &6» &7End: &3{@End}" message "&7End Exit: &3{@endlocation}" message "&7Forums: &3{@forums}" message "&7TeamSpeak: &3{@Teamspeak}" message "" message "&7&m-----------------------------" stop if {@servertype} is "Factions": message "&7&m-----------------------------" message "" message "{@faction-info}" message "" message "&3/f help&7 - Some faction help! {@f-help-def}" message "&3/pay &7 - {@pay-def}" message "&3/sethome|delhome &7- {@set-del-def}" message "&3/balance &7- {@balance-def}" message "&3/pv &7 {@pv-def}" message "&3/enderchest &7&lRANK ONLY &7- {@echest-def}" message "" message "&7&m-----------------------------" stop else: message "{@error-prefix} &7The server-type that is set in the config is either not a valid server or is not done." stop command /economy [] [] []: permission: essentialsa.economy permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix} &7/economy " stop if arg-2 is not set: message "{@error-prefix} &7/economy " stop if arg-1 is "reset": if arg-2 is set: message "{@eco-prefix} &7You have reseted &3%arg-2%&7's balance!" set arg-2's balance to 0 stop if arg-1 is "set": if arg-3 is set: message "{@eco-prefix} &7You have set &3%arg-2%&7's balance to &2$%arg-3%&7!" set arg-2's balance to arg-3 stop else: message "{@eco-prefix} &7/economy set " stop if arg-1 is "add": if arg-2 is set: if arg-3 is set: message "{@eco-prefix} &7You have added &2$%arg-3%&7 to &3%arg-2%&7's balance!" to player add arg-3 to arg-2's balance stop else: message "{@eco-prefix} &7/economy add " stop if arg-1 is "take": if arg-3 is set: if arg-2's balance is greater than or equal to arg-3: message "{@eco-prefix} &7You have taken &2$%arg-3%&7 from &3%arg-2%&7!" add arg-3 to player's balance remove arg-3 from arg-2's balance stop else: message "{@error-prefix} &7This person does not have &2$%arg-3%&7!" stop else: message "{@error-prefix} &7/economy take " stop else: message "{@error-prefix} &7/economy " stop command /eco [] [] []: permission: essentialsa.economy permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@error-prefix} &7/economy " stop if arg-2 is not set: message "{@error-prefix} &7/economy " stop if arg-1 is "reset": if arg-2 is set: message "{@eco-prefix} &7You have reseted &3%arg-2%&7's balance!" set arg-2's balance to 0 stop if arg-1 is "set": if arg-3 is set: message "{@eco-prefix} &7You have set &3%arg-2%&7's balance to &2$%arg-3%&7!" set arg-2's balance to arg-3 stop else: message "{@eco-prefix} &7/economy set " stop if arg-1 is "add": if arg-2 is set: if arg-3 is set: message "{@eco-prefix} &7You have added &2$%arg-3%&7 to &3%arg-2%&7's balance!" to player add arg-3 to arg-2's balance stop else: message "{@eco-prefix} &7/economy add " stop if arg-1 is "take": if arg-3 is set: if arg-2's balance is greater than or equal to arg-3: message "{@eco-prefix} &7You have taken &2$%arg-3%&7 from &3%arg-2%&7!" add arg-3 to player's balance remove arg-3 from arg-2's balance stop else: message "{@error-prefix} &7This person does not have &2$%arg-3%&7!" stop else: message "{@error-prefix} &7/economy take " stop else: message "{@error-prefix} &7/economy " stop command /fly []: permission: essentialsa.fly permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: if {fly.%player%} is not set: message "{@normal-prefix} &7You have set your flight to &3TRUE&7!" set player's fly mode to true set {fly.%player%} to true stop else: message "{@normal-prefix} &7You have set your flight to &3FALSE&7!" set player's fly mode to false clear {fly.%player%} stop else: if {fly.%arg-1%} is not set: message "{@normal-prefix} &7You have set &3%arg-1%&7's flight to &3TRUE&7!" set {fly.%arg-1%} to true set arg-1's fly mode to true stop else: message "{@normal-prefix} &7You have set &3%arg-1%&7's flight to &3FALSE&7!" set arg-1's fly mode to false clear {fly.%arg-1%} stop command /gamemode [] []: aliases: /gm permission: essentialsa.gamemode permission message: {@error-prefix} {@no-perms-message} trigger: if arg-2 is set: if arg-1 is "c": message "{@normal-prefix} &7You have updated &3%arg-2%&7's gamemode to &3CREATIVE&7!" set gamemode of arg-2 to creative stop if arg-1 is "s": message "{@normal-prefix} &7You have updated &3%arg-2%&7's gamemode to &3SURVIVAL&7!" set gamemode of arg-2 to survival stop if arg-1 is "creative": message "{@normal-prefix} &7You have updated &3%arg-2%&7's gamemode to &3CREATIVE&7!" set gamemode of arg-2 to creative stop if arg-1 is "survival": message "{@normal-prefix} &7You have updated &3%arg-2%&7's gamemode to &3SURVIVAL&7!" set gamemode of arg-2 to survival stop if arg-1 is not set: if gamemode of player is creative: message "{@normal-prefix} &7You have updated your gamemode to &3SURVIVAL&7!" set gamemode of player to survival stop if gamemode of player is survival: message "{@normal-prefix} &7You have updated your gamemode to &3CREATIVE&7!" set gamemode of player to creative stop if arg-1 is "c": message "{@normal-prefix} &7You have updated your gamemode to &3CREATIVE&7!" set gamemode of player to creative stop if arg-1 is "creative": message "{@normal-prefix} &7You have updated your gamemode to &3CREATIVE&7!" set gamemode of player to creative stop if arg-1 is "s": message "{@normal-prefix} &7You have updated your gamemode to &3SRUVIVAL&7!" set gamemode of player to survival stop if arg-1 is "survival": message "{@normal-prefix} &7You have updated your gamemode to &3SRUVIVAL&7!" set gamemode of player to survival stop command /pay [] []: trigger: if arg-2 is not set: message "{@error-prefix} &7/pay " stop if arg-2 is set: if arg-1 is command sender: message "{@error-prefix} &7You cannot pay yourself!" stop if player's balance is greater than or equal to arg-2: message "{@pay-prefix} &7You have paid &3%arg-1%&2 $%arg-2%&7!" message "{@pay-prefix} &7You have recieved &2$%arg-2%&7!" to arg-1 stop else: message "{@error-prefix} &7You do not have enough money to do this!" stop command /gmc: permission: essentialsa.gamemode permission message: {@error-prefix} {@no-perms-message} trigger: if gamemode of player is creative: message "{@error-prefix} &7You are already in &3CREATIVE&7!" stop else: message "{@normal-prefix} &7You have updated your gamemode to &3CREATIVE&7!" set gamemode of player to creative stop command /gms: permission: essentialsa.gamemode permission message: {@error-prefix} {@no-perms-message} trigger: if gamemode of player is survival: message "{@error-prefix} &7You are already in &3SURVIVAL&7!" stop else: message "{@normal-prefix} &7You have updated your gamemode to &3SURVIVAL&7!" set gamemode of player to survival stop command /give [] [] []: trigger: if arg-2 is not set: message "{@error-prefix} &7/give " stop else: if arg-3 is not set: message "{@give-prefix} &7You have given &3%arg-1%&7 &71 %arg-2%!" give arg-1 64 of arg-2 stop command /gm [] []: permission: essentialsa.gamemode permission message: {@error-prefix} {@no-perms-message} trigger: if arg-2 is set: if arg-1 is "c": message "{@normal-prefix} &7You have updated &3%arg-2%&7's gamemode to &3CREATIVE&7!" set gamemode of arg-2 to creative stop if arg-1 is "s": message "{@normal-prefix} &7You have updated &3%arg-2%&7's gamemode to &3SURVIVAL&7!" set gamemode of arg-2 to survival stop if arg-1 is "creative": message "{@normal-prefix} &7You have updated &3%arg-2%&7's gamemode to &3CREATIVE&7!" set gamemode of arg-2 to creative stop if arg-1 is "survival": message "{@normal-prefix} &7You have updated &3%arg-2%&7's gamemode to &3SURVIVAL&7!" set gamemode of arg-2 to survival stop if arg-1 is not set: if gamemode of player is creative: message "{@normal-prefix} &7You have updated your gamemode to &3SURVIVAL&7!" set gamemode of player to survival stop if gamemode of player is survival: message "{@normal-prefix} &7You have updated your gamemode to &3CREATIVE&7!" set gamemode of player to creative stop if arg-1 is "c": message "{@normal-prefix} &7You have updated your gamemode to &3CREATIVE&7!" set gamemode of player to creative stop if arg-1 is "creative": message "{@normal-prefix} &7You have updated your gamemode to &3CREATIVE&7!" set gamemode of player to creative stop if arg-1 is "s": message "{@normal-prefix} &7You have updated your gamemode to &3SRUVIVAL&7!" set gamemode of player to survival stop if arg-1 is "survival": message "{@normal-prefix} &7You have updated your gamemode to &3SRUVIVAL&7!" set gamemode of player to survival stop command /balance: trigger: message "&7&m------------------" message "" message " &6&lYOUR BALANCE" message "" message "&2%player's balance%" message "" message "&7&m------------------" stop command /broadcast []: permission: essentialsa.broadcast permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@normal-prefix} &7/broadcast " stop if arg-1 is set: broadcast "{@broadcast-prefix} &7%colored arg-1%" stop command /bc []: permission: essentialsa.broadcast permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@normal-prefix} &7/bc " stop if arg-1 is set: broadcast "{@broadcast-prefix} &7%colored arg-1%" stop command /ealert []: permission: essentialsa.alert permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@normal-prefix} &7/alert " stop if arg-1 is set: message "{@normal-prefix} &7Your alert was successfull." broadcast "" broadcast "{@alert-prefix} %colored arg-1%" broadcast "" stop command /sr [] []: permission: essentials.sreload permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@normal-prefix} &7/server-reload " stop if arg-2 is not set: message "{@normal-prefix} &7/server-reload " stop if arg-2 is set: if arg-2 is "ms" or "minutes": if arg-1 is 1: message "{@error-prefix} &7Use minute or m for 1!" stop broadcast "{@sr-prefix} &7The server will reload in &3%arg-1% minutes&7." stop if arg-2 is "m" or "minute": if arg-1 is 1: broadcast "{@sr-prefix} &7The server will reload in &31 minute&7." stop else: message "{@error-prefix} &7You cannot use any other number then 1 for minute or m." stop if arg-2 is "hs" or "hours": if arg-1 is 1: message "{@error-prefix} &7Use hour or h for 1!" stop broadcast "{@sr-prefix} &7The server will reload in &3%arg-1% hours&7." stop if arg-2 is "h" or "hour": if arg-1 is 1: broadcast "{@sr-prefix} &7The server will reload in &31 hour&7." stop else: message "{@error-prefix} &7You cannot use any other number then 1 for an hour." stop if arg-2 is "ss" or "seconds": if arg-1 is 1: message "{@error-prefix} &7Use second or s for 1!" stop broadcast "{@sr-prefix} &7The server will reload in &3%arg-1% seconds&7." stop if arg-2 is "second" or "s": if arg-1 is 1: broadcast "{@sr-prefix} &7The server will reload in &31 second&7." stop else: message "{@error-prefix} &7You cannot use any other number then 1 for a second." stop else: message "{@error-prefix} &7Please enter a valid date!" stop command /server-reload [] []: permission: essentials.sreload permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@normal-prefix} &7/server-reload " stop if arg-2 is not set: message "{@normal-prefix} &7/server-reload " stop if arg-2 is set: if arg-2 is "ms" or "minutes": if arg-1 is 1: message "{@error-prefix} &7Use minute or m for 1!" stop broadcast "{@sr-prefix} &7The server will reload in &3%arg-1% minutes&7." stop if arg-2 is "m" or "minute": if arg-1 is 1: broadcast "{@sr-prefix} &7The server will reload in &31 minute&7." stop else: message "{@error-prefix} &7You cannot use any other number then 1 for minute or m." stop if arg-2 is "hs" or "hours": if arg-1 is 1: message "{@error-prefix} &7Use hour or h for 1!" stop broadcast "{@sr-prefix} &7The server will reload in &3%arg-1% hours&7." stop if arg-2 is "h" or "hour": if arg-1 is 1: broadcast "{@sr-prefix} &7The server will reload in &31 hour&7." stop else: message "{@error-prefix} &7You cannot use any other number then 1 for an hour." stop if arg-2 is "ss" or "seconds": if arg-1 is 1: message "{@error-prefix} &7Use second or s for 1!" stop broadcast "{@sr-prefix} &7The server will reload in &3%arg-1% seconds&7." stop if arg-2 is "second" or "s": if arg-1 is 1: broadcast "{@sr-prefix} &7The server will reload in &31 second&7." stop else: message "{@error-prefix} &7You cannot use any other number then 1 for a second." stop else: message "{@error-prefix} &7Please enter a valid date!" stop command /alert []: permission: essentialsa.alert permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@normal-prefix} &7/alert " stop if arg-1 is set: message "{@normal-prefix} &7Your alert was successfull." broadcast "" broadcast "{@alert-prefix} %colored arg-1%" broadcast "" stop command /bal: trigger: message "&7&m------------------" message "" message " &6&lYOUR BALANCE" message "" message "&2%player's balance%" message "" message "&7&m------------------" stop command /ess []: permission: essentialsa.ess permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@normal-prefix} &7Invalid arguments!" stop if arg-1 is "reload": execute console command "sk reload %script%" message "{@normal-prefix} &7You have successfully reloaded &3EssentialsA&7!" stop on chat: if message contains ".com" or ".net" or ".co" or ".us" or ".uk" or ".ws" or ".ninja" or ".tk" or ".org" or ".to" or "dot." or "dot," or "(dot)" or ".pw" or "dot" or ".it" or ".tech" or ".edu" or "DOT" or " , " or ".de" or ".tl" or ".nl" or ".be" or ".pl" or ".me" or ".info" or ".ly" or ".onion" or ".webcam" or ".bit" or ".gl" or ".tv" or ".gs" or ".myserver" or ".club" or ".space" or ".design" or ".rent" or ".bid" or ".trade" or ".webcam" or ".press" or ".io" or ".ca" or ".college" or ".host" or ".financial" or ".es" or ".yoga" or ".financial" or ".flights" or ".guitars" or ".xyz" or ".dj" or ".is" or ".hub" or ".server" or ".ca" or ".eu" or ".esy" or ".serv.nu": if player is op: stop cancel event message "{@normal-prefix} &7Advertisting is not allowed on this server." loop all players: if loop-player has permission "essentialsa.adv" or "*": message "{@normal-prefix} &3%player%&7 has tried to advertise the message &3%message%&7!" to loop-player stop on chat: if message contains "fuck" or "shit" or "crap" or "nigger" or "niger" or "niga" or "nigga" or "f u c k" or "s h i t" or "bitch" or "b i t c h " or "kys" or "ffs" or "kms" or "idgaf" or "cunt" or "arse" or "ass" or "clit" or "vagina" or "dick" or "cock" or "coon" or "cum" or "cooter" or "dildo" or "faggot" or "fgt" or "fag" or "gay" or "lesbian" or "gay" or "niglet" or "queer" or "tit": if player has permission "*": stop message "{@chat-prefix} &7We've noticed that you've been using a lot of profanity. Please keep this to a minimum!" cancel event loop all players: if loop-player has permission "essentialsa.chatswear": message "{@chat-prefix}&3 %player%&7 has tried to swear and said &3%message%&7!" to loop-player stop on rightclick on a sign: if line 1 is "{@enchant-line}": execute player command "ozlolapidphzohdishpfs" set {e.%player%} to true stop on command "ozlolapidphzohdishpfs": if {e.%player%} is not set: stop else: cancel event message "{@enchant-prefix} &7You are now in the enchanter!" open chest with 1 row named "{@enchant-line}" to player wait 1 tick format slot 0 of command sender with a book named "&7&lBasic Book" with lore "&7This is the basic book, It produces||&7basic spells to grant you with the ||&7best experience!" to run [execute player command "buyabasicbook54"] format slot 2 of command sender with a book named "&a&lTechnical Book" with lore "&7This is the technical book, It produces||&7technical spells to grant you with the ||&7best experience!" to run [execute player command "buyatechbook54"] format slot 4 of command sender with a book named "&6&lRare Book" with lore "&7This is the rare book, It produces||&7rare spells to grant you with the ||&7best experience!" to run [execute player command "buyararebook54"] format slot 6 of command sender with a book named "&3&lAdvanced Book" with lore "&7This is the advanced book, It produces||&7advanced spells to grant you with the ||&7best experience!" to run [execute player command "buyaadvbook54"] format slot 8 of command sender with a book named "&b&lLegendary Book" with lore "&7This is the legendary book, It produces||&7legendary spells to grant you with the ||&7best experience!" to run [execute player command "buyalegbook54"] stop on inventory click: if {staffinfo.%player%} is set: stop if {mod.%player%} is set: cancel event on drop: if {mod.%player%} is set: cancel event on right click on entity: if entity is a player: if player's held item is 101 named "&6Freeze" with lore "&7Freeze someone for hacking!": if player has permission "staff.use": set {_entity} to the entity execute player command "freeze %{_entity}%" stop else: message "&cReport this to a staff member ASAP!" stop if player's held item is a book named "&6Examine" with lore "&7Use this to see someones inventory!": if player has permission "staff.use": set {_entity} to the entity execute player command "einvsee %{_entity}%" message "{@staff-prefix}&7 Now viewing the inventory of &6%{_entity}%" to player stop else: message "&cReport this to a staff member ASAP!" stop on place: if {mod.%player%} is true: cancel event on damage of player: if {mod.%attacker%} is true: cancel event if {mod.%victim%} is true: cancel event on inventory close: clear {staffinfo.%player%} on rightclick: if player's held item is 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!": if player has permission "staff.use": message "{@staff-prefix}&7 Toggling your vanish to &cOFF&7..." execute player command "ev" remove 1 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" stop else: message "&cReport this to a staff member ASAP!" stop if player's held item is gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!": if player has permission "staff.use": message "{@staff-prefix}&7 Toggling your vanish to &aON&7..." execute player command "ev" remove 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!" stop else: message "&cReport this to a staff member ASAP!" stop if player's held item is 347 named "&6Random TP" with lore "&7Use this to randomly tp to someone!": if player has permission "staff.use": set {random.%Player%} to a random player out of all players if {random.%player%} is player: set {random.%Player%} to a random player out of all players teleport player to {random.%player%} message "{@staff-prefix}&7 You have been teleported to &6%{Random.%player%}%&7!" stop else: message "&cReport this to a staff member ASAP!" stop command /staff-info-help: permission: staff.use trigger: open chest with 1 row named "&cStaff Help" to player format slot 0 of player with book named "&cBans" to close on command "ev": if player has 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!": remove 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!" stop if player has 1 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!": remove 1 gray dye named "&aVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" stop on command "v": if player has 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!": remove 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!" stop if player has 1 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!": remove 1 gray dye named "&aVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" stop on command "evanish": if player has 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!": remove 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!" stop if player has 1 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!": remove 1 gray dye named "&aVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" stop on command "vanish": if player has 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!": remove 1 gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!" stop if player has 1 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!": remove 1 gray dye named "&aVanish" with lore "&7Use this to toggle your vanish!" from player set slot 2 of player to gray dye named "&cVanish" with lore "&7Use this to toggle your vanish!" stop command /mod [] []: aliases: /sm permission: mod.use trigger: if arg-1 is not set: if {mod.%player%} is not set: set {inventory.%player%} to player's inventory set gamemode of player to creative execute player command "ev" execute console command "eci %player%" message "{@staff-prefix} &7You are now in moderator mode!" set slot 1 of player to 101 named "&6Freeze" with lore "&7Freeze someone for hacking!" set slot 0 of player to book named "&6Examine" with lore "&7Use this to see someones inventory!" set slot 2 of player to 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!" set slot 8 of player to a light blue carpet named "&6Better Looking Tool &7&o(1.7)" with lore "&7Use this for a better look at things!" set slot 7 of player to 347 named "&6Random TP" with lore "&7Use this to randomly tp to someone!" set {mod.%player%} to true stop else: execute console command "spawn %player%" execute player command "ev" execute console command "eci %player%" set player's inventory to {inventory.%player%} message "{@staff-prefix} &7You are no longer in moderator mode!" clear {mod.%player%} stop if arg-1 is "tp": if arg-2 is set: if {mod.%player%} is set: teleport player to arg-2 message "&7Teleporting you to &6%arg-2%&7!" stop else: message "{@staff-prefix}&7 Please go into moderator mode to use this feature!" stop command /staffmode [] []: aliases: /sm permission: mod.use trigger: if arg-1 is not set: if {mod.%player%} is not set: set {inventory.%player%} to player's inventory set gamemode of player to creative execute player command "ev" execute console command "eci %player%" message "{@staff-prefix} &7You are now in moderator mode!" set slot 1 of player to 101 named "&6Freeze" with lore "&7Freeze someone for hacking!" set slot 0 of player to book named "&6Examine" with lore "&7Use this to see someones inventory!" set slot 2 of player to 351:10 named "&aVanish" with lore "&7Use this to toggle your vanish!" set slot 8 of player to a light blue carpet named "&6Better Looking Tool &7&o(1.7)" with lore "&7Use this for a better look at things!" set slot 7 of player to 347 named "&6Random TP" with lore "&7Use this to randomly tp to someone!" set {mod.%player%} to true stop else: execute console command "spawn %player%" execute player command "ev" execute console command "eci %player%" set player's inventory to {inventory.%player%} message "{@staff-prefix} &7You are no longer in moderator mode!" clear {mod.%player%} stop if arg-1 is "tp": if arg-2 is set: if {mod.%player%} is set: teleport player to arg-2 message "&7Teleporting you to &6%arg-2%&7!" stop else: message "{@staff-prefix}&7 Please go into moderator mode to use this feature!" stop command /feed []: permission: essentialsa.feed permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@feed-prefix} &7You've fed yourself!" set player's hunger bar to 20 stop if arg-1 is set: message "{@feed-prefix} &7You've fed &3%arg-1%&7!" set arg-1's hunger bar to 20 stop command /heal []: permission: essentialsa.heal permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is not set: message "{@heal-prefix}&7 You've healed yourself!" heal player set player's hunger bar to 20 stop if arg-1 is set: message "{@heal-prefix}&7 You've healed &3%arg-1%&7!" heal arg-1 set arg-1's hunger bar to 20 stop command /trash: permission: essentialsa.trash permission message: {@error-prefix} {@no-perms-message} trigger: open chest with 6 rows named "&6&lDisposal" to player command /disposal: permission: essentialsa.trash permission message: {@error-prefix} {@no-perms-message} trigger: open chest with 6 rows named "&6&lDisposal" to player command /giveaway []: aliases: /ga permission: essentialsa.giveaway permission message: {@error-prefix} {@no-perms-message} trigger: if arg-1 is set: broadcast "{@ga-prefix} &7A giveaway as started! Just type &3%arg-1%&7 in chat to enter! You have &3{@giveaway-time} minutes&7." set {ga} to arg-1 wait {@giveaway-time} seconds clear {ga} if {gap::*} is not set: broadcast "{@ga-prefix} &7It looks like no one entered the contest!" stop set {random} to a random player out of {gap::*} broadcast "{@ga-prefix} &3%{random}% &7has won the give-away and has recieved &3Kit Weekly&7!" {@giveaway-command} clear {random} clear {gap::*} stop else: message "{@error-prefix} &7/giveaway " stop on chat: if {ga} is set: if message is {ga}: cancel event message "{@ga-prefix} &7You have entered the contest!" add player to {gap::*} stop else: stop command /ticket : trigger: if arg-1 is not set: message "&7Usage &b/ticket (reason)" stop if arg-1 is set: message "&7You have &amade&7 a ticket please wait &a1 &7- &a2&7 minutes for a response!" loop all players: if loop-player have permission "help.help1": send "&b%command sender%&7 has made a ticket reason: &b%arg 1%" to loop-player stop if loop-player have permission "ticket.no": message "&cYou can't make a ticket your staff!" stop command /stats []: trigger: if arg-1 is set: if player has permission "chat.listen": message "&6&l&m--->---------------------------------<---" message "&eShowing the statistics for player &6%arg 1%" message "&eKills &6» &f%{Kills:%arg 1%}%" message "&eDeaths &6» &f%{Deaths:%arg 1%}%" message "&eKill Streak &6» &f%{killst:%arg 1%}%" message "&eBest Kill Streak &6» &f%{bkillst:%arg 1%}%" message "&6&l&m--->---------------------------------<---" stop if player does not have permission "chat.listen": message "&cYou can only see your own stats!" if arg-1 is not set: message "&6&l&m--->---------------------------------<---" message "&eShowing the statistics for player &6%player%" message "&eKills &6» &f%{Kills:%player%}%" message "&eDeaths &6» &f%{Deaths:%player%}%" message "&eKill Streak &6» &f%{killst:%player%}%" message "&eBest Kill Streak &6» &f%{bkillst:%player%}%" message "&6&l&m--->---------------------------------<---" stop on death of player: set {bkillst:attacker} to 0 add 1 to {kills:%attacker%} add 1 to {killst:%attacker%} set {killst:%victim%} to 0 add 1 to {deaths:%victim%} if {killst:%attacker%} is bigger than {bkillst:%attacker%}: wait 1 second add 1 to {bkillst:%attacker%} stop every second: loop all players: if {kills:%loop-player%} is not set: set {kills:%loop-player%} to 0 if {deaths:%loop-player%} is not set: set {deaths:%loop-player%} to 0 if {killst:%loop-player%} is not set: set {killst:%loop-player%} to 0 if {bkillst:%loop-player%} is not set: set {bkillst:%loop-player%} to 0 every 1 second: loop all players: if {playtime.sec.%loop-player%} is not set: add loop-player's name to {playtime.participant::*} set {playtime.sec.%loop-player%} to 0 set {playtime.min.%loop-player%} to 0 set {playtime.hour.%loop-player%} to 0 add 1 to {playtime.sec.%loop-player%} if {playtime.sec.%loop-player%} is greater than 59: set {playtime.sec.%loop-player%} to 0 add 1 to {playtime.min.%loop-player%} if {playtime.min.%loop-player%} is greater than 59: set {playtime.min.%loop-player%} to 0 add 1 to {playtime.hour.%loop-player%} command /playtime []: trigger: if arg-1 is not a player: message "&cThat is not a player!" stop if arg-1 is not set: message "&6&l&m--->---------------------------------<---" message "&e%player%&f's playtime: " message "&eHours &6»&f &f%{playtime.hour.%player%}%" message "&eMinutes &6» &f%{playtime.min.%player%}%" message "&eSeconds &6» &f%{playtime.sec.%player%}%" message "&6&l&m--->---------------------------------<---" stop if arg-1 is set: if player has permission "chat.listen": message "&6&l&m--->---------------------------------<---" message "&e%arg 1%&f's playtime: " message "&eHours &6»&f &f%{playtime.hour.%arg 1%}%" message "&eMinutes &6» &f%{playtime.min.%arg 1%}%" message "&eSeconds &6» &f%{playtime.sec.%arg 1%}%" message "&6&l&m--->---------------------------------<---" stop if player does not have permission "chat.listen": message "&3&lPLAYTIME &cYou can only see your own playtime!" stop on join: set join message to {@joinmessage} stop on logout: set leave message to {@leavemessage} stop command /workbench: permission: essentialsa.workbench permission message: {@error-prefix} {@no-perms-message} trigger: message "{@normal-prefix}&7 Now opening a work bench..." open workbench to player stop command /ban [] []: permission: essentialsa.ban permission message: {@error-prefix} {@no-perms-message} trigger: if arg-2 is not set: message "{@error-prefix} &7/ban " stop if arg-2 is set: if arg-2 contains "-s": if {ban.%arg-1%} is set: message "{@ban-prefix} &7Removing the previous ban for &3%arg-1%&7..." kick arg-1 due to "&cBanned" set {banr.%player%} to arg-2 replace all "-s" in {banr.%player%} with "" message "{@ban-prefix} &7You have banned &3%arg-1%&7!" set {ban.%arg-1%} to {banr.%player%} set {bannedby.%arg-1%} to player set {bannedwhen.%arg-1%} to now ban arg-1 due to "&cYou are currently banned for &c&l%{ban.%arg-1%}%&c. You were banned by &c&l%{bannedby.%arg-1%}%&c. You were banned on &c&l%{bannedwhen.%arg-1%}%&c!" loop all players: if loop-player has permission "essentialsa.silentban": message "{@ban-prefix} &7(Silent) &3%command sender%&7 has permanently banned &3%arg-1%" to loop-player message " &eReason &6» &f%arg-2%&7!" to loop-player stop else: stop else: if {ban.%arg-1%} is set: message "{@ban-prefix} &7Removing the previous ban for &3%arg-1%&7..." kick arg-1 due to "&cBanned" broadcast "{@ban-prefix} &3%command sender%&7 has permanently banned &3%arg-1%" broadcast " &eReason &6» &f%arg-2%&7!" set {ban.%arg-1%} to arg-2 set {bannedby.%arg-1%} to player set {bannedwhen.%arg-1%} to now ban arg-1 due to "&cYou are currently banned for &c&l%{ban.%arg-1%}%&c. You were banned by &c&l%{bannedby.%arg-1%}%&c. You were banned on &c&l%{bannedwhen.%arg-1%}%&c!" stop command /unban []: trigger: if arg-1 is not set: message "{@error-prefix} &7/unban " stop else: if {ban.%arg-1%} is set: message "{@ban-prefix}&7 You have unbanned &3%arg-1%&7!" broadcast "{@ban-prefix} &3%command sender%&7 has unbanned &3%arg-1%&7!" clear {ban.%arg-1%} clear {bannedby.%arg-1%} clear {bannedwhen.%arg-1%} unban arg-1 stop else: message "{@error-prefix}&3 %arg-1%&7 is not banned!" stop on load: set {_p} to "&3EssentialsA &6»" set {_p} to yaml value "Prefix" from "plugins/EssentialsA/config.yml" stop command /setname []: permission: setname.use trigger: if arg-1 is set: message "{@rename-prefix} &7You have renamed your held item to %colored arg-1%&7!" set player's held item's name to colored arg-1 stop command /setlore []: permission: setlore.use trigger: if arg-1 is set: message "{@rename-prefix} &7You have renamed your held item's lore to %colored arg-1%&7!" set player's held item's lore to colored arg-1 stop