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&lFrostPvP &7>>
- duels: &6&lDuels &7>>
- on join:
- remove absorption from player
- remove regeneration from player
- set player's gamemode to adventure
- 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&lFrostPvP&4&k::" to player
- wait 3 ticks
- format slot 1 of player with lava bucket named "&4&lUHC OFFLINE" 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 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!"
- 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&lFrostKB!"
- 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&lFrostUHC!"
- 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&lFrostUHC!"
- 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 , leave , 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 "UHC": #<-- 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 "world": #<-- Change this world name to your Normal world name
- if has permission "fp.player":
- set gamemode of player to adventure
- clear player's inventory
- wait 3 tick
- set slot 10 of player's inventory to ender portal frame named "&aKits"
- set slot 11 of player's inventory to head named "&9Stats"
- teleport player to {spawn.normal}
- else:
- set gamemode of player to adventure
- clear player's inventory
- wait 3 tick
- set slot 10 of player's inventory to ender portal frame named "&aKits"
- set slot 11 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 "world": #<-- 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
- trigger:
- send ""
- send "&8-----&6&lFrostPvP&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&lFrostFFA&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&lFrostKB&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&lFrostUHC&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 "[frostpvp]":
- if line 2 is "join":
- set line 1 to "&8[&9&lFrostPvP&8]"
- set line 2 to "&6Join"
- if line 2 is "leave":
- set line 1 to "&8[&9&lFrostPvP&8]"
- set line 2 to "&6Leave"
- if line 2 is "stats":
- set line 1 to "&8[&9&lFrostPvP&8]"
- set line 2 to "&6Stats"
- on click on sign:
- if line 1 is "&8[&9&lFrostPvP&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 "&4&lUHC COMING SOON" 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 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"]
- #----------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 /fpjoinlobby:
- 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 for downloading------------------------------#
Add Comment
Please, Sign In to add comment