Jump to content

Report System


Wolfeee_

Recommended Posts

Hey, I just created a report system!
Commands:

/report <player> <reason>

/reports <player>

command /report [<player>] [<text>]:
	trigger:
		if arg-1 is set:
			if arg-2 is set:
				loop all players:
					loop-player has permission "reports.see":
						send "&b[ServerName] &c%arg-1% &7has just been reported by &c%player% &7for: &c%arg-2%" to loop-player
					send "&b[ServerName] &7Thanks for reporting &c%arg-1%! &7Your report has just been sent to all the staff members!"
					add 1 to {reports.%arg-1%}
					stop
				else:
					send "&b[ServerName] &7Please give a reason why you want to report &c%arg-1%&7!"
			else:
				send "&b[ServerName] &7Please specify a player!"
				
command /reports [<player>]:
	permission: reports.see
	permission message: &cYou don't have permission to execute this command!
	trigger:
		if arg-1 is set:
			send "&b[ServerName] &7Reports Of &c%arg-1%&7: &c{reports.%arg-1%}"
		if arg-1 is not set:
			send "&b[ServerName] &7Please specify a player!"
			

 

Edited by Wolfeee_

IGN: Wolfeee_
Discord: Nathan.#4380


00243044b4b99f59989b7171466e765c.png

a.png

Link to comment
Share on other sites

Its a nice idea, but you need to improve a couple of things:

1. There is no need for "stop"

2. You should use a list like {reports::%uuid of player%::*} so you can actually save the report reason

3. When storing player related long lasting data you should use "uuid of player" in the variable {reports::%uuid of arg-1%::*} so the data won't be lost if the player changes his name 

Edited by OMan100
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...