Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Server Suggestions
- # By Pewax
- #
- variables:
- {suggestion.%player%} = " "
- {suggestion.last.%player%} = " "
- {suggestions.list::*} = "&dNo suggestions have been made yet, be the first!"
- command /suggestion [<string>]:
- trigger:
- if arg-1 is set:
- if arg-1 is "help":
- send "&f[&5Suggestions&f] &a/suggestion help &f- Brings up this help list!" to player
- send "&f[&5Suggestions&f] &a/suggestion list &f- Brings up all suggestions!" to player
- send "&f[&5Suggestions&f] &a/suggestion <suggestion> &f- Add a new suggestion!" to player
- else if arg-1 is "list":
- send "&f[&5Suggestions&f] %{suggestions.list::*}%" to player
- else if arg-1 is "clear-all":
- if player is op:
- send "&f[&5Suggestions&f] &aYou have successfully reset all suggestions!" to player
- clear {suggestions.list::*}
- wait 3 ticks
- add "&dNo suggestions have been made yet, be the first!" to {suggestions.list::*}
- else:
- send "&f[&5Suggestions&f] &cYou do not have permission to use this command!" to player
- else:
- if {suggestions.list::*} contains "&5%player%: &d%arg-1%":
- send "&f[&5Suggestions&f] &cThis suggestion has aleady been made!" to player
- else:
- remove "&dNo suggestions have been made yet, be the first!" from {suggestions.list::*}
- remove "&5%player%: &d%{suggestion.last.%player%}%" from {suggestions.list::*}
- wait 3 ticks
- set {suggestion.%player%} to arg-1
- set {suggestion.last.%player%} to arg-1
- add "&5%player%: &d%arg-1%" to {suggestions.list::*}
- send "&f[&5Suggestions&f] &aYou have successfully created a new suggestion!" to player
- send "&f[&5Suggestions&f] &cSending another suggestion will delete your old one!" to player
- else:
- make player execute "/suggestion help"
Advertisement
Add Comment
Please, Sign In to add comment