options: prefix: &eSerwer &3>> commandUsage: &cUżycie komendy to /antycobweb commandPermission: serwer.antycobweb.give commandPermissionMessage: &cNie masz uprawnień do wykonania tej komendy. commandCooldown: 1 seconds commandCooldownMessage: &cChwila, bo nie nadążąm. Odczekaj chwilę zanim użyjesz tego ponownie! commandDescription: Komenda /antycobweb daje dowolnemu graczowi na serwerze AntyCobweba. commandYourSuccess: &aPomyślnie nadałeś sobie AntyCobweba. commandOtherSuccess: &aPomyślnie nadałeś AntyCobweba graczowi &2&a. commandGiven: &aOtrzymałeś AntyCobweba. commandOffline: &cTego gracza nie ma teraz na serwerze. item: clay ball itemName: &aAnty&6-&b&lCobweb itemLore: &dUsuwa pajęczyny w promieniu &53 &dkratek. Możesz użyć go co &5&d. itemCooldown: 30 seconds command /antycobweb : executable by: players usage: {@prefix} {@commandUsage} permission: {@prefix} {@commandPermission} permission message: {@prefix} {@commandPermissionMessage} description: {@commandDescription} aliases: /ac trigger: if {cc::%player%} is set: if difference between {cc::%player%} and now is smaller than {@commandCooldown}: send "{@prefix} {@commandCooldownMessage}" to player stop loop all players: add loop-player to {_g::*} if {_g::*} contains arg-1: set {cc::%player%} to now set {_ag} to arg-1 replaceDate(player, "lore") if arg-1 is sender: send "{@prefix} {@commandYourSuccess}" to sender else: set {_cos} to "{@commandOtherSuccess}" replace all "" in {_cos} with "%arg-1%" send "{@prefix} %{_cos}%" to sender send "{@prefix} {@commandGiven}" to argument 1 else: send "{@prefix} {@commandOffline}" stop on right click: set {_t} to name of player's tool if {_t} is "{@itemName}": if {ic::%player%} is set: if difference between {ic::%player%} and now is smaller than {@itemCooldown}: stop set {ic::%player%} to now set {_ic} to {@itemCooldown} set item cooldown of player's tool for player to {_ic} loop all blocks in radius 1.5 of player: if loop-block is cobweb: break loop-block play sound "entity.experience_orb.pickup" with pitch 2 to player function replaceDate(g: player, type: text): set {_il} to "{@itemLore}" replace all "" in {_il} with "{@itemCooldown}" replace all " seconds" in {_il} with "s" replace all " second" in {_il} with "s" replace all " minutes" in {_il} with "m" replace all " minute" in {_il} with "m" replace all " hours" in {_il} with "h" replace all " hour" in {_il} with "h" replace all " days" in {_il} with "d" replace all " day" in {_il} with "d" replace all " weeks" in {_il} with "w" replace all " week" in {_il} with "w" replace all " months" in {_il} with "mo" replace all " month" in {_il} with "mo" replace all " years" in {_il} with "y" replace all " year" in {_il} with "y" give 1 of {@item} named "{@itemName}" with lore {_il} to {_g}