Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- broadcast " "
- broadcast "&6[Custom PvP]"
- broadcast " &7Status: &aEnabled"
- broadcast " "
- broadcast "&6Use '/cp help' to get help!"
- broadcast " "
- broadcast "&6Made By:"
- broadcast " &770sOn7"
- command /cp [<text>] [<text>]:
- permission: cp.*
- permission message: &cYou cannot do this!
- trigger:
- if arg-1 is not set:
- send "&6/cp Help"
- if arg-1 is set:
- if arg-1 is "help":
- send "&6[CustomPvP]"
- send " &7* Commands:"
- send " &7* /cp setspawn (cp.*)"
- send " &7* /cp setprefix (cp.*)"
- send " &7* /cp help (cp.*)"
- send " &7* /cp reload (cp.*)"
- send " &7* /cp tpspawn (cp.*)"
- send " &7* /setstats (cp.setstats)"
- if arg-1 is "reload":
- broadcast "&6[CustomPvP]"
- broadcast " &7Reloading..."
- wait 5 seconds
- broadcast "&7 Reloaded!"
- if arg-1 is "setprefix":
- if arg-2 is not set:
- send "&c/cp SetPrefix (Prefix)"
- if arg-2 is set:
- set {prefix} to "%arg-2%"
- send "&6[CustomPvP]"
- send " &7You have set your new prefix!"
- send " &7Prefix:"
- send " %{prefix}%"
- if arg-1 is "setspawn":
- send "&6[CustomPvP]"
- send " &7Set spawn to %player's location%"
- set {spawn} to player's location
- if arg-1 is "tpspawn":
- if {spawn} is not set:
- send "&6[CustomPvP]"
- send "&7 You need to set the spawn using '/cp setspawn'"
- if {spawn} is set:
- send "&6[CustomPvP]"
- send " &7Teleported to spawn!"
- teleport player at {spawn}
- on first join:
- set {elo.%player%} to 100
- set player's gamemode to adventure
- set {kills.%player%} to 0
- set {deaths.%player%} to 0
- on join:
- clear player's inventory
- teleport player at {spawn}
- delete {ac.%player%}
- wait 1 second
- loop 300 times:
- send " " to player
- send " "
- send " &cWelcome back! "
- send " "
- send " &aElo:"
- send " &7%{elo.%player%}%"
- send " &aDeaths:"
- send " &7%{deaths.%player%}%"
- send " &aKills:"
- send " &7%{kills.%player%}%"
- send " &7&oGet these stats using /stats"
- set player's gamemode to adventure
- on death of player:
- if attacker is player:
- broadcast "&c%victim% &7has been killed by &c%attacker%"
- remove 7 from {elo.%victim%}
- add 7 to {elo.%attacker%}
- send "&7 +7 Elo" to attacker
- send "&7 -7 Elo" to victim
- add 1 to {kills.%attacker%}
- add 1 to {deaths.%victim%}
- teleport victim at {spawn}
- set {ac.%attacker%} to true
- wait 10 seconds
- if {ac.%attacker%} is true:
- delete {ac.%attacker%}
- send "&cYour Anti-Clean protection has been disabled!" to attacker
- every second:
- loop all players:
- set loop-player's suffix to "&7 [%{elo.%loop-player%}%]"
- on damage:
- if {ac.%victim%} is true:
- send "&c%victim% has Anti-Clean protection activated!" to attacker
- cancel event
- if {ac.%attacker%} is true:
- send "&cYour Anti-Clean protection has been disabled!" to attacker
- delete {ac.%attacker%}
- command /stats [<offlineplayer>]:
- trigger:
- if arg-1 is not set:
- send " "
- send " &cStats of %player% "
- send " "
- send " &aElo:"
- send " &7%{elo.%player%}%"
- send " &aDeaths:"
- send " &7%{deaths.%player%}%"
- send " &aKills:"
- send " &7%{kills.%player%}%"
- if arg-1 is set:
- send " "
- send " &cStats of %arg-1% "
- send " "
- send " &aElo:"
- send " &7%{elo.%arg-1%}%"
- send " &aDeaths:"
- send " &7%{deaths.%arg-1%}%"
- send " &aKills:"
- send " &7%{kills.%arg-1%}%"
- command /setstats [<offlineplayer>] [<text>] [<text>]:
- permission: cp.setstats
- permission message: &cYou cannot do this!
- trigger:
- if arg-1 is not set:
- send "&9Stats > &7/setstats (Player) (Stat Type) (Amount)"
- stop
- if arg-2 is not set:
- send "&9Stats > &7/setstats %arg-1% (Stat Type) (Amount)"
- stop
- if arg-2 is set:
- if arg-2 is not "elo":
- if arg-2 is not "kills":
- if arg-2 is not "deaths":
- send "&9Stats > &7The Stat Types are (Elo/Kills/Deaths)"
- stop
- if arg-3 is not set:
- send "&9Stats > &7/setstats %arg-1% %arg-3% (Amount)"
- stop
- if arg-1 is set:
- if arg-2 is set:
- if arg-3 is set:
- if arg-2 is "elo":
- set {elo.%arg-1%} to arg 3
- send "&9Stats > &7You have set &9%arg-1%'s &7Elo to %arg-3%!"
- stop
- if arg-2 is "kills":
- set {kills.%arg-1%} to arg 3
- send "&9Stats > &7You have set &9%arg-1%'s &7Kills to %arg-3%!"
- stop
- if arg-2 is "deaths":
- set {deaths.%arg-1%} to arg 3
- send "&9Stats > &7You have set &9%arg-1%'s &7Deaths to %arg-3%!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement