Welcome to SkriptTools.net!

SkriptTools is now part of the skUnity family! skUnity will keep SkriptTools running, updating and adding new features.


- You can now search scripts by author by doing "author:name". For example: "author:nfell2009"

- Login to SkriptTools using your skUnity account to save your favourite scripts and come back to them

Login

Script Viewer

View the code of the script directly in your browser without downloading anything.

Current File: skunitybackup-388.sk - Download / View on the skUnity Parser

				
		
script options:
    $ db url jdbc:mysql://127.0.0.1:3306/coso
    $ db username dani
    $ db password dani
	
command /report [<offline player>] [<text>]:
	description: Reportar players ou bugs
	usage: /report [<player>/bug] [texto]
	permission: perms.report
	permission message: &6My server &cNot permission
	trigger:
		arg 1 is "bug":
			argument 2 is set:
				execute console command "/reportar %arg 1% %argument 2% %player%"
				stop
			else:
				send "&6My server &cUse: &7/report bug &f[&7motivo&f]"
				stop
			stop
		else:
			arg 1 is a player:
				arg 1 is online:
					argument 2 is set:
						if arg 1 is not a player:
							execute console command "/reportar %arg 1% %argument 2% %player%"
							stop
						else:
							send "&6My server &cVocê não pode reportar seu perfil!"
							stop
					else:
						send "&6My server &cUse: &7/report &f[<&7player&f>/&7bug&f] &f[&7motivo&f]"
						stop
			else:
				if "%{onlineplayer.playerLIST::*}%" contain "%arg 1%":
					argument 2 is set:
						execute console command "/reportar %arg 1% %argument 2% %player%"
						stop
					else:
						send "&6My server &cUse: &7/report &f[<&7player&f>/&7bug&f] &f[&7motivo&f]"
						stop
				else:
					send "&6My server &cUse: &7/report &f[<&7player&f>/&7bug&f] &f[&7motivo&f]"

command /reportar <text> <text> <player>:
	executable by: console
	trigger:
		if {reporter.%arg 1%::%arg 3%} contain "%arg 2%":
			send "&6My server &cVocê ja reportou isto !" to arg 3
			stop
		else:
			if {cooldown-reporter.%arg 3%} isn't set:
				set {cooldown-reporter.%arg 3%} to true
				set {reporter.%arg 1%::%arg 3%} to arg 2
				update "INSERT INTO `Member_Report` (`id`, `tipo`, `player`, `text`) VALUES (NULL, '%arg 1%', '%arg 3%', '%arg 2%')"
				send "&6My server &fVocê reportou &a%arg 1% &fpara a administração!" to arg 3
				wait 10 seconds
				clear {cooldown-reporter.%arg 3%}
			else:
				send "Server &cVocê reportou algo a menos de 10 segundos !" to arg 3
				stop
				
On script load:
	update "CREATE TABLE IF NOT EXISTS `Member_Report` (`id` int(11) NOT NULL AUTO_INCREMENT,`tipo` varchar(255) DEFAULT 'bug',`player` varchar(255) DEFAULT NULL,`text` text,`data` timestamp NULL DEFAULT CURRENT_TIMESTAMP,PRIMARY KEY (`id`),UNIQUE KEY `id` (`id`)"

on quit: 
	add player to {onlineplayer.playerLIST::*}

on join: 
	remove name of player from {onlineplayer.playerLIST::*}