Jump to content

Report System


BlockNestMonster

Recommended Posts

1 hour ago, Nitrogen said:

There you go!


command /report [<player>] [<text>]:
	trigger:
		if arg-1 is not set:
			send "&c/report <player>"
		if arg-1 is set:
			if arg-2 is not set:
				if {reportban.%player's uuid%} is not set:
					open chest with 1 row named "&c&lReporting: &5%arg-1%" to player
					wait 1 tick
					format slot 0 of player with bow named "&c&lCheating" with lore "&7Usage of unfair advantages!" to close then run [make player execute command "/report %arg-1% cheating"]
					format slot 1 of player with eye of ender named "&c&lSpamming" with lore "&7Flooding chat with spam!" to close then run [make player execute command "/report %arg-1% spam"]
					format slot 2 of player with diamond shovel named "&c&lOther" with lore "&7Other offence." to close then run [make player execute command "/report %arg-1% other"]
				if {reportban.%player's uuid%} is set:
					send "&cYou've been banned from using our reports system &7(This might be due to misusing it)"
		if arg-2 is "cheating":
			if {reportban.%player's uuid%} is not set:
				send "&7The player &c%arg-1% &7has been reported for &cCheating"
				loop all players:
					if loop-player has permission "reports.admin":
						send "&c&l[REPORT] &c%player% &7reported &c%arg-1% &7for &cCheating" to loop-player
			if {reportban.%player's uuid%} is set:
				send "&cYou cannot submit this report!"
				stop
		if arg-2 is "other":
			if {reportban.%player's uuid%} is not set:
				send "&7The player &c%arg-1% &7has been reported for &cOther"
				loop all players:
					if loop-player has permission "reports.admin":
						send "&c&l[REPORT] &c%player% &7reported &c%arg-1% &7for &cOther" to loop-player
			if {reportban.%player's uuid%} is set:
				send "&cYou cannot submit this report!"
				stop
		if arg-2 is "spam":
			if {reportban.%player's uuid%} is not set:
				send "&7The player &c%arg-1% &7has been reported for &cSpam"
				loop all players:
					if loop-player has permission "reports.admin":
						send "&c&l[REPORT] &c%player% &7reported &c%arg-1% &7for &cSpam" to loop-player
			if {reportban.%player's uuid%} is set:
				send "&cYou cannot submit this report!"
				stop
				
command /report-ban [<offline player>]:
	permission: reports.admin
	permission message: &cYou cannot preform this command!
	trigger:
		if arg-1 is not set:
			send "&cUsage: &c/report-ban <player>"
		if arg-1 is set:
			send "&7You've banned &c%arg-1% &7from submitting reports!"
			set {reportban.%arg-1's uuid%} to true
	
command /report-unban [<offline player>]:
	permission: reports.admin
	permission message: &cYou cannot preform this command!
	trigger:
		if arg-1 is not set:
			send "&cUsage: &c/report-unban <player>"
		if arg-1 is set:
			send "&7You've unbanned &c%arg-1% &7from submitting reports!"
			delete {reportban.%arg-1's uuid%}

 

arent tuske gui's unreliable as if you do /sk reload all or /sk reload scripts it'll break the skript and allow players to take the items out of the gui and keep them

  • Thanks 1
Link to comment
Share on other sites

On 3/26/2021 at 2:02 PM, BlockNestMonster said:

I need help making a report system. I want it to have a GUI and a report ban (Bans someone from making reports)

Reply if you want to help or have one. Thanks.

on hack:
	cancel event

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

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...