Description
Vérifie si un joueur est en ligne.
command /playerinformation :
trigger:
if offline player-argument is online:
send "&aCe joueur est bien connecté"
else:
send "&cCe joueur est hors-ligne"
%offline players% ((is|are) online|(is not|isn't|are not|aren't) offline)
%offline players% ((is|are) offline|(is not|isn't|are not|aren't) online)
Description
Vérifie si une entité est empoisonné.
on damage:
if victim is poisoned:
if name of victim is "ProfesseurCraft":
cancel event
cure the victim from poison
send "&eVous êtes immunisé patron :D" to victim
%living entities% (is|are) poisoned
%living entities% (isn't|is not|aren't|are not) poisoned
Description
Vérifie si une entité monte sur une autre entité (ex : un autre joueur :D), dans un véhicule (ex : un vagon) ou sur un véhicule (ex : un cheval).
on right click on entity:
make the player ride the clicked entity
if player is riding an enderman:
broadcast "&eAllez Spoke, téléporte-moi :)"
%entities% (is|are) riding [%entity types%]
%entities% (isn't|is not|aren't|are not) riding [%entity types%]
Description
Vérifie si un joueur dort.
on chat:
if player is sleeping:
cancel event
send "&cTut tut, fini le boucan, on dort !" to player
Description
Vérifie si un joueur est accroupi.
on damage:
if damage cause is fall:
if victim is sneaking:
cancel event
send "&eBonne réception l'ami :)" to victim
Description
Vérifie si un joueur court.
on damage:
if attacker is holding nothing:
if attacker is sprinting:
push the victim in direction of attacker at speed 5
send "&eEt bim dans ta tête !" to victim
Description
Vérifie si un joueur porte une armure ou tout autre bloc pouvant être ajouté dans un des slots de l'armure.
# Système de scaphandre sous l'eau :)
# -----------------------------------
command /spacesuit:
trigger:
Set helmet slot of player to glass block
on damage:
if victim is wearing glass block:
cancel event
%living entities% (is|are) wearing %item types%
%living entities% (isn't|is not|aren't|are not) wearing %item types%
Description
Vérifie si le PVP est activé ou non dans un monde.
command /pvp:
trigger:
if PVP is enabled:
send "&aLe pvp est activé"
else:
send "&cLe pvp est désactivé"
Description
Vérifie si une position est contenu dans une région particulière.
Cette condition requière un plugin de region compatible (ex : Worldguard)
Compatibilité Worldguard : Skript 2.1 -> Worldguard 5.9 | Skript 2.2 -> Worldguard 6.0
on region enter:
if "%region%" contains "Zone_51":
broadcast "&cAlert, alert ! Intrus dans la zone 51 !"
Ne peut pas être utiliser directement
Description
Vérifie si un temps réel donné (maintenant) est plus grand ou plus petit qu'un certain laps de temps
command /equipment: trigger:
# Simple système de temps de recharge (cooldown)
# {P} = Temps passé / dernière action
# ----------------------------------------------
if {P} was less than 5 minutes:
send "&cVous devez attendre 5 minutes" to player
else:
give 1 leather helmet to player
give 1 leather chestplate to player
give 1 leather leggings to player
give 1 leather boots to player
give 1 wooden sword to player
set {P} to now