Advertisement
Guest User

ff

a guest
Feb 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. options:
  2.  
  3. permission: Giveall.Admin
  4.  
  5. permissionmessage: &cGlem det.. Kun admins!
  6.  
  7. prefix: &c&lGIVEALL &8» &b
  8.  
  9. Giveallnachricht: &bSpilleren &3%player% &bgav alle spillere en &3genstand. :o
  10.  
  11. Keiniteminderhand: &bDu &bSKAL &3have en item i hånden
  12.  
  13.  
  14.  
  15. command /giveall [<text>]:
  16.  
  17. permission: {@permission}
  18.  
  19. permission message: {@permissionmessage}
  20.  
  21. trigger:
  22.  
  23. set {giveallitem.%player%} to held item of player
  24.  
  25. set {_itemname} to name of held item of player
  26.  
  27. set {_itemtyp} to type of held item of player
  28.  
  29. set {_itemammount} to amount of held item of player
  30.  
  31. {giveallitem.%player%} is not air:
  32.  
  33. if {_itemname} isn't set:
  34.  
  35. wait 2 ticks
  36.  
  37. give {giveallitem.%player%} to all players
  38.  
  39. broadcast "{@prefix} {@Giveallnachricht}"
  40.  
  41. broadcast "{@prefix} Genstand &8» &b%{_itemammount}% %{_itemtyp}%"
  42.  
  43. clear {giveallitem.%player%}
  44.  
  45. else if {_itemname} is set:
  46.  
  47. wait 2 ticks
  48.  
  49. give {giveallitem.%player%} to all players
  50.  
  51. broadcast "{@prefix} {@Giveallnachricht}"
  52.  
  53. broadcast "{@prefix} Item: &a%{_itemammount}%X %{_itemtyp}% &7Name: %{_itemname}%&7"
  54.  
  55. clear {giveallitem.%player%}
  56.  
  57. else:
  58.  
  59. message "{@prefix} {@Keiniteminderhand}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement