Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################################################
- # #
- # ForcePvP #
- # By Dubbly_ and ElZaidG #
- # #
- ############################################################
- #----------READ!--------#
- #This is not easy to config at all, we recommend to change just some things to avoid mistakes.
- #To work correctly, place a ForcePvP mode in differents world/servers.
- #To config respawns correctly, change the world names to your world names, What is this?
- #Example:
- # if world of player is "UHC": #<---Example world, change that world name to your world name.
- # make player execute command "/fp-oitc leave"
- # set {ingame.%player%} to false
- #
- #
- #
- #Skript version: 1.1
- options:
- logo: &6&lForcePvP &7>>
- duels: &6&lDuels &7>>
- on join:
- remove absorption from player
- remove regeneration from player
- set player's gamemode to survival
- set slot 0 of player's inventory to paper named "&aSelect FP mode"
- set slot 1 of player's inventory to diamond sword named "&eDuel"
- set slot 2 of player's inventory to head named "&9%player%'s &6Stats"
- on skript start:
- send "-----------------------------------" to console
- send "" to console
- send "ForcePvP skript by Dubbly_ and ElZaidG" to console
- send "&8Version: &41.1" to console
- send "" to console
- send "-----------------------------------" to console
- variables:
- online.bu = 0
- on quit:
- if world of player is "UHC": #<---Example world
- remove 1 from {online.bu}
- if world of player is "Normal":
- remove 1 from {online.FFA}
- if world of player is "KB":
- remove 1 from {online.SG}
- #-------Change this worlds to your worlds-------#
- command /fp-join:
- permission: fp.player
- aliases: forcepvp , join , fpvp
- trigger:
- open chest with 1 rows named "&4&k::&9&lForcePvP&4&k::" to player
- wait 3 ticks
- format slot 1 of player with lava bucket named "&a&lUHC" with lore "&e%{online.bu}% online players" to run [make player execute command "/fp-join-uhc"]
- format slot 0 of player with iron chestplate named "&a&lNormal" with lore "&e%{online.FFA}% online players" to run [make player execute command "/fp-join-normal"]
- format slot 2 of player with stick named "&a&lKnockback" with lore "&e%{online.SG}% online players" to run [make player execute command "/fp-join-kb"]
- format slot 7 of player with golden apple:1 named "&a&lOP &c&l(Coming Soon)" to close then run [send "{@logo} &6Gapple &cComing soon"]
- format slot 8 of player with potion:16453 named "&a&lNoDebuff &c&l(Coming soon)" to close then run [send "{@logo} &6Pot &cComing soon"]
- command /fp-setspawn-duels:
- permission: fp.admin
- trigger:
- set {spawn.duels} to location of player
- send "{@logo} &aSpawn set!"
- command /fp-setspawn-uhc:
- permission: fp.admin
- trigger:
- set {spawn.uhc} to location of player
- send "{@logo} &aSpawn set!"
- command /fp-setspawn-normal:
- permission: fp.admin
- trigger:
- set {spawn.normal} to location of player
- send "{@logo} &aSpawn set!"
- command /fp-setspawn-kb:
- permission: fp.admin
- trigger:
- set {spawn.kb} to location of player
- send "{@logo} &aSpawn set!"
- command /fp [<text>] [<text>]:
- permission: fp.admin
- aliases: forcepvp , fpvp
- trigger:
- if arg-1 is not set:
- message "&8&l&m----------------&8[ &6&lForcePvP &8]&l&m----------------"
- message "&6/fp, /forcepvp&e - Help command"
- message "&6/fp-join-<mode>&e - Join to a specific mode"
- message "&6/fp-join&e - Open FP join menu"
- message "&6/fp-setspawn-<mode>&e - Set the FP spawn of a mode"
- message "&6/fp-setmainlobby&e - Set the main lobby"
- message "&6/fp-setleave&e - Set the leave spawn point"
- message "&6/fp-stats-<mode>&e - See your FP stats"
- message "&6/fp-duels&e - Duels help"
- message "&6/fp-help-spec&e - Spectator help"
- message "&6/fp-modes&e - See the FP modes"
- message "&6/leave, /salir &e- Leave commands"
- send "&8&l&m---------------------------------------------"
- if arg-1 is "remove":
- if player is op:
- set {spawn.prb} to location of player
- send "{@logo} &aSpawn set!"
- if arg-1 is "setserverip":
- if arg-2 is not set:
- if player has permission "fp.admin":
- send "&cPlease enter a server IP"
- if arg-2 is set:
- if player has permission "fp.admin":
- set {server.name} to "%colored arg-2%"
- send "&a&lSuccess!"
- if arg-1 is "sethologram":
- if arg-2 is not set:
- if player has permission "fp.admin":
- send "&c/fp sethologram stats"
- if arg-2 is "stats":
- if {Holo::Stats} is not set:
- if player has permission "fp.admin":
- send "&aCreating Hologram"
- make player execute command "/hd create fp-stats &aForcePvP&e Stats"
- make player execute command "/hd addline fp-stats &a"
- make player execute command "/hd addline fp-stats &c&m-------------------"
- make player execute command "/hd addline fp-stats &aKills: &6%{totalkills.%player%}%"
- make player execute command "/hd addline fp-stats &aDeaths: &6%{totaldeaths.%player%}%"
- make player execute command "/hd addline fp-stats &aStatus: &6Online"
- make player execute command "/hd addline fp-stats &aPing: &6%player's ping%"
- make player execute command "/hd addline fp-stats &c&m-------------------"
- make player execute command "/hd addline fp-stats &a"
- make player execute command "/hd addline fp-stats &6%{server.name}%"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a"
- send "&a&lSucessfully created hologram!"
- set {Holo::Stats} to true
- else:
- send "&aHologram is already created, type /fp removehologram to remove."
- command /fp-join-normal:
- trigger:
- add 1 to {online.FFA}
- if has permission "fp.player":
- teleport player to {spawn.normal}
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's helmet to iron helmet
- set player's chestplate to iron chestplate
- set player's leggings to iron leggings
- set player's boots to iron boots
- give 1 iron sword to player
- give 1 bow to player
- give 1 fishing rod to player
- give 15 steak to player
- set slot 9 of player's inventory to 12 arrow
- else:
- teleport player to {spawn.normal}
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's helmet to iron helmet
- set player's chestplate to iron chestplate
- set player's leggings to iron leggings
- set player's boots to iron boots
- give 1 iron sword to player
- give 1 bow to player
- give 1 fishing rod to player
- give 15 steak to player
- set slot 9 of player's inventory to 12 arrow
- command /fp-join-kb:
- trigger:
- add 1 to {online.SG}
- if has permission "fp.player":
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's leggings to leather leggings of protection 2
- give 1 stick of knockback 1 to player
- give 1 web to player
- teleport player to {spawn.kb}
- send "{@logo} &eYou have joined to &a&lForceKB!"
- send "{@logo} &cType /leave to leave."
- else:
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's leggings to leather leggings of protection 2
- give 1 stick of knockback 1 to player
- give 1 web to player
- teleport player to {spawn.kb}
- send "{@logo} &eYou have joined to &a&lForceKB!"
- send "{@logo} &cType /leave to leave."
- command /fp-join-uhc:
- trigger:
- add 1 to {online.bu}
- if has permission "fp.player":
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's helmet to iron helmet of protection 2
- set player's chestplate to iron chestplate of projectile protection 2
- set player's leggings to iron leggings of protection 2
- set player's boots to iron boots of projectile protection 2
- give 1 iron sword of sharpness 1 to player
- give 1 bow of power 1 , infinity 1 to player
- give 64 steak to player
- give 1 golden apple to player
- give 1 golden apple to player
- give 1 ender pearl to player
- set slot 9 of player's inventory to 1 arrow
- teleport player to {spawn.uhc}
- send "{@logo} &eYou have joined to &a&lForceUHC!"
- send "{@logo} &cType /leave to leave."
- else:
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's helmet to iron helmet of protection 2
- set player's chestplate to iron chestplate of projectile protection 2
- set player's leggings to iron leggings of protection 2
- set player's boots to iron boots of projectile protection 2
- give 1 iron sword of sharpness 1 to player
- give 1 bow of power 1 , infinity 1 to player
- give 64 steak to player
- give 1 golden apple to player
- give 1 golden apple to player
- give 1 ender pearl to player
- set slot 9 of player's inventory to 1 arrow
- teleport player to {spawn.uhc}
- send "{@logo} &eYou have joined to &a&lForceUHC!"
- send "{@logo} &cType /leave to leave."
- command /fp-setleave:
- permission: fp.admin
- trigger:
- set {spawn.leave} to location of player
- send "{@logo} &aSuccessfully set spawn &cLEAVE"
- command /fp-leave:
- aliases: exit , hub , lobby , quit
- trigger:
- teleport player to {spawn.leave}
- send "{@logo} &aYou have left!"
- set gamemode of player to survival
- clear player's inventory
- remove absorption from player
- remove regeneration from player
- heal player
- command /fp-modes:
- permission: fp.admin
- trigger:
- send "&a&lModes:"
- send "&6normal"
- send "&6uhc"
- send "&6kb"
- send "&6duels"
- on eat of golden apple:
- if item is golden apple named "&6Golden Head":
- apply absorption 1 to the player for 105 seconds
- apply regeneration 2 to the player for 10 seconds
- remove 1 golden apple named "&6Golden Head" from the player's tool
- on death of player:
- clear drops
- on respawn:
- if world of player is "YourWorldUHC": #<-- Change this world name to your UHC world name
- if has permission "fp.player":
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's helmet to iron helmet of protection 2
- set player's chestplate to iron chestplate of protection 2
- set player's leggings to iron leggings of protection 2
- set player's boots to iron boots of projectile protection 2
- give 1 iron sword of sharpness 1 to player
- give 1 bow of power 1 , infinity 1 to player
- give 64 steak to player
- give 1 golden apple to player
- give 1 golden apple to player
- give 1 ender pearl to player
- set slot 9 of player's inventory to 1 arrow
- teleport player to {spawn.uhc}
- else:
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's helmet to iron helmet of protection 2
- set player's chestplate to iron chestplate of protection 2
- set player's leggings to iron leggings of protection 2
- set player's boots to iron boots of projectile protection 2
- give 1 iron sword of sharpness 1 to player
- give 1 bow of power 1 , infinity 1 to player
- give 64 steak to player
- give 1 golden apple to player
- give 1 golden apple to player
- give 1 ender pearl to player
- set slot 9 of player's inventory to 1 arrow
- teleport player to {spawn.uhc}
- on respawn:
- if world of player is "YourWorldKB": #<-- Change this world name to your KB world name
- if has permission "fp.player":
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's leggings to leather leggings of protection 2
- give 1 stick of knocback 1 to player
- give 1 web to player
- teleport player to {spawn.kb}
- else:
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set player's leggings to leather leggings of protection 2
- give 1 stick of knockback 1 to player
- give 1 web to player
- teleport player to {spawn.kb}
- on respawn:
- if world of player is "YourWorldNormal": #<-- Change this world name to your Normal world name
- if has permission "fp.player":
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set slot 0 of player's inventory to ender portal frame named "&aKits"
- set slot 0 of player's inventory to head named "&9Stats"
- teleport player to {spawn.normal}
- else:
- set gamemode of player to survival
- clear player's inventory
- wait 3 tick
- set slot 0 of player's inventory to ender portal frame named "&aKits"
- set slot 0 of player's inventory to head named "&9Stats"
- teleport player to {spawn.normal}
- on inventory click:
- if world of player is "FFAUHC":
- if player has permission "fp.admin":
- else:
- cancel event
- on place web:
- if world of player is "YourWorldKB": #<-- Change this world name to your KB world name
- wait 5 seconds
- set event-block to air
- stop
- on drop:
- cancel event
- #---------Stats---------#
- command /fp-stats:
- permission: fp.player
- aliases: glostats , fpstats , stats
- trigger:
- send ""
- send "&8-----&6&lForcePvP&8-----"
- send ""
- send "&5Kills: &a%{totalkills.%player%}%"
- send "&5Deaths: &a%{totaldeaths.%player%}%"
- send ""
- send "&8---&6&lStats&8---"
- send ""
- command /fp-stats-normal:
- permission: fp.player
- aliases: normalstats , fpnormalstats , fpnorstats , norstats
- trigger:
- send ""
- send "&8-----&6&lForceNormal&8-----"
- send ""
- send "&5Kills: &a%{killsFFA.%player%}%"
- send "&5Deaths: &a%{deathsFFA.%player%}%"
- send ""
- send "&8---&6&lStats&8---"
- send ""
- command /fp-stats-kb:
- permission: fp.player
- aliases: kbstats , fpkbstats
- trigger:
- send ""
- send "&8-------&6&lForceKB&8-------"
- send ""
- send "&5Kills: &a%{killsSG.%player%}%"
- send "&5Deaths: &a%{deathsSG.%player%}%"
- send ""
- send "&8---&6&lStats&8---"
- send ""
- command /fp-stats-uhc:
- permission: fp.player
- aliases: uhcstats , fpuhcstats
- trigger:
- send ""
- send "&8-----&6&lForceUHC&8-----"
- send ""
- send "&5Kills: &a%{killsbu.%player%}%"
- send "&5Deaths: &a%{deathsbu.%player%}%"
- send ""
- send "&8---&6&lStats&8---"
- send ""
- #---------Signs----------#
- on sign change:
- if has permission "fp.admim":
- if line 1 is "[forcepvp]":
- if line 2 is "join":
- set line 1 to "&8[&9&lForcePvP&8]"
- set line 2 to "&6Join"
- if line 2 is "leave":
- set line 1 to "&8[&9&lForcePvP&8]"
- set line 2 to "&6Leave"
- if line 2 is "stats":
- set line 1 to "&8[&9&lForcePvP&8]"
- set line 2 to "&6Stats"
- on click on sign:
- if line 1 is "&8[&9&lForcePvP&8]":
- if line 2 is "&6Join":
- make player execute "/fp-join"
- if line 2 is "&6Leave":
- make player execute "/fp-leave"
- if line 2 is "&6Stats":
- make player execute "/fp-stats"
- #----------Menu----------#
- on rightclick:
- if player's tool is paper named "&aSelect FP mode":
- open chest with 1 rows named "&aFP modes" to player
- wait 3 ticks
- format slot 1 of player with lava bucket named "&a&lUHC" with lore "&e%{online.bu}% online players" to run [make player execute command "/fp-join-uhc"]
- format slot 0 of player with iron chestplate named "&a&lNormal" with lore "&e%{online.FFA}% online players" to run [make player execute command "/fp-join-normal"]
- format slot 2 of player with stick named "&a&lKnockback" with lore "&e%{online.SG}% online players" to run [make player execute command "/fp-join-kb"]
- format slot 7 of player with golden apple:1 named "&a&lOP &c&l(Coming Soon)" to close then run [send "{@logo} &6Gapple &cComing soon"]
- format slot 8 of player with potion:16453 named "&a&lNoDebuff &c&l(Coming soon)" to close then run [send "{@logo} &6Pot &cComing soon"]
- on rightclick:
- if player's tool is head named "&9%player%'s &6Stats":
- cancel event
- open chest with 3 rows named "&aStats" to player
- wait 2 ticks
- format slot 4 of player with lava bucket named "&a&lUHC" with lore "&5Kills: &a%{killsbu.%player%}%||&5Deaths: &a%{deathsbu.%player%}%" to close then run [make player execute command "/fp-stats-uhc"]
- format slot 1 of player with iron chestplate named "&a&lNormal" with lore "&5Kills: &a%{killsFFA.%player%}%||&5Deaths: &a%{deathsFFA.%player%}%" to close then run [make player execute command "/fp-stats-normal"]
- format slot 7 of player with stick named "&a&lKnockback" with lore "&5Kills: &a%{killsSG.%player%}%||&5Deaths: &a%{deathsSG.%player%}%" to close then run [make player execute command "/fp-stats-kb"]
- format slot 22 of player with nether star named "&a&lGlobal" with lore "&5Kills: &a%{totalkills.%player%}%||&5Deaths: &a%{totaldeaths.%player%}%" to close then run [make player execute command "/fp-stats-global"]
- on rightclick:
- if player's tool is diamond sword named "&eDuel":
- open chest with 3 rows named "&aDuels" to player
- wait 2 ticks
- format slot 4 of player with duel named "&a&lDuels" with lore "&9Join to duels" to close then run [make player execute command "/duel"]
- #----------Duels----------#
- command /fp-duel:
- permission: "fp.admin"
- aliases: fp-duels
- trigger:
- message "&6&lForceDuels"
- message "&aCommands:"
- message "&6/duel <player>&f - Challenge/Accept a player"
- message "&6/fp-setspawn-duels1&f - Set the spawn point 1 of duels"
- message "&6/fp-setspawn-duels2&f - Set the spawn point 2 of duels"
- command /fp-setspawn-duels1:
- permission: "fp.admin"
- trigger:
- set {1v11} to location of player
- message "{@logo} &6Successfully set the spawn point 1"
- command /fp-setspawn-duels2:
- permission: "fp.admin"
- trigger:
- set {1v12} to location of player
- message "{@logo} &6Successfully set the spawn point 2"
- on command:
- if {in1v1.%player%} is true:
- cancel event
- send "{@logo} &cYou can't use commands in a duel" to player
- command /duel [<player>]:
- permission: "fp.player"
- trigger:
- if arg 1 is player:
- send "{@logo} &cYou can't duel yourself."
- if arg 1 is not set:
- send "{@logo} &6Type /duel <player>"
- clear {requesting.%player%}
- else:
- if {1v1antispam.%player%} is false:
- if {requesting.%arg 1%} is player:
- if {arena1} is false:
- set {arena1} to true
- set {_1} to arg 1
- set {_2} to player
- clear {requesting.%{_1}%}
- clear {requesting.%{_2}%}
- set {in1v1.%{_1}%} to true
- set {in1v1.%{_2}%} to true
- execute console command "/gamemode 0 %{_1}%"
- execute console command "/gamemode 0 %{_2}%"
- message "&7-------------------------------------" to {_1}
- message "{@duels} &6Fighting %{_2}%" to {_1}
- message "&7-------------------------------------" to {_1}
- message "&7-------------------------------------" to {_2}
- message "{@duels} &6Fighting %{_1}%" to {_2}
- message "&7-------------------------------------" to {_2}
- execute console command "/clear %{_1}%"
- execute console command "/clear %{_2}%"
- teleport {_1} to {1v11}
- teleport {_2} to {1v12}
- execute console command "/effect %{_1}% clear"
- execute console command "/effect %{_2}% clear"
- apply speed 2 to {_1} for 999 days
- equip {_1} with all iron armor of protection 4
- give 1 iron sword of unbreaking 100 and sharpness 2 to {_1}
- give 12 golden apple to {_1}
- apply speed 2 to {_2} for 999 days
- equip {_2} with all iron armor of protection 4
- give 1 iron sword of unbreaking 100 and sharpness 2 to {_2}
- give 12 golden apple to {_2}
- broadcast "{@duels} &9%{_1}% &6vs &9%{_2}%"
- stop
- else:
- send "{@logo} &cArena in use, try again later." to player
- stop
- else:
- set {1v1antispam.%player%} to true
- set {requesting.%player%} to arg 1
- send "{@logo} &6You are resquesting %arg 1% to 1v1" to player
- send "{@logo} &6%player% has challenged you to a duel, use /duel %player% to accept" to arg 1
- wait 30 seconds
- set {1v1antispam.%player%} to false
- stop
- else:
- send "{@tag} No spam!" to player
- on join:
- set {1v1antispam.%player%} to false
- on quit:
- clear {requesting.%player%}
- command /zd-debugarena1:
- permission: op
- trigger:
- set {arena1} to false
- on death:
- if {in1v1.%victim%} is true:
- set {in1v1.%victim%} to false
- set {in1v1.%attacker%} to false
- set {arena1} to false
- teleport attacker to {}
- clear attacker's inventory
- heal attacker
- on quit:
- if {in1v1.%player%} is true:
- set {in1v1.%player%} to false
- set {arena1} to false
- loop all players:
- if {in1v1.%loop-player%} is true:
- teleport loop-player to {spawn.duels}
- set {in1v1.%loop-player%} to false
- clear loop-player's inventory
- heal loop-player
- #----------Spect---------#
- command /spec:
- aliases: spect , fp-spect , fp-spec
- trigger:
- if has permission "fp.spec":
- make server execute "minecraft:gamemode 3 %player%"
- clear player's inventory
- wait 3 tick
- send "{@logo} &6Spectator mode &aEnabled"
- else:
- make server execute "minecraft:gamemode 3 %player%"
- clear player's inventory
- wait 3 tick
- send "{@logo} &6Spectator mode &aEnabled"
- command /surv:
- aliases: nospec , fp-surv , stopspec
- trigger:
- if has permission "fp.spec":
- set gamemode of player to survival
- wait 3 tick
- teleport player to {lobby.fp}
- send "{@logo} &6Spectator mode &cDisabled"
- else:
- set gamemode of player to survival
- wait 3 tick
- teleport player to {lobby.fp}
- send "{@logo} &6Spectator mode &cDisabled"
- command /fp-help-spec:
- aliases: fp-help-spect , fp-help-spectator
- trigger:
- if has permission "fp.admin":
- send "{@logo} &6Spectators Help"
- send "&aCommands:"
- send "&e/spec, /fp-spec - Enable spectator mode"
- send "&e/surv, /fp-surv - Back to normal mode"
- send "&aPermission:"
- send "&efp.spec - Allow to spec/surv"
- #----------Drops---------#
- on death of player:
- clear drops
- drop golden apple at location of victim
- #---------Lobby---------#
- command /fp-setmainlobby:
- permission: fp.admin
- trigger:
- set {lobby.fp} to location of player
- send "{@logo} &aLobby set!"
- command /fp-join-lobby:
- permission: fp.player
- aliases: fp-lobby , fplobby
- trigger:
- teleport player to {lobby.fp}
- set slot 0 of player's inventory to paper named "&aSelect FP mode"
- set slot 1 of player's inventory to diamond sword named "&eDuel"
- set slot 2 of player's inventory to head named "&9%player%'s &6Stats"
- #------------------------------Thanks dor downloading------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment