Untitled diff

Created Diff never expires
10 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
34 lines
11 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
35 lines
options:
options:
pre : &7> &4Reports &7<
pre : &7>>
Aliases : report:report
Aliases : report:report
Usage: &cUtilisation: /report <player> <raison>
Usage: &cUtilisation: /report <joueur> <raison>
Perm Alert : reports.alert
Perm Alert : report.alert
Perm Report: reports.use
Perm Report: report.use
on join:
on join:
if {Report.LastUsed.%player%} is not set:
if {Report.LastUsed.%player%} is not set:
set {Report.LastUsed.%player%} to now
set {Report.LastUsed.%player%} to now
command /report [<player>] [<text>]:
command /report [<player>] [<text>]:
executable by: player
executable by: player
aliases: {@Aliases}
aliases: {@Aliases}
trigger:
trigger:
if arg 1 is set:
if arg 1 is set:
if arg 2 is set:
if arg 2 is set:
set {_Diff} to difference between {Report.LastUsed.%player%} and now
set {_Diff} to difference between {Report.LastUsed.%player%} and now
if {_Diff} is less than 10 minutes:
if {_Diff} is less than 10 minutes:
send "{@pre} &cDésolé, mais vous ne pouvez signaler un joueur que toutes les 10 minutes ! &4Restantes: %{_Diff}%"
send "{@pre} &7[&cReport&8]&c Vous pouvez report un joueur toute les 10 minutes !"
else:
else:
if arg 1 is online:
if arg 1 is online:
set {Report.LastUsed.%player%} to now
set {Report.LastUsed.%player%} to now
loop all players:
loop all players:
if loop-player has permission "{@Perm Alert}":
if loop-player has permission "{@Perm Alert}":
send "{@pre} &e%player% &asignale &e%arg 1% &apour: &e%arg 2%" to loop-player
play raw sound "panel.panel" at player with pitch 2 volume 20
send "{@pre} &aVous avez signalé: &e%arg 1%"
send "&7[&cReport&8] {@pre} &a%player% &7a report &c%arg 1%&7. &7Raison: &c%arg 2%" to loop-player
send "{@pre} &7[&cReport&8] &cVotre report a bien été envoyer."
else:
else:
send "{@pre} {@Usage}"
send "{@pre} {@Usage}"
else:
else:
send "{@pre} {@Usage}"
send "{@pre} {@Usage}"
else:
else:
send "{@pre} {@Usage}"
send "{@pre} {@Usage}"