Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=========================#
- # PvPArena #
- # V 3.0 #
- # by JouonsEnsemble #
- #=========================#
- #=========================#
- # Options #
- #=========================#
- options:
- prefix: &7[&ePvPArena&7] # Prefix avant un message de ce plugin
- monde: Test_Kwaki # Vous devez mettre absolument votre monde !
- commande_principal: pvparena
- commande_secondaire_aliase: pa
- Nom_de_votre_serveur: HorizonCraft # Le Nom de votre Serveur ou vous voulez mettre le Game
- permission: pvparena.op # La permission pour Set les spawn et les tp .
- #=========================#
- # Divers #
- #=========================#
- on join:
- if {pvp.arena.mort.%player%} isn't set:
- set {pvp.arena.mort.%player%} to 0
- if {pvp.arena.kill.%player%} isn't set:
- set {pvp.arena.kill.%player%} to 0
- if {pvp.arena.ratio.%player%} isn't set:
- set {pvp.arena.ratio.%player%} to 0
- on respawn:
- if player is in "{@Test _Kwaki}":
- teleport player to {pvp.arena}
- set slot 0 of player to paper named "&eStats"
- set slot 4 of player to golden apple item named "&e« &aRejoindre L'arène &e»"
- set slot 8 of player to sign named "&6Actuces & Crafts"
- on death:
- if player is in "{@Test_Kwaki}":
- clear drops
- if attacker is a player:
- if victim is a player:
- teleport player to {pvp.arena}
- apply slowness to the victim for 2 tick
- add 1 to {pvp.arena.kill.%attacker%}
- add 1 to {pvp.arena.mort.%victim%}
- give attacker 8 gold ingot
- give attacker 1 player head
- give attacker 1 diamond
- give attacker 10 arrow
- apply regeneration 2 to the attacker for 10 seconds
- set death message to "{@prefix} &a%victim% &7 a été tué par &a%attacker%"
- make attacker and victim execute command "/{@commande_principal} scoreboard"
- on damage:
- if projectile is a arrow:
- if victim is a player:
- if victim is in "{@Test_Kwaki}":
- send "{@prefix} &a%victim% &7a maintenant : &a%victim's health% ♥" to attacker
- #=========================#
- # Golden Head #
- #=========================#
- # Le craft !
- on load:
- register new shapeless recipe for golden apple item named "&6Golden Head" using Gold ingot, Gold ingot, Gold ingot, Gold ingot, player head, Gold ingot, Gold ingot, Gold ingot, Gold ingot
- # L'effect !
- On Consume a golden apple:
- if item is golden apple item named "&6Golden Head":
- wait 5 tick
- remove regeneration from the player
- remove absorption from the player
- wait 5 tick
- apply regeneration 2 to the player for 10 seconds
- apply Absorption 1 to the player for 160 seconds
- #=========================#
- # Commande principal #
- #=========================#
- command /{@commande_principal} [<text>] [<text>]:
- aliases: {@commande_secondaire_aliase}
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- message "{@prefix} &7/{@commande_principal} spawn"
- message "{@prefix} &7/{@commande_principal} kit"
- message "{@prefix} &7/{@commande_principal} scoreboard"
- message "{@prefix} &7/{@commande_principal} stats"
- if player has permission "{@permission}":
- message "{@prefix} &7/{@commande_principal} set"
- message "{@prefix} &7/{@commande_principal} rl (reload)"
- if arg 1 is "stats":
- message "&7====>&e---&7[&ePvPArena&7]&e---&7<===="
- message "&aKills &7= &e%{pvp.arena.kill.%player%}%"
- message "&cMorts &7= &e%{pvp.arena.mort.%player%}%"
- message "&7====>&e---&7[&ePvPArena&7]&e---&7<===="
- if arg 1 is "spawn" or "tp":
- if arg 2 is not set:
- teleport player to {pvp.arena}
- apply saturation to player for 999999 seconds
- make player execute command "/{@commande_principal} scoreboard"
- clear player's inventory
- wait 2 ticks
- clear player's inventory
- set slot 0 of player to paper named "&eStats"
- set slot 4 of player to golden apple item named "&e« &aRejoindre L'arène &e»"
- set slot 8 of player to sign named "&6Actuces & Crafts"
- if arg 1 is "set":
- if player has permission "{@permission}":
- if arg 2 is not set:
- message "{@prefix} &7Vous avez le choix entre &eSpawn&7/&etp1&7/&etp2&7/&etp3&7/&etp4&7/&etp5&7/&etp6&7/"
- if arg 2 is "tp1":
- set {tp.1} to player's location
- message "{@prefix} &eVous avez set le &7tp 1"
- if arg 2 is "tp2":
- set {tp.2} to player's location
- message "{@prefix} &eVous avez set le &7tp 2"
- if arg 2 is "tp3":
- set {tp.3} to player's location
- message "{@prefix} &eVous avez set le &7tp 3"
- if arg 2 is "tp4":
- set {tp.4} to player's location
- message "{@prefix} &eVous avez set le &7tp 4"
- if arg 2 is "tp5":
- set {tp.5} to player's location
- message "{@prefix} &eVous avez set le &7tp 5"
- if arg 2 is "tp6":
- set {tp.6} to player's location
- message "{@prefix} &eVous avez set le &7tp 6"
- if arg 2 is "spawn":
- set {pvp.arena} to player's location
- message "{@prefix} &7Vous avez set le spawn du &ePvPArena"
- else:
- message "&4Vous n'avez pas la permission !"
- if arg 1 is "rl" or "reload":
- if player has permission "{@permission}":
- make player execute command "/sk reload PvPArena"
- if arg 1 is "kit":
- if arg 2 is not set:
- message "{@prefix} &7Vous avez le choix entre &eGuerrier &7, &eArcher &7, &eTank &7."
- if arg 2 is "guerrier":
- clear player's inventory
- message "{@prefix} &cPréparations de ton équipements en cours ..."
- wait 2 ticks
- clear player's inventory
- set the player's gamemode to survival
- remove saturation from the player
- wait 2 tick
- equip player with iron helmets of protection 1
- equip player with iron chestplates of protection 1
- equip player with iron leggings of protection 1
- equip player with diamond boots of protection 1
- wait 8 ticks
- give player iron sword of sharpness 2
- wait 8 ticks
- give player fishing rod
- wait 8 ticks
- give player bow of power 1
- wait 8 ticks
- give player 5 golden apple item
- wait 8 ticks
- give player 16 arrow
- wait 8 ticks
- give player 64 steak
- apply slowness to player for 4 seconds
- wait 8 ticks
- message "{@prefix} &7Vous allez être téléporté dans &e3 secondes &7!"
- wait 1 seconds
- message "{@prefix} &7Vous allez être téléporté dans &e2 secondes &7!"
- wait 1 seconds
- message "{@prefix} &7Vous allez être téléporté dans &e1 secondes &7!"
- wait 1 seconds
- teleport player to {tp.1} or {tp.2} or {tp.3} or {tp.4} or {tp.5} or {tp.6}
- apply blindness to player for 2 seconds
- if arg 2 is "archer":
- clear player's inventory
- message "{@prefix} &cPréparations de ton équipements en cours ..."
- wait 2 ticks
- clear player's inventory
- set the player's gamemode to survival
- remove saturation from the player
- wait 2 tick
- equip player with chainmail helmets of protection 2
- equip player with iron chestplates of protection 1
- equip player with iron leggings of protection 1
- equip player with chainmail boots of protection 2
- wait 8 ticks
- give player wood sword of sharpness 1 and knockback 2
- wait 8 ticks
- give player fishing rod
- wait 8 ticks
- give player bow of power 3 and infinity
- wait 8 ticks
- give player 5 golden apple item
- wait 8 ticks
- give player 16 arrow
- wait 8 ticks
- give player 64 steak
- apply slowness to player for 4 seconds
- wait 8 ticks
- message "{@prefix} &7Vous allez être téléporté dans &e3 secondes &7!"
- wait 1 seconds
- message "{@prefix} &7Vous allez être téléporté dans &e2 secondes &7!"
- wait 1 seconds
- message "{@prefix} &7Vous allez être téléporté dans &e1 secondes &7!"
- wait 1 seconds
- teleport player to {tp.1} or {tp.2} or {tp.3} or {tp.4} or {tp.5} or {tp.6}
- apply blindness to player for 2 seconds
- if arg 2 is "tank":
- clear player's inventory
- message "{@prefix} &cPréparations de ton équipements en cours ..."
- wait 2 ticks
- apply slowness to player for 999999 seconds
- clear player's inventory
- set the player's gamemode to survival
- remove saturation from the player
- wait 2 tick
- equip player with diamond helmets of protection 1
- equip player with diamond chestplates of protection 1
- equip player with diamond leggings of protection 1
- equip player with diamond boots of protection 1
- wait 8 ticks
- give player stone sword of sharpness 1
- wait 8 ticks
- give player fishing rod
- wait 8 ticks
- give player bow
- wait 8 ticks
- give player 5 golden apple item
- wait 8 ticks
- give player 8 arrow
- wait 8 ticks
- give player 64 steak
- wait 8 ticks
- message "{@prefix} &7Vous allez être téléporté dans &e3 secondes &7!"
- wait 1 seconds
- message "{@prefix} &7Vous allez être téléporté dans &e2 secondes &7!"
- wait 1 seconds
- message "{@prefix} &7Vous allez être téléporté dans &e1 secondes &7!"
- wait 1 seconds
- teleport player to {tp.1} or {tp.2} or {tp.3} or {tp.4} or {tp.5} or {tp.6}
- apply blindness to player for 2 seconds
- if arg 1 is "scoreboard":
- if player is in "{@Test_Kwaki}":
- set {pvp.arena.ratio.%player%} to {pvp.arena.kill.%player%} / {pvp.arena.mort.%player%}
- display board named "&7[&ePvPArena&7]" to player
- make score "&bInfo &b&o> " in board of player to 8
- make score "&7-----&8-&7-------" in board of player to 7
- make score "&6Morts: &e%{pvp.arena.mort.%player%}%" in board of player to 6
- make score "&6Kills: &e%{pvp.arena.kill.%player%}%" in board of player to 5
- make score "&aRatio: &e%{pvp.arena.ratio.%player%}%" in board of player to 4
- make score "&7----------" in board of player to 3
- make score "&3> {@Nom_de_votre_serveur}" in board of player to 2
- move display of player to sidebar
- #==================================#
- # Rejoindre l'arène + Le Menu #
- #==================================#
- on right click with golden apple item:
- if name of tool of player is "&e« &aRejoindre L'arène &e»":
- cancel event
- wait 2 tick
- open chest with 1 rows named "&7[&ePvPBox &8- &eKit&7]" to player
- wait 2 tick
- format slot 3 of player with a iron sword named "&7Guerrier" to close then run [make the player execute command "/{@commande_principal} kit guerrier"]
- format slot 4 of player with a bow named "&7Archer" to close then run [make the player execute command "/{@commande_principal} kit archer"]
- format slot 5 of player with a diamond chestplates named "&7Tank" to close then run [make the player execute command "/{@commande_principal} kit tank"]
- on right click with paper:
- if name of tool of player is "&eStats":
- make player execute command "/{@commande_principal} stats"
- on left click with paper:
- if name of tool of player is "&eStats":
- make player execute command "/{@commande_principal} stats"
- on left click with sign:
- if name of tool of player is "&6Actuces & Crafts":
- open chest with 5 rows named "&6Actuces & Crafts" to player
- wait 2 ticks
- format slot 0 of player with a yellow window glass named " " to be unstealable
- format slot 1 of player with a yellow window glass named " " to be unstealable
- format slot 2 of player with a yellow window glass named " " to be unstealable
- format slot 3 of player with a yellow window glass named " " to be unstealable
- format slot 4 of player with a yellow window glass named " " to be unstealable
- format slot 5 of player with a yellow window glass named " " to be unstealable
- format slot 6 of player with a yellow window glass named " " to be unstealable
- format slot 7 of player with a yellow window glass named " " to be unstealable
- format slot 8 of player with a yellow window glass named " " to be unstealable
- format slot 9 of player with a yellow window glass named " " to be unstealable
- format slot 10 of player with a yellow window glass named " " to be unstealable
- format slot 11 of player with a gold ingot named "&6Or" to be unstealable
- format slot 12 of player with a gold ingot named "&6Or" to be unstealable
- format slot 13 of player with a gold ingot named "&6Or" to be unstealable
- format slot 14 of player with a yellow window glass named " " to be unstealable
- format slot 15 of player with a yellow window glass named " " to be unstealable
- format slot 16 of player with a yellow window glass named " " to be unstealable
- format slot 17 of player with a yellow window glass named " " to be unstealable
- format slot 18 of player with a yellow window glass named " " to be unstealable
- format slot 19 of player with a yellow window glass named " " to be unstealable
- format slot 20 of player with a gold ingot named "&6Or" to be unstealable
- format slot 21 of player with a player head named "&4Tête d'un joueur" to be unstealable
- format slot 22 of player with a gold ingot named "&6Or" to be unstealable
- format slot 23 of player with a yellow window glass named " " to be unstealable
- format slot 24 of player with a golden apple item named "&6Golden Head" with lore "&6Régène 4 coeur ||&4Plus éfficace qu'une pomme en or" to be unstealable
- format slot 25 of player with a yellow window glass named " " to be unstealable
- format slot 26 of player with a yellow window glass named " " to be unstealable
- format slot 27 of player with a yellow window glass named " " to be unstealable
- format slot 28 of player with a yellow window glass named " " to be unstealable
- format slot 29 of player with a gold ingot named "&6Or" to be unstealable
- format slot 30 of player with a gold ingot named "&6Or" to be unstealable
- format slot 31 of player with a gold ingot named "&6Or" to be unstealable
- format slot 32 of player with a yellow window glass named " " to be unstealable
- format slot 33 of player with a yellow window glass named " " to be unstealable
- format slot 34 of player with a yellow window glass named " " to be unstealable
- format slot 35 of player with a yellow window glass named " " to be unstealable
- format slot 36 of player with a yellow window glass named " " to be unstealable
- format slot 37 of player with a yellow window glass named " " to be unstealable
- format slot 38 of player with a yellow window glass named " " to be unstealable
- format slot 39 of player with a yellow window glass named " " to be unstealable
- format slot 40 of player with a yellow window glass named " " to be unstealable
- format slot 41 of player with a yellow window glass named " " to be unstealable
- format slot 42 of player with a yellow window glass named " " to be unstealable
- format slot 43 of player with a yellow window glass named " " to be unstealable
- format slot 44 of player with a yellow window glass named " " to be unstealable
- on right click with sign:
- if name of tool of player is "&6Actuces & Crafts":
- open chest with 5 rows named "&6Actuces & Crafts" to player
- wait 2 ticks
- format slot 0 of player with a yellow window glass named " " to be unstealable
- format slot 1 of player with a yellow window glass named " " to be unstealable
- format slot 2 of player with a yellow window glass named " " to be unstealable
- format slot 3 of player with a yellow window glass named " " to be unstealable
- format slot 4 of player with a yellow window glass named " " to be unstealable
- format slot 5 of player with a yellow window glass named " " to be unstealable
- format slot 6 of player with a yellow window glass named " " to be unstealable
- format slot 7 of player with a yellow window glass named " " to be unstealable
- format slot 8 of player with a yellow window glass named " " to be unstealable
- format slot 9 of player with a yellow window glass named " " to be unstealable
- format slot 10 of player with a yellow window glass named " " to be unstealable
- format slot 11 of player with a gold ingot named "&6Or" to be unstealable
- format slot 12 of player with a gold ingot named "&6Or" to be unstealable
- format slot 13 of player with a gold ingot named "&6Or" to be unstealable
- format slot 14 of player with a yellow window glass named " " to be unstealable
- format slot 15 of player with a yellow window glass named " " to be unstealable
- format slot 16 of player with a yellow window glass named " " to be unstealable
- format slot 17 of player with a yellow window glass named " " to be unstealable
- format slot 18 of player with a yellow window glass named " " to be unstealable
- format slot 19 of player with a yellow window glass named " " to be unstealable
- format slot 20 of player with a gold ingot named "&6Or" to be unstealable
- format slot 21 of player with a player head named "&4Tête d'un joueur" to be unstealable
- format slot 22 of player with a gold ingot named "&6Or" to be unstealable
- format slot 23 of player with a yellow window glass named " " to be unstealable
- format slot 24 of player with a golden apple item named "&6Golden Head" with lore "&6Régène 4 coeur ||&4Plus éfficace qu'une pomme en or" to be unstealable
- format slot 25 of player with a yellow window glass named " " to be unstealable
- format slot 26 of player with a yellow window glass named " " to be unstealable
- format slot 27 of player with a yellow window glass named " " to be unstealable
- format slot 28 of player with a yellow window glass named " " to be unstealable
- format slot 29 of player with a gold ingot named "&6Or" to be unstealable
- format slot 30 of player with a gold ingot named "&6Or" to be unstealable
- format slot 31 of player with a gold ingot named "&6Or" to be unstealable
- format slot 32 of player with a yellow window glass named " " to be unstealable
- format slot 33 of player with a yellow window glass named " " to be unstealable
- format slot 34 of player with a yellow window glass named " " to be unstealable
- format slot 35 of player with a yellow window glass named " " to be unstealable
- format slot 36 of player with a yellow window glass named " " to be unstealable
- format slot 37 of player with a yellow window glass named " " to be unstealable
- format slot 38 of player with a yellow window glass named " " to be unstealable
- format slot 39 of player with a yellow window glass named " " to be unstealable
- format slot 40 of player with a yellow window glass named " " to be unstealable
- format slot 41 of player with a yellow window glass named " " to be unstealable
- format slot 42 of player with a yellow window glass named " " to be unstealable
- format slot 43 of player with a yellow window glass named " " to be unstealable
- format slot 44 of player with a yellow window glass named " " to be unstealable
- on right click on crafting table:
- if player is in "{@Test_Kwaki}":
- cancel event
- wait 1 tick
- make player execute command "/craft"
- on place:
- if player is in "{@Test_Kwaki}":
- if player has permission "{@permission}":
- stop
- else:
- cancel event
- on break:
- if player is in "{@Test_Kwaki}":
- if player has permission "{@permission}":
- stop
- else:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment