Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /PurchaseHelp <text>:
- aliases: /ph
- usage: &cUsage: &l/PurchaseHelp <Type Problem/Issue Description>
- trigger:
- if arg-1 is set:
- add player to {PurchaseHelp::*}
- send "&aYour Problem has been sent to admins and will be with you shortly!" to player
- loop all players:
- if loop-player has permission "Purchase.Help":
- send "&c%player% &cis having a purchase problem!" to loop-player
- send "&c""%arg-1%&c""" to loop-player
- send "&cReply with /Contact %player%" to loop-player
- command /contact <offline player>:
- permission: Purchase.Help
- permission message: &cInsufficent Permission!
- usage: &cUsage: &l/Contact <Player>
- trigger:
- if {PurchaseHelp::*} contains arg-1:
- if {PurchaseMessages::*} is not set:
- send "&aYour messages will now be sent to %arg-1%&a. To cancel, type /ContactCancel <Player>" to player
- send "&aAn admin is willing to help you! Your message will now only be sent to %player%&a!" to arg-1
- remove arg-1 from {PurchaseHelp::*}
- add arg-1 to {PurchaseMessages::*}
- add player to {PurchaseMessages::*}
- else:
- send "&cThere's a meeting going on right now. Please wait while it finishes up." to player
- add player to {PurchaseAdminWait::*}
- else:
- send "&c%player% &cis not having a purchase problem, or is offline." to player
- command /ContactCancel <offline player>:
- permission: Purchase.Help
- permission message: &cInsufficent Permission!
- usage: &cUsage: &l/ContactCancel <Player>
- trigger:
- if {PurchaseMessages::*} contains arg-1:
- if {PurchaseMessages::*} contains player:
- clear {PurchaseMessages::*}
- send "&aMeeting has been closed/canceled! You can now talk normaly." to player
- else:
- if player has permission "Purchase.Admin":
- send "&cMeeting has been forced closed/canceled by %player%&c! You can now talk normaly." to {PurchaseMessages::*}
- clear {PurchaseMessages::*}
- else:
- send "&cYou cannot close this meeting as you're not in it!" to player
- else:
- send "&cPlayer is not in a meeting or is offline!" to player
- on disconnect:
- if {PurchaseHelp::*} contains player:
- remove player from {PurchaseHelp::*}
- else if {PurchaseMessages::*} contains player:
- clear {PurchaseMessages::*}
- send "&aMeeting has been closed/canceled because %player% has left! You can now talk normaly." to {PurchaseMessages::*}
- else if {PurchaseAdminWait::*} contains player:
- remove player from {PurchaseAdminWait::*}
- on join:
- if {PurchaseOfflineMsg::*} contains player:
- remove player from {PurchaseOfflineMsg::*}
- send "&cYou went offline, so your FarmHut store request has been canceled!" to player
- on chat:
- if {PurchaseMessages::*} contains player:
- if player has permission "Purchase.Help":
- cancel event
- send "&cAdmin - %player%&c: %message%" to {PurchaseMessages::*}
- else:
- cancel event
- send "&8Player - &7%player%&7: &8%message%" to {PurchaseMessages::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement