# 1. AUTH SKRIPT # DELETE IF YOU DON'T NEED IT. options: noperm: &c&l[X] &fYou don't have perms. usageregister: &c&l[i] &fUsage: &c&n/regiser [password] usagelogin: &c&l[i] &fUsage: &c&n/login [password] allowtomove: 0 #0 - block player move, 1 - ignore. usagecp: &c&l[i] &fUsage: &c&n/cp [oldpassword] [newpassword] allowtocommands: 0 #0 - block player commands, 1 - ignore. variables: {reg.%player%} = 0 on break: if {registered.%player%} is false: cancel event if {reg.%player%} is 0: send message "&a&l[!] &fRegister with command &a/register [password]" if {reg.%player%} is 1: send message "&c&l[!] &fPlease, login with command &c/login [password]" on place: if {registered.%player%} is false: cancel event if {reg.%player%} is 0: send message "&a&l[!] &fRegister with command &a/register [password]" if {reg.%player%} is 1: send message "&c&l[!] &fPlease, login with command &c/login [password]" on player move: if {@allowtomove} is 0: if {registered.%player%} is false: cancel event if {reg.%player%} is 0: send message "&a&l[!] &fRegister with command &a/register [password]" if {reg.%player%} is 1: send message "&c&l[!] &fPlease, login with command &c/login [password]" on join: set {currentip.%player%} to player's ip wait 1 ticks if {currentip.%player%} is {lastip.%player%}: set {registered.%player%} to true else: set {registered.%player%} to false command /register []: permission: ankaauth.register permission message: {@noperm} aliases: /reg trigger: if {registered.%player%} is false: if {reg.%player%} is 0: if arg-1 is set: send "&a&l[!] &fYou sucessfly registered. Pass: &a%arg 1%" set {pass.%player%} to arg-1 set {reg.%player%} to 1 set {lastip.%player%} to player's ip set {registered.%player%} to true if arg-1 is not set: send "{@usageregister}" else: send "&fYou &calready &flogged in." command /login []: permission: ankaauth.login permission message: {@noperm} aliases: /l trigger: if {registered.%player%} is false: if {reg.%player%} is 1: if arg-1 is set: if {pass.%player%} is arg-1: send "&a&l[!] &fYou sucessfly logged in." set {pass.%player%} to arg-1 set {lastip.%player%} to player's ip set {reg.%player%} to 1 set {registered.%player%} to true else: send "&cIncorrect password! Try again." else: send "{@usagelogin}" else: send "&fRegister with command &c/register" else: send "&fYou &calready &flogged in." command /changepassword [] []: permission: ankaauth.changepassword permission message: {@noperm} aliases: /cp trigger: if {registered.%player%} is true: if arg-2 is set: if {pass.%player%} is arg-1: send "&a&l[!] &fPassword changed. New password: &a%arg 2%" set {pass.%player%} to arg-2 else: send "&cIncorrect password! Try again" if arg-1 is not set: send "{@usagecp}" else: send "&fYou need register/login to use this command." command /logout: permission: ankaauth.logout permission message: {@noperm} trigger: kick the player due to "&fYou logged out." on chat: if {registered.%player%} is false: cancel event send "&fYou need to &clogin/register &fto use chat." on command: if {registered.%player%} is false: if {@allowtocommands} is 0: if command is not "register" or "reg" or "login" or "l": cancel event send "&fYou need to &clogin/register &fto use commands." # 1. AUTH SKRIPT # DELETE IF YOU DON'T NEED IT. #-------------------------------- # 2. ANKA-ANTI-TNT # DELETE IF YOU DON'T NEED IT. on explode: if {explodeprotect} is true: cancel event command /ankatnt []: permission: ankatnt.use trigger: if arg-1 is "enable": if {explodeprotect} is true: send "&c&l[!] &fProtection already enabled." else: set {explodeprotect} to true send "&c&l[!] &fProtection enabled." if arg-1 is "disable": if {explodeprotect} is false: send "&c&l[!] &fProtection already disabled." else: set {explodeprotect} to false send "&c&l[!] &fProtection sucessfly disabled." if arg-1 is not set: send "&c&l[!] &fUsage: &c&n/ankatnt enable/disable" # 2. ANKA-ANTI-TNT # DELETE IF YOU DON'T NEED IT. # 3. ANKAQUIZ # DELETE IF YOU DON'T NEED IT. options: noperms: &c&lERR: &fYou don't have permissions. usagevc: &a&lUSE: &f/vc &a[correct answer] [question] usageans: &a&lUSE: &f/ans &a[answer] cmd: eco give %player% %{bet}% #command to give player money. cmdcooldown: &c! &fYou can use this command only every 15 minutes. variables: {quizstarted.%player%} = false {quiz} = false command /vc [] []: permission: ankaquiz.quiz permission message: {@noperms} cooldown: 15 minutes cooldown message: {@cmdcooldown} trigger: if arg-2 is set: if {quizstarted.%player%} is false: broadcast "&f " broadcast "&6 ╔ &c&l%player% STARTED THE QUIZ! " broadcast "&6 ╟ " broadcast "&6 ╟ &fQuestion: &a%arg 2%" broadcast "&6 ╟ &fResponse time: &a1 minute" broadcast "&6 ╟ &fBet: &a500$" broadcast "&6 ╟ " broadcast "&6 ╚ &fAnswer with &a/ans" broadcast "&f " set {answer} to arg-1 set {bet} to 500 loop all players: set {wrongans.%loop-players%} to false set {quizstarted.%player%} to true set {quiz} to true set {quizauthor} to player's name wait 15 seconds if {quiz} is true: broadcast "&f " broadcast "&6 ╔ &c&lPLAYER %player% QUIZ CONTINUES! " broadcast "&6 ╟ " broadcast "&6 ╟ &fQuestion: &a%arg 2%" broadcast "&6 ╟ &fResponse time: &a45 seconds" broadcast "&6 ╟ &fBet: &a750$" broadcast "&6 ╟ " broadcast "&6 ╚ &fAnswer with &a/ans" broadcast "&f " set {bet} to 750 wait 25 seconds if {quiz} is true: broadcast "&f " broadcast "&6 ╔ &c&lPLAYER %player% QUIZ CONTINUES! " broadcast "&6 ╟ " broadcast "&6 ╟ &fQuestion: &a%arg 2%" broadcast "&6 ╟ &fResponse time: &a20 seconds" broadcast "&6 ╟ &fBet: &a1250$" broadcast "&6 ╟ " broadcast "&6 ╚ &fAnswer with &a/ans" broadcast "&f " set {bet} to 1250 wait 20 seconds if {quiz} is true: set {quizstarted.%player%} to false set {quiz} to false broadcast "&6○ &fNobody answered correctly! Correct answer: &a%{answer}%" else: send "&c! &fYou already started the quiz." else: send "{@usagevc}" command /ans []: permission: ankaquiz.answer permission message: {@noperms} trigger: if arg-1 is set: if {quiz} is true: if {wrongans.%player%} is false: if arg-1 is {answer}: send "&a&lCORRECT ANSWER!" set {quiz} to false execute console command "{@cmd}" broadcast "&6○ &fPlayer &a%player% &fwon the quiz! Correct answer: &a%{answer}%" set {quizstarted.%{quizauthor}%} to false else: send "&cWrong answer!" set {wrongans.%player%} to true else: send "&cYou already answered." else: send "&cQuiz is not started yet." else: send "{@usageans}" # 3. ANKAQUIZ # DELETE IF YOU DON'T NEED IT. #-------------------------------- # 4. ANKAORE # DELETE IF YOU DON'T NEED IT. on break of diamond ore: send "&a&lINFO: &fYou received &a&l4$ &ffor mining ore" to player add 4 to balance of player on break of gold ore: send "&a&lINFO: &fYou received &a&l3$ &ffor mining ore" to player add 3 to balance of player on break of emerald ore: send "&a&lINFO: &fYou received &a&l5$ &ffor mining ore" to player add 5 to balance of player on break of redstone ore: send "&a&lINFO: &fYou received &a&l1$ &ffor mining ore" to player add 1 to balance of player on break of iron ore: send "&a&lINFO: &fYou received &a&l3$ &ffor mining ore" to player add 3 to balance of player on break of coal ore: send "&a&lINFO: &fYou received &a&l2$ &ffor mining ore" to player add 2 to balance of player on break of quartz ore: send "&a&lINFO: &fYou received &a&l2$ &ffor mining ore" to player add 2 to balance of player # 4. ANKAORE # DELETE IF YOU DON'T NEED IT. #-------------------------------- # 5. ANKA-ANTI-ORE-PLACE # DELETE IF YOU DON'T NEED IT. on place of a any ore: cancel event # 5. ANKA-ANTI-ORE-PLACE # DELETE IF YOU DON'T NEED IT. #-------------------------------- # 6. ANKA-ANTIWEATHER # DELETE IF YOU DON'T NEED IT. on weather change to rain or thunder: if {ankaweather} is true: cancel event command /ankaweather []: permission: ankaweather.command trigger: if arg-1 is "enable": set {ankaweather} to true send "&c&l[!] &fAnti-Weather sucessfly enabled." if arg-1 is "disable": set {ankaweather} to false send "&c&l[!] &fAnti-Weather sucessfly disabled." # 6. ANKA-ANTIWEATHER # DELETE IF YOU DON'T NEED IT. #-------------------------------- # 7. ANKA-MONEY (Economy) (Need skript-placeholders to work.) # DELETE IF YOU DON'T NEED IT. options: usage: &c&lERROR: &fUse &c/am give/remove/set/balance &c&nplayer&r &cmoney permissionerror: &c&l[!] &fYou don't have permissions. usagepay: &c&lERROR: &fUse &c/ampay player money notenough: &c&lERROR: &fYou don't have &c%arg 2% &fcoins. variables: {amoney.%player%} = 0 command /am [] [] []: permission: ankamoney.editbalance permission message: {@permissionerror} trigger: if arg-3 is set: if arg-1 is "add": add arg-3 to {amoney.%arg 2%} send "&c&l[!] &fNew &a%arg 2% &fplayer balance is: &a%{amoney.%arg 2%}%" send "&a&l[!] &fAdded &a%arg 2% &fto your balance." to arg 2 if arg-1 is "set": set {amoney.%arg 2%} to arg-3 send "&c&l[!] &fNew &a%arg 2% &fplayer balance is: &a%{amoney.%arg 2%}%" if arg-1 is "remove": remove arg-3 from {amoney.%arg 2%} send "&c&l[!] &fNew &a%arg 2% &fplayer balance is: &a%{amoney.%arg 2%}%" if arg-2 is set: if arg-1 is "balance": send "&c&l[!] &a%arg 2% &fbalance is &a%{amoney.%arg 2%}%" if arg-1 is not set: send "{@usage}" command /ambal: permission: ankamoney.mybalance permission message: {@permissionerror} trigger: send "&c&l[i] &fYour balance: &a%{amoney.%player%}%" command /ampay [] []: permission: ankamoney.pay permission message: {@permissionerror} trigger: if arg-2 is set: if {amoney.%player%} >= arg-2: remove arg-2 from {amoney.%player%} add arg-2 to {amoney.%arg 1%} send "&a&l[!] &fYou transfered &a%arg 2% &fto &a%arg 1%" send "&a&l[!] &fAdded &a%arg 2% &fto your balance." to arg 1 else: send "{@notenough}" else: send "{@usagepay}" on placeholderapi placeholder request for the prefix "amoney": if the identifier is "amount": set {name} to player's name set the result to "%{amoney.%{name}%}%" # 7. ANKA-MONEY (Economy) (Need skript-placeholders to work.) # DELETE IF YOU DON'T NEED IT. #---------------------------------- # 8. ANKA-BOOST # DELETE IF YOU DON'T NEED IT. variables: {boost} = false command /boostserver: permission: anka.boost trigger: if {boost} = false: send "&a&lINFO: &fAll server physics now disabled." set {boost} to true else: send "&a&lINFO: &fAll server physics now enabled" set {boost} to false on physics: if {boost} = true: cancel event # 8. ANKA-BOOST # DELETE IF YOU DON'T NEED IT. #---------------------------------------- # 9. ANKA-AUTOMESSAGES # DELETE IF YOU DON'T NEED IT. options: time: 30 countofmessages: 3 every {@time} seconds: set {_random} to random integer between 1 and {@countofmessages} wait 1 tick if {_random} is 1: broadcast "&f" broadcast "&6 ╔ &fText 1" broadcast "&6 ╚ &fChange this message" broadcast "&f" if {_random} is 2: broadcast "&f" broadcast "&6 ╔ &fText 2" broadcast "&6 ╚ &fChange this message" broadcast "&f" if {_random} is 3: broadcast "&f" broadcast "&6 ╔ &fText 3" broadcast "&6 ╚ &fChange this message" broadcast "&f" # 9. ANKA-AUTOMESSAGES # DELETE IF YOU DON'T NEED IT. #---------------------------------------- # 10. ANKA-CORE options: gmothers: anka.gmothers notpermissions: &c&lERR: &fYou don't have permissions. notfound: &c&lERR: &fPlayer not found! flyothers: anka.flyothers healothers: anka.healothers feedothers: anka.feedothers permtogglemsg: anka.msgtoggle gmperm: anka.gm permwb: anka.wb permec: anka.ec permbc: anka.bc permfeed: anka.feed permheal: anka.heal permfly: anka.fly permgod: anka.god permlockchat: anka.chatlock permmsg: anka.msg perminvsee: anka.invsee permanvil: anka.anvil permtp: anka.tp permsavekit: anka.savekit permlistkits: anka.kitlist permrename: anka.rename permcmdspy: anka.cmdspy permsethome: anka.sethome worldhome: world variables: {cspy.%player%} = false command /sethome []: permission: {@permsethome} cooldown: 5 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c5 seconds. trigger: if arg-1 is set: if player's world = "{@worldhome}": if {home.%arg 1%} is not true: set {home.%arg 1%.xcord} to player's x-coordinate set {home.%arg 1%.ycord} to player's y-coordinate set {home.%arg 1%.zcord} to player's z-coordinate set {home.%arg 1%.owner} to player's name set {home.%arg 1%} to true send "&a&lHOMES: &fYou created home with name &a%arg 1%" else: send "&a&lUSE: &fCommand &a/sethome NAME" command /home []: cooldown: 5 seconds cooldown message: &c&lERROR: &fYou can use this command every &c5 seconds. trigger: if arg-1 is set: if {home.%arg 1%.owner} is "%player%": teleport player to location ({home.%arg 1%.xcord}, {home.%arg 1%.ycord}, {home.%arg 1%.zcord}) in world "{@worldhome}" send "&a&lINFO: &fTeleporting.." else: send "&a&lHOMES: &fUse &a&n/home " command /cmdspy: permission: {@permcmdspy} cooldown: 5 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c5 seconds. trigger: if {cspy.%player%} = false: send "&f" send "&6 ╔ &fYou have been enabled" send "&6 ╚ &fthe &aCommandSpy" send "&f" set {cspy.%player%} to true else: send "&f" send "&6 ╔ &fYou have been disabled" send "&6 ╚ &fthe &aCommandSpy" send "&f" set {cspy.%player%} to false on command: if sender is a player: loop all players: if {cspy.%loop-value%} is true: send "&6&lSPY: &a%player%&7: &6&n/%complete command%&r" to loop-player command /rename []: permission: {@permrename} permission message: {@notpermissions} cooldown: 10 seconds cooldown message: &c&lERROR: &fYou can use this command every &c10 seconds. trigger: if player's tool is not air: if arg-1 is set: set name of player's tool to colored arg-1 else: send "&a&lUSE: &f/rename &atext" else: send "&c&lERR: &fYou must hold the item to execute this command." command /kit []: cooldown: 2 hours cooldown message: &c&lERROR: &fYou can use this command every &c2 hours. trigger: if player has permission "%{kitperm.%arg 1%}%": if arg-1 is set: if inventory of player is empty: loop 41 times: set slot loop-number -1 of player to {kit::%arg 1%::slot::%loop-number%} else: send "&c&lERROR: &fYour inventory must be empty to get kit." else: send "{@notpermissions}" command /kitsave [] []: permission: {@permsavekit} permission message: {@notpermissions} trigger: if arg-2 is set: add arg-1 to {kits} loop 41 times: set {kit::%arg 1%::slot::%loop-number%} to slot loop-number - 1 of player clear inventory of player command /teleport [] []: permission: {@permtp} permission message: {@notpermissions} cooldown: 10 seconds aliases: /tp cooldown message: &c&lERROR: &fYou can use this command every &c10 seconds. trigger: if arg-2 is set: if arg-1 is online: if arg-2 is online: teleport arg-1 to arg-2 send "&a&lINFO: &fTeleported to &a%arg 2%" to arg-1 else: send "{@notfound}" else: send "{@notfound}" else: if arg-1 is set: if arg-1 is online: send "&a&lINFO: &fTeleported to &a%arg 1%" teleport player to arg-1 else: send "{@notfound}" else: send "&a&lUSE: &f/tp &a[player] [player]" command /anvil: permission: {@permanvil} cooldown: 10 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c10 seconds. trigger: open anvil to the player command /invsee []: permission: {@perminvsee} aliases: /inv permission message: {@notpermissions} cooldown: 10 seconds cooldown message: &c&lERROR: &fYou can use this command every &c10 seconds. trigger: if arg-1 is online: open arg-1's inventory to player else: send "{@notfound}" command /gamemode [] []: permission: {@gmperm} aliases: /gm cooldown: 5 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c5 seconds. trigger: if arg-2 is not set: if arg-1 is set: if arg-1 is "0": set gamemode of player to Survival send "&f" send "&6 ╔ &fYour current gamemode changed" send "&6 ╚ &fto &aSurvival." send "&f" if arg-1 is "1": set gamemode of player to Creative send "&f" send "&6 ╔ &fYour current gamemode changed" send "&6 ╚ &fto &aCreative." send "&f" if arg-1 is "2": set gamemode of player to Adventure send "&f" send "&6 ╔ &fYour current gamemode changed" send "&6 ╚ &fto &aAdventure Mode." send "&f" if arg-1 is "3": set gamemode of player to Spectator send "&f" send "&6 ╔ &fYour current gamemode changed" send "&6 ╚ &fto &aSpectator Mode." send "&f" else: send "&a&lUSE: &fCommand Usage: &a/gm 0/1/2/3" else: if player has permission "{@gmothers}": if arg-2 is online: if arg-1 is "0": set gamemode of arg-2 to Survival send "&f" to arg-2 send "&6 ╔ &fYour current gamemode changed" to arg-2 send "&6 ╚ &fto &aSurvival." to arg-2 send "&f" to arg-2 if arg-1 is "1": set gamemode of arg-2 to Creative send "&f" to arg-2 send "&6 ╔ &fYour current gamemode changed" to arg-2 send "&6 ╚ &fto &aCreative." to arg-2 send "&f" to arg-2 if arg-1 is "2": set gamemode of arg-2 to Adventure send "&f" to arg-2 send "&6 ╔ &fYour current gamemode changed" to arg-2 send "&6 ╚ &fto &aAdventure Mode." to arg-2 send "&f" to arg-2 if arg-1 is "3": set gamemode of arg-2 to Spectator send "&f" to arg-2 send "&6 ╔ &fYour current gamemode changed" to arg-2 send "&6 ╚ &fto &aSpectator Mode." to arg-2 send "&f" to arg-2 else: send "{@notfound}" else: send "{@notpermissions}" command /broadcast []: permission: {@permbc} permission message: {@notpermissions} aliases: /bc cooldown: 60 seconds cooldown message: &c&lERROR: &fYou can use this command every &c60 seconds. trigger: if arg-1 is set: send "&f" send "&6 ╔ &fGlobal message from player &a%player%" send "&6 ╚ &fHis message: &a%arg 1%" send "&f" else: send "&a&lUSE: &fCommand Usage: &a/bc [text]" variables: {god.%player%} = false on damage: if {god.%victim%} is true: cancel event command /god: permission: {@permgod} cooldown: 5 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c5 seconds. trigger: if {god.%player%} = false: send "&f" send "&6 ╔ &fYou have been enabled" send "&6 ╚ &fthe &agod &fmode." send "&f" set {god.%player%} to true else: send "&f" send "&6 ╔ &fYou have been disabled" send "&6 ╚ &fthe &agod &fmode." send "&f" set {god.%player%} to false variables: {fly.%player%} = false command /fly []: permission: {@permfly} cooldown: 10 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c10 seconds. trigger: if arg-1 is not set: if {fly.%player%} = false: send "&f" send "&6 ╔ &fYou have been enabled" send "&6 ╚ &fthe &afly &fmode." send "&f" set {fly.%player%} to true set player's flight mode to true else: send "&f" send "&6 ╔ &fYou have been disabled" send "&6 ╚ &fthe &afly &fmode." send "&f" set player's flight mode to false set {fly.%player%} to false else: if player has permission "{@flyothers}": if arg-1 is online: if {fly.%arg 1%} = false: send "&f" to arg-1 send "&6 ╔ &fYou have been enabled" to arg-1 send "&6 ╚ &fthe &afly &fmode." to arg-1 send "&f" to arg-1 set {fly.%arg 1%} to true set arg-1's flight mode to true else: send "&f" to arg-1 send "&6 ╔ &fYou have been disabled" to arg-1 send "&6 ╚ &fthe &afly &fmode." to arg-1 send "&f" to arg-1 set arg-1's flight mode to false set {fly.%arg 1%} to false else: send "{@notfound}" else: send "{@notpermissions}" variables: {mtoggle.%player%} = false command /msg [] []: permission: {@permmsg} aliases: /m permission message: {@notpermissions} cooldown: 5 seconds cooldown message: &c&lERROR: &fYou can use this command every &c5 seconds. trigger: if arg-2 is set: if arg-1 is online: if {mtoggle.%arg 1%} = false: send "&6&l✉ &f&nYou&r &7- &f&n%arg 1%&r&7&l: &a&o%arg 2%" to player send "&6&l✉ &f&n%player%&r &7- &f&nYou&r&7&l: &a&o%arg 2%" to arg-1 else: send "&c&lERROR: &fPlayer blocked all messages from player." else: send "&c&lERROR: &c%arg 1% &fnot found." else: send "&a&lUSE: &fCommand Usage: &a/msg [player] [text]" command /togglemsg: permission: {@permtogglemsg} cooldown: 5 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c5 seconds. trigger: if {mtoggle.%player%} = false: send "&f" send "&6 ╔ &fYou have been enabled" send "&6 ╚ &fprivate messages." send "&f" set {mtoggle.%player%} to true else: send "&f" send "&6 ╔ &fYou have been disabled" send "&6 ╚ &fprivate messages." send "&f" set {mtoggle.%player%} to false command /workbench: permission: {@permwb} cooldown: 15 seconds aliases: /wb permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c15 seconds. trigger: open crafting table to the player command /enderchest: permission: {@permec} cooldown: 15 seconds aliases: /ec permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c15 seconds. trigger: open ender chest of player to player command /heal []: permission: {@permheal} cooldown: 40 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c40 seconds. trigger: if arg-1 is not set: send "&f" send "&6 ╔ &fYou have been" send "&6 ╚ &ahealed." send "&f" heal the player by 10 hearts else: if player has permission "{@healothers}": if arg-1 is online: send "&f" to arg-1 send "&6 ╔ &fYou have been" to arg-1 send "&6 ╚ &ahealed." to arg-1 send "&f" to arg-1 heal the arg-1 by 10 hearts else: send "{@notfound}" else: send "{@notpermissions}" command /feed []: permission: {@permfeed} cooldown: 40 seconds permission message: {@notpermissions} cooldown message: &c&lERROR: &fYou can use this command every &c40 seconds. trigger: if arg-1 is not set: send "&f" send "&6 ╔ &fYou have been" send "&6 ╚ &afed." send "&f" feed the player by 10 beefs else: if player has permission "{@feedothers}": if arg-1 is online: send "&f" to arg-1 send "&6 ╔ &fYou have been" to arg-1 send "&6 ╚ &afed." to arg-1 send "&f" to arg-1 feed the arg-1 by 10 beefs else: send "{@notfound}" else: send "{@notpermissions}" variables: {gchat} = false command /lockchat: permission: {@permlockchat} permission message: {@notpermissions} trigger: if {gchat} = true: send "&f" send "&6 ╔ &fGlobal chat has been locked" send "&6 ╚ &fby &a%player%" send "&f" set {gchat} to false else: send "&f" send "&6 ╔ &fGlobal chat has been unlocked" send "&6 ╚ &fby &a%player%" send "&f" set {gchat} to true on chat: if {gchat} = false: cancel event send "&c&lERROR: &fGlobal chat has been locked!" #----------------------OTHER---------------FEATURES----------- #ClearLag options: permcleardrop: anka.cleardrop timeclear: 5 #minutes command /cleardrop: permission: {@permcleardrop} trigger: clear {_items} loop entities: loop-entity is a dropped item clear loop-entity add 1 to {_items} if {_items} is not set: set {_items} to 0 broadcast "&a&lSERVER: &a%{_items}% &fitems removed!" every {@timeclear} minutes: broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c5 &fminutes!" wait 2 minutes broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c3 &fminutes!" wait 2 minutes broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c60 &fseconds!" wait 30 seconds broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c30 &fseconds!" wait 25 seconds broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c5 &fseconds!" wait 1 seconds broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c4 &fseconds!" wait 1 seconds broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c3 &fseconds!" wait 1 seconds broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c2 &fseconds!" wait 1 seconds broadcast "&c&lSERVER: &fLying objects on the ground will be removed after &c1 &fseconds!" wait 1 seconds execute console command "cleardrop"