SimpleReports

Skript by Theindo448

Reporting is now even easier with the SimpleReports Skript

Code

#=====================
#> Made by Theindo448
#
#> Version: Beta 1.2
#=====================

#List permission:
#- report.admin.bypass
#- report.admin.command
#- report.admin.loop

options:

	prefix: &8[&cReport&8]

	line: &a> &8&m-------------------------

	permissionbypass: report.admin.bypass

	ver: &cBeta 1.2



command /report [<text>]:
	aliases: /reports
	trigger:
		if arg 1 is "help":
			send "{@line}"
			send "{@prefix} &7Version: {@ver} &7(Created by Theindo448)"
			send " "
			send "&7Commands :"
			send " "
			send "&a/reportplayer &e- &7Report a player if player has Hacking"
			send "&a/chatreport &e- &7Report a player if player is badword , adv or other"
			send "&a/report admin &e- &7Show the admin commands"
			send "&a/report help &e- &7Show the member commands"
			send "{@line}"
		if arg 1 is not set:
			send "{@line}"
			send "{@prefix} &7Version: {@ver} &7(Created by Theindo448)"
			send " "
			send "&7Commands :"
			send " "
			send "&a/reportplayer &e- &7Report a player if player has Hacking"
			send "&a/chatreport &e- &7Report a player if player is badword , adv or other"
			send "&a/report admin &e- &7Show the admin commands"
			send "&a/report help &e- &7Show the member commands"
			send "{@line}"
		if arg 1 is "admin":
			player has permission "report.admin.command" or "{@permissionbypass}":
				send "{@line}"
				send "{@prefix} &7Version: {@ver} &7(Created by Theindo448)"
				send " "
				send "&aAdmin Commands :"
				send " "
				send "&a/report reload"
				send "&a/report info"
				send "{@line}"
			else:
				send "{@prefix} &cYou don't have permission!"
		if arg 1 is "reload":
			player has permission "report.admin.command" or "{@permissionbypass}":
				make player execute command "/skript reload simplereport"
				wait 0.6 seconds
				send "{@prefix} &aSkript has been reloaded!"
				stop
			else:
				send "{@prefix} &cYou don't have permission!"
		if arg 1 is "info":
			player has permission "report.admin.command" or "{@permissionbypass}":
				send "{@line}"
				send "{@prefix}"
				send "&aCreated by: &bTheindo448"
				send "&aTester: &bTheindo448 and ItsZenthic"
				send "&aVersion: {@ver}"
				send "{@line}"
			else:
				send "{@prefix} &cYou don't have permission!"

command /reportplayer [<player>] [<text>]:
	aliases: /rplayer
	trigger:
		if arg 1 is player:
			send "{@prefix} &7You can't report yourself"
			stop
		if arg 1 is set:
			if arg 2 is "Killaura" or "Fly" or "AntiKB" or "Scaffold" or "FastSpeed" or "AutoClicker" or "Reach" or "BedBreaker" or "Tracer":
				send "{@prefix} &6%arg-1% &cHas been reported!"
				loop all players:
					loop-player has permission "report.admin.loop" or "{@permissionbypass}":
						send "{@line}"
						send "{@prefix} &7Version: {@ver}"
						send "&aType report: &ePlayer Report"
						send " "
						send "&b%player% &7reported &e%arg-1% &7for reason &c%arg-2%"
						send " "
						send "{@line}"
			if arg 2 is not "Killaura" or "Fly" or "AntiKB" or "Scaffold" or "FastSpeed" or "AutoClicker" or "Reach" or "BedBreaker" or "Tracer":
				send "{@prefix} &7Put the reason!"
				send " "
				send "&c&lKillaura or Fly or AntiKB or Scaffold or FastSpeed or AutoClicker or Reach or BedBreaker or Tracer"
			if arg 2 is not set:
				send "{@prefix} &7Put the reason!"
				send " "
				send "&c&lKillaura or Fly or AntiKB or Scaffold or FastSpeed or AutoClicker or Reach or BedBreaker or Tracer"
		if arg 1 is offline player:
			send "{@prefix} &7The player not found or player was offline"
		if arg 1 is not set:
			send "{@prefix} &7Usage /reportplayer <player> <reason>"

command /chatreport [<player>] [<text>]:
	aliases: /creport
	trigger:
		if arg 1 is player:
			send "{@prefix} &7You can't report yourself"
			stop
		if arg 1 is set:
			if arg 2 is "Badword" or "Flood" or "Spam" or "Advertise":
				send "{@prefix} &6%arg-1% &chas been reported!"
				loop all players:
					if loop-player has permission "report.admin.loop" or "{@permissionbypass}":
						send "{@line}"
						send "{@prefix} &7Version: {@ver}"
						send "&aType report: &eChat Report"
						send " "
						send "&b%player% &7reported &e%arg-1% &7for reason &c%arg-2%"
						send " "
						send "{@line}"
			if arg 2 is not "Badword" or "Flood" or "Spam" or "Advertise":
				send "{@prefix} &7Put the reason"
				send " "
				send "&c&lBadword or Flood or Spam or Advertise"
			if arg 2 is not set:
				send "{@prefix} &7Put the reason"
				send " "
				send "&c&lBadword or Flood or Spam or Advertise"
		if arg 1 is offline player:
			send "{@prefix} &7The player not found or player was offline"
		if arg 1 is not set:
			send "{@prefix} &7Usage /chatreport <player> <reason>"

on load:
	send "{@line}" to console
	send "{@prefix} Version: {@ver}" to console
	send "&aThe Skript Will be starting" to console
	send " " to console
	send "&bCreated by Theindo448" to console
	send "{@line}" to console

Last updated