Bonjour,
J'ai trouvé un skript qui permet de changé les messages privés , mais parfois le message est envoyé par je sais pas quoi comme plugin (je pense essentials) et donc je peux pas répondre , et je voudrais bloqué la commande d'essentials ,
Je donne le script + un screen
options:
Chat_Format_Sender: &6[&eMoi&6]->[&e%arg 1%&6]:&e %arg 2%
Chat_Format_Recive: &6[&e%sender%&6]->[&eMoi&6]: &e%arg 2%
prefix: &6[&eMessagePrive&6]
# Premiere commande: /msg (/m, /mess, /tell, /t)
Command /msg [<player>] [<text>]:
aliases: /m, /mess, /tell, /t
trigger:
if arg 1 is not set:
message "{@prefix} Tu dois mettre un pseudo! /msg <Joueur> <Message>."
if arg 1 is set:
if arg 2 is not set:
message "{@prefix} Tu dois mettre un message! /msg <Joueur> <Message>."
if arg 2 is set:
send "{@Chat_Format_Sender}" to player
send "{@Chat_Format_Recive}" to arg 1
play raw sound "note.snare" at player with pitch 1 volume 10
play raw sound "note.snare" at arg 1 with pitch 1 volume 10
set {rep.%arg 1%} to player
# Deuxieme commande: /r (/rep, /reponce)
command /r [<text>]:
aliases: /rep, /reponce
trigger:
if arg 1 is not set:
message "{@prefix} Tu dois mettre un message! /r <Message>."
if arg 1 is set:
if {rep.%player%} is set:
send "&6[&eMoi&6]->[&e%{rep.%player%}%&6]: &e%arg 1%" to player
send "&6[&e%player%&6]->[&eMoi&6]: %arg 1%" to {rep.%player%}
play raw sound "note.snare" at player with pitch 1 volume 10
play raw sound "note.snare" at {rep.%player%} with pitch 1 volume 10
set {rep.%{rep.%player%}%} to player
if {rep.%player%} is not set:
message "{@prefix} Tu n'as personne a qui repondre!"
on quit:
delete {rep.%player%}