Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {totaljoins} = 0
- options:
- prefix: &2Commands++&a» &r
- motd: &eHello player! Welcome to this &dbeautifully&e server!
- no-permission: &cInsufficent Permission!
- on load:
- send "---------------------" to console
- send "Commands++ is enabled" to console
- send "---------------------" to console
- set {noperm} to {@prefix}{@no-permission}
- on first join:
- add 1 to {totaljoins}
- on join:
- add the player to {isOnline::%player%}
- send "{@motd}" to the player
- on quit:
- remove the player from {isOnline::%player%}
- on kick:
- remove the player from {isOnline::%player%}
- command /staff:
- description: See what staff are online
- trigger:
- if player does not have permission "commands++.command.staff":
- stop trigger
- loop all players:
- if player has permission "commands++.staff":
- add loop-player to {_onlinestaff::*}
- if {_onlinestaff} = 0:
- send "{@prefix}&cNo Staff are online."
- else:
- send "{@prefix}&aStaff Online: &r%{onlinestaff::*}%"
- command /list:
- description: See all online players
- trigger:
- send "{@prefix}&aOnline Players: &r%{isOnline::*}%"
- command /totaljoins:
- trigger:
- send "{@prefix}&a%{totaljoins}% player(s) have joined the server since the beginning!"
- command /announce <text>:
- description: Announce a message to the server
- aliases: /bc, /broadcast, /an, /a, /announcement, /alert
- trigger:
- if player has permission "commands++.commands.announce":
- broadcast "&4[&4&lBROADCAST&4] &c%args 1%"
- else:
- send "%{noperm}%"
- command /ping [<player>]:
- description: Get the players ping
- permission: commands++.command.ping
- permission message: {noperm}
- aliases: /pong
- trigger:
- if arg 1 is not set:
- send "{@prefix}&aYour Ping: &a%player's ping%"
- else:
- send "{@prefix}&a%player-arg%'s Ping&» &a%player-arg's ping%"
Advertisement
Add Comment
Please, Sign In to add comment