noftaly

Untitled

Sep 14th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1.  
  2. command /sethistory:
  3. trigger:
  4. if player is op:
  5. set {HISTORY} to player's location
  6. send "&aLocation set"
  7.  
  8. function Histoire(p: player):
  9. teleport {_p} to {HISTORY}
  10.  
  11.  
  12. function bypassContains(p: player) :: boolean:
  13. loop {bypassworld::*}:
  14. if loop-value is {_p}:
  15. return true
  16. return false
  17.  
  18. on break:
  19. if bypassContains(player) is false:
  20. if player's world is "world":
  21. cancel event
  22.  
  23. on place:
  24. if bypassContains(player) is false:
  25. if player's world is "world":
  26. cancel event
  27.  
  28. command /bypassworld [<text>] [<player>]:
  29. permission: admin.bypassworld
  30. permission message: &cTu ne peux pas faire ceci.
  31. trigger:
  32. if arg-1 is "add":
  33. if arg-2 is set:
  34. if {bypassworld::%arg-2%} is set:
  35. message "&cCe joueur est déjà autorisé a faire ceci"
  36. else:
  37. add arg-2 to {bypassworld::*}
  38. message "&aJoueur ajouté"
  39. message "&aAjouté a la liste des joueurs autorisés a build dans world" to arg-2
  40. else:
  41. message "&cIndique un joueur."
  42. else if arg-1 is "remove":
  43. if arg-2 is set:
  44. if {bypassworld::%arg-2%} is set:
  45. remove arg-2 from {bypassworld::*}
  46. message "&aJoueur retiré"
  47. message "&aRetiré a la liste des joueurs autorisés a build dans world" to arg-2
  48. else:
  49. message "&cCe joueur n'est pas autorisé a faire ceci"
  50. else if arg-1 is "list":
  51. message "&aJoueurs : %{bypassworld::*}%"
  52. else:
  53. message "/bypassworld <add/remove/list>"
  54.  
  55. function tutorialEndGUI(p: player):
  56. open virtual chest inventory with 5 rows named "&cChoisis ta classe..." to {_p}
  57. format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43 and 44 of {_p} with blue stained glass pane named "&cChoisis ta classe..." to do nothing
  58. format gui slot 10, 11, 12, 13, 14, 15, 16, 19, 21, 23, 25, 28, 29, 30, 31, 32, 33 and 34 of {_p} with white stained glass pane named "&cChoisis ta classe..." to do nothing
  59. format gui slot 20 of {_p} with iron sword named "&6&lGuerrier !" with lore "&r||&7&m------------------------------||&r||&8&l » &cChoisis cette classe uniquement si tu penses ||&cêtre un bon guerrier...||&r||&8&l » &eGrâce à cette classe...||&fblabla||&fblabla||&fblabla||&r||&7&m------------------------------||&r||&7&oClique pour choisir cette classe..."
  60. format gui slot 22 of {_p} with bow named "&a&lArcher !" with lore "&r||&7&m------------------------------||&r||&8&l » &cChoisis que si tes talents d'archers ont déjà||&cfait leurs preuves...||&r||&8&l » &eGrâce à cette classe...||&fblabla||&fblabla||&fblabla||&r||&7&m------------------------------||&r||&7&oClique pour choisir cette classe..."
  61. format gui slot 24 of {_p} with blaze powder named "&5&lMage !" with lore "&r||&7&m------------------------------||&r||&8&l » &cChoisis cette classe seulement si tu sais manier||&ctoute sorte de sorts...||&r||&8&l » &eGrâce à cette classe...||&fblabla||&fblabla||&fblabla||&r||&7&m------------------------------||&r||&7&oClique pour choisir cette classe..."
  62.  
  63. command /testgui:
  64. trigger:
  65. tutorialEndGUI(player)
Advertisement
Add Comment
Please, Sign In to add comment