options: min.x: -500 max.x: 500 min.z: -500 max.z: 500 cooldown: 10 minutes avoid: air or water block or lava block worlds: "world" permission: randomtp.use PermMsg: &4Nie masz uprawnień, aby użyć tek komendy! NoWorldMsg: &4Nie możesz użyć tej komendy w tym świecie! SpamMsg: &4Please do not spam this command! NoMoveMsg: &4Proszę się nie ruszać, dopóki nie zostaniesz teleportowany! function rtp(p: player): delete {movewait.%{_p}%} set {_loc::old} to {_p}'s location continueRtpLOOP({_p}, {_loc::old}) function continueRtpLOOP(p: player, oldloc: location): if {_p}'s location is {_oldloc}: set {_loc::new} to location at random number between {@min.x} and {@max.x}, 0, random number between {@min.z} and {@max.z} in {_p}'s world loop blocks above {_loc::new}: if loop-block and block above loop-block are air: if block under loop-block is not air or water or lava: set {_loc::new} to location of loop-block teleport {_p} to {_loc::new} set {cooldowns::randomtp::%{_p}%} to now if light level at {_p} <= 2: set block at {_p} to torch stop stop wait 2 ticks continueRtpLOOP({_p}, {_oldloc}) Command /randomtp: description: Teleportuje gracza do losowego miejsca, które nie znajduje się w wodzie permission: {@permission} permission message: {@PermMsg} aliases: /rtp, /random trigger: if world is not {@worlds}: send "{@NoWorldMsg}" else: if difference between {cooldowns::randomtp::%player%} and now < {@cooldown}: send "{@SpamMsg}" else: send "{@NoMoveMsg}" rtp(player)