options: prefix: &4Serwer &e>> item: blaze rod itemName: &a&lAnty &b&lCobweb itemLore: <##4F5051>&lKliknij prawym przyciskiem myszy, <##9F9263>&laby użyć przedmiotu. itemCooldown: 5 seconds itemRegions: "spawn" or "pvp" or "non-pvp" itemRegionMessage: &cNie możesz tu tego użyć! commandUsage: &cPoprawne użycie: /antycobweb commandAliases: /ac commandDescription: Nadaje wybraną ilość antycobwebów wybranemu graczowi. commandPermission: server.antycobweb commandPermissionMessage: &cNie masz permisji do użycia tej komendy. commandMax: 576 commandTooLittle: &cNie możesz podać liczby zerowej lub ujemnej! commandTooMany: &cNie możesz podać liczby większej niż &4|LICZBA|&c! commandYourSuccess: &aPomyślnie nadałeś sobie &2|LICZBA|&a AntyCobwebów! commandOtherSuccess: &aPomyślnie nadałeś &2|LICZBA|&a AntyCobwebów graczowi &2|GRACZ|&a! commandGiven: &aOtrzymałeś &2|LICZBA|&a AntyCobwebów od administratora &2|GRACZ|&a! commandNoPlayer: &cTaki gracz jest offline! variables: {cd::%player%} = 0 on rightclick with blaze rod: set {_it} to 1 of player's tool if {_it} is {@item} named "{@itemName}" with lore "{@itemLore}": if {cd::%player%} is less than 1: if region at player contains {@itemRegions}: send "{@prefix} {@itemRegionMessage}" to player stop loop all blocks in radius 1.5 of player: if loop-block is cobweb: break (loop-block) set {_c} to {@itemCooldown} set item cooldown of {@item} for player to {_c} set {cd::%player%} to 30 wait {@itemCooldown} set {cd::%player%} to 0 command /antycobweb [] []: usage: {@prefix} {@commandUsage} aliases: {@commandAliases} description: {@commandDescription} permission: {@commandPermission} permission message: {@prefix} {@commandPermissionMessage} trigger: loop all players: add loop-player to {_g::*} if {_g::*} doesn't contain arg-2: send "{@prefix} {@commandNoPlayer}" stop set {_p} to arg-2 parsed as offline player if arg-1 is not set: send usage to the sender stop if arg-1 is less than or equal to 0: send "{@prefix} {@commandTooLittle}" stop if arg-1 is greater than {@commandMax}: set {_} to "{@commandTooMany}" replace all "|LICZBA|" in {_} with "{@commandMax}" send "{@prefix} %{_}%" stop if arg-2 is sender: give arg-1 of {@item} named "{@itemName}" with lore "{@itemLore}" to player set {_wss} to "{@commandYourSuccess}" replace all "|LICZBA|" in {_wss} with "%arg-1%" send "{@prefix} %{_wss}%" stop set {_ws} to "{@commandOtherSuccess}" set {_wa} to "{@commandGiven}" replace all "|LICZBA|" in {_ws} with "%arg-1%" replace all "|LICZBA|" in {_wa} with "%arg-1%" replace all "|GRACZ|" in {_ws} with arg-2 replace all "|GRACZ|" in {_wa} with "%sender%" give arg-1 of {@item} named "{@itemName}" with lore "{@itemLore}" to {_p} send "{@prefix} %{_ws}%" to sender send "{@prefix} %{_wa}%" to arg-2 parsed as player stop on tab complete of "/antycobweb": set tab completion for position 2 to all players