# [ --- ] Konfiguracja plikow [ --- ] # on load: set yaml value "guiName" from file "config.yml" to "§f§l» §3AntyBot" set yaml value "greenWool" from file "config.yml" to "&f&l» &b&lKliknij mnie!" set yaml value "loreWool" from file "config.yml" to "&f&l» &3&oAntyBot!" set yaml value "s-Variables" from file "config.yml" to "&f&l» &3Poprawnie, mozna wylaczyc gui!" set yaml value "s-KickPlayer" from file "config.yml" to "&f&l» &cZla welna zostala wybrana!" set {guiName} to yaml value "guiName" from file "config.yml" set {greenWool} to yaml value "greenWool" from file "config.yml" set {loreWool} to yaml value "loreWool" from file "config.yml" set {s-Variables} to yaml value "s-Variables" from file "config.yml" set {s-KickPlayer} to yaml value "s-KickPlayer" from file "config.yml" stop # [ --- ] Konfiguracja plikow [ --- ] # # [ --- ] Zmienna [ --- ] # variables: {antybot::%player%} = false # [ --- ] Zmienna [ --- ] # # [ --- ] Dzialanie skryptu [ --- ] # on join: if player is alive: wait 1 second set {antybot::%player%} to true set {_a} to random integer from 0 to 8 open chest with 1 row named "%{guiName}%" to player wait 5 ticks set player's current inventory's slot {_a} to green wool named "%{greenWool}%" with lore "%{loreWool}%" stop on inventory close: if {antybot::%player%} is true: wait 1 second set {_a} to random integer from 0 to 8 open chest with 1 row named "%{guiName}%" to player wait 5 ticks set player's current inventory's slot {_a} to green wool named "%{greenWool}%" with lore "%{loreWool}%" stop on inventory click: if inventory name of current inventory of player is "%{guiName}%": if player's current inventory's slot slot is green wool: cancel event set {antybot::%player%} to false send "%{s-Variables}%" on inventory click: if inventory name of current inventory of player is "%{guiName}%": if player's current inventory's slot slot isn't green wool: kick player due to "%{s-KickPlayer}%" stop # [ --- ] Dzialanie skryptu [ --- ] #