Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /speedboots [<text>] [<offline player>]:
- permission: *
- permission message: &6&lSpeed &9&lBoots &8» &7Nincsen ehhez jogosultságod.
- aliases: /sb
- trigger:
- if arg-1 is not set:
- send "&7&m-----------&r &8× &6&lSpeed &9&lBoots &r&8× &7&m-----------"
- send ""
- send " &8&m»&r &7/speedboots give &f[Név] "
- send ""
- else:
- if arg-1 is "give":
- if arg-2 is set:
- if arg-2 is online:
- send "&6&lSpeed &9&lBoots &8» &7Sikeresen adtál neki egy könyvet. &8&o( &f&o%arg-2% &8&o)"
- set {_jatekos} to "%arg 2%" parsed as player
- give 1 enchanted book named "&8[ &6&lSpeed &9&lBoots &8]" to {_jatekos}
- else:
- send "&6&lSpeed &9&lBoots &8» &7A játékos akit meg adtál nincs fent. &8&o( &f&o%arg-2% &8&o)"
- else:
- send "&6&lSpeed &9&lBoots &8» &7Nem adtál meg nevet!"
- send "&6&lSpeed &9&lBoots &8» &7Helyes használat: &f/sb give [Név]"
- else:
- send "&6&lSpeed &9&lBoots &8» &7Ismeretlen alparancs."
- on inventory click:
- if slot clicked slot of event-inventory is boots:
- if cursor item of player is enchanted book named "&8[ &6&lSpeed &9&lBoots &8]":
- if name of clicked item contains "&6&lSpeed &9&lBoots":
- send "&6&lSpeed &9&lBoots &8» &7Erre a tárgyra már nem tudod rátenni."
- else:
- cancel event
- set cursor item of player to air
- if name of clicked item is set:
- set name of clicked item to "%name of clicked item% &8+ &6&lSpeed &9&lBoots"
- else:
- if clicked item is diamond boots:
- set name of clicked item to "&fDiamond Boots &8+ &6&lSpeed &9&lBoots"
- if clicked item is golden boots:
- set name of clicked item to "&fGolden Boots &8+ &6&lSpeed &9&lBoots"
- if clicked item is iron boots:
- set name of clicked item to "&fIron Boots &8+ &6&lSpeed &9&lBoots"
- if clicked item is leather boots:
- set name of clicked item to "&fLeather Boots &8+ &6&lSpeed &9&lBoots"
- if clicked item is chain boots:
- set name of clicked item to "&fChain Boots &8+ &6&lSpeed &9&lBoots"
- cancel event
- every 0.8 seconds:
- loop all players:
- if name of loop-player's boots contains "&6&lSpeed &9&lBoots":
- apply speed 2 to the loop-player for 1 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement