Advertisement
Agentgamerpro

Purchase Help | Skript / Buycraft

Dec 28th, 2020
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. command /PurchaseHelp <text>:
  2. aliases: /ph
  3. usage: &cUsage: &l/PurchaseHelp <Type Problem/Issue Description>
  4. trigger:
  5. if arg-1 is set:
  6. add player to {PurchaseHelp::*}
  7. send "&aYour Problem has been sent to admins and will be with you shortly!" to player
  8. loop all players:
  9. if loop-player has permission "Purchase.Help":
  10. send "&c%player% &cis having a purchase problem!" to loop-player
  11. send "&c""%arg-1%&c""" to loop-player
  12. send "&cReply with /Contact %player%" to loop-player
  13.  
  14. command /contact <offline player>:
  15. permission: Purchase.Help
  16. permission message: &cInsufficent Permission!
  17. usage: &cUsage: &l/Contact <Player>
  18. trigger:
  19. if {PurchaseHelp::*} contains arg-1:
  20. if {PurchaseMessages::*} is not set:
  21. send "&aYour messages will now be sent to %arg-1%&a. To cancel, type /ContactCancel <Player>" to player
  22. send "&aAn admin is willing to help you! Your message will now only be sent to %player%&a!" to arg-1
  23. remove arg-1 from {PurchaseHelp::*}
  24. add arg-1 to {PurchaseMessages::*}
  25. add player to {PurchaseMessages::*}
  26. else:
  27. send "&cThere's a meeting going on right now. Please wait while it finishes up." to player
  28. add player to {PurchaseAdminWait::*}
  29. else:
  30. send "&c%player% &cis not having a purchase problem, or is offline." to player
  31.  
  32. command /ContactCancel <offline player>:
  33. permission: Purchase.Help
  34. permission message: &cInsufficent Permission!
  35. usage: &cUsage: &l/ContactCancel <Player>
  36. trigger:
  37. if {PurchaseMessages::*} contains arg-1:
  38. if {PurchaseMessages::*} contains player:
  39. clear {PurchaseMessages::*}
  40. send "&aMeeting has been closed/canceled! You can now talk normaly." to player
  41. else:
  42. if player has permission "Purchase.Admin":
  43. send "&cMeeting has been forced closed/canceled by %player%&c! You can now talk normaly." to {PurchaseMessages::*}
  44. clear {PurchaseMessages::*}
  45. else:
  46. send "&cYou cannot close this meeting as you're not in it!" to player
  47. else:
  48. send "&cPlayer is not in a meeting or is offline!" to player
  49.  
  50. on disconnect:
  51. if {PurchaseHelp::*} contains player:
  52. remove player from {PurchaseHelp::*}
  53. else if {PurchaseMessages::*} contains player:
  54. clear {PurchaseMessages::*}
  55. send "&aMeeting has been closed/canceled because %player% has left! You can now talk normaly." to {PurchaseMessages::*}
  56. else if {PurchaseAdminWait::*} contains player:
  57. remove player from {PurchaseAdminWait::*}
  58.  
  59. on join:
  60. if {PurchaseOfflineMsg::*} contains player:
  61. remove player from {PurchaseOfflineMsg::*}
  62. send "&cYou went offline, so your FarmHut store request has been canceled!" to player
  63.  
  64. on chat:
  65. if {PurchaseMessages::*} contains player:
  66. if player has permission "Purchase.Help":
  67. cancel event
  68. send "&cAdmin - %player%&c: %message%" to {PurchaseMessages::*}
  69. else:
  70. cancel event
  71. send "&8Player - &7%player%&7: &8%message%" to {PurchaseMessages::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement