MisterBasic

Commands++

Nov 2nd, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. variables:
  2. {totaljoins} = 0
  3. options:
  4. prefix: &2Commands++&a» &r
  5. motd: &eHello player! Welcome to this &dbeautifully&e server!
  6. no-permission: &cInsufficent Permission!
  7.  
  8. on load:
  9. send "---------------------" to console
  10. send "Commands++ is enabled" to console
  11. send "---------------------" to console
  12. set {noperm} to {@prefix}{@no-permission}
  13. on first join:
  14. add 1 to {totaljoins}
  15. on join:
  16. add the player to {isOnline::%player%}
  17. send "{@motd}" to the player
  18. on quit:
  19. remove the player from {isOnline::%player%}
  20. on kick:
  21. remove the player from {isOnline::%player%}
  22. command /staff:
  23. description: See what staff are online
  24. trigger:
  25. if player does not have permission "commands++.command.staff":
  26. stop trigger
  27. loop all players:
  28. if player has permission "commands++.staff":
  29. add loop-player to {_onlinestaff::*}
  30. if {_onlinestaff} = 0:
  31. send "{@prefix}&cNo Staff are online."
  32. else:
  33. send "{@prefix}&aStaff Online: &r%{onlinestaff::*}%"
  34. command /list:
  35. description: See all online players
  36. trigger:
  37. send "{@prefix}&aOnline Players: &r%{isOnline::*}%"
  38. command /totaljoins:
  39. trigger:
  40. send "{@prefix}&a%{totaljoins}% player(s) have joined the server since the beginning!"
  41. command /announce <text>:
  42. description: Announce a message to the server
  43. aliases: /bc, /broadcast, /an, /a, /announcement, /alert
  44. trigger:
  45. if player has permission "commands++.commands.announce":
  46. broadcast "&4[&4&lBROADCAST&4] &c%args 1%"
  47. else:
  48. send "%{noperm}%"
  49. command /ping [<player>]:
  50. description: Get the players ping
  51. permission: commands++.command.ping
  52. permission message: {noperm}
  53. aliases: /pong
  54. trigger:
  55. if arg 1 is not set:
  56. send "{@prefix}&aYour Ping: &a%player's ping%"
  57. else:
  58. send "{@prefix}&a%player-arg%'s Ping&» &a%player-arg's ping%"
Advertisement
Add Comment
Please, Sign In to add comment