Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1.  
  2. command /speedboots [<text>] [<offline player>]:
  3. permission: *
  4. permission message: &6&lSpeed &9&lBoots &8» &7Nincsen ehhez jogosultságod.
  5. aliases: /sb
  6. trigger:
  7. if arg-1 is not set:
  8. send "&7&m-----------&r &8× &6&lSpeed &9&lBoots &r&8× &7&m-----------"
  9. send ""
  10. send " &8&m»&r &7/speedboots give &f[Név] "
  11. send ""
  12. else:
  13. if arg-1 is "give":
  14. if arg-2 is set:
  15. if arg-2 is online:
  16. send "&6&lSpeed &9&lBoots &8» &7Sikeresen adtál neki egy könyvet. &8&o( &f&o%arg-2% &8&o)"
  17. set {_jatekos} to "%arg 2%" parsed as player
  18. give 1 enchanted book named "&8[ &6&lSpeed &9&lBoots &8]" to {_jatekos}
  19. else:
  20. send "&6&lSpeed &9&lBoots &8» &7A játékos akit meg adtál nincs fent. &8&o( &f&o%arg-2% &8&o)"
  21. else:
  22. send "&6&lSpeed &9&lBoots &8» &7Nem adtál meg nevet!"
  23. send "&6&lSpeed &9&lBoots &8» &7Helyes használat: &f/sb give [Név]"
  24. else:
  25. send "&6&lSpeed &9&lBoots &8» &7Ismeretlen alparancs."
  26.  
  27. on inventory click:
  28. if slot clicked slot of event-inventory is boots:
  29. if cursor item of player is enchanted book named "&8[ &6&lSpeed &9&lBoots &8]":
  30. if name of clicked item contains "&6&lSpeed &9&lBoots":
  31. send "&6&lSpeed &9&lBoots &8» &7Erre a tárgyra már nem tudod rátenni."
  32. else:
  33. cancel event
  34. set cursor item of player to air
  35. if name of clicked item is set:
  36. set name of clicked item to "%name of clicked item% &8+ &6&lSpeed &9&lBoots"
  37. else:
  38. if clicked item is diamond boots:
  39. set name of clicked item to "&fDiamond Boots &8+ &6&lSpeed &9&lBoots"
  40. if clicked item is golden boots:
  41. set name of clicked item to "&fGolden Boots &8+ &6&lSpeed &9&lBoots"
  42. if clicked item is iron boots:
  43. set name of clicked item to "&fIron Boots &8+ &6&lSpeed &9&lBoots"
  44. if clicked item is leather boots:
  45. set name of clicked item to "&fLeather Boots &8+ &6&lSpeed &9&lBoots"
  46. if clicked item is chain boots:
  47. set name of clicked item to "&fChain Boots &8+ &6&lSpeed &9&lBoots"
  48.  
  49. cancel event
  50.  
  51. every 0.8 seconds:
  52. loop all players:
  53. if name of loop-player's boots contains "&6&lSpeed &9&lBoots":
  54. apply speed 2 to the loop-player for 1 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement