Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #---------------------------------------------------#
- # #
- # Custom Death Messages #
- # #
- # Created by Fake / CraftageSetups #
- # #
- #---------------------------------------------------#
- #---------------------------------------------------#
- # #
- # Main Options - Edit Below! #
- # #
- # prefix = &8[&bFactions&3X&8] #
- # main-color = &b #
- # secondary-color = &3 #
- # #
- #---------------------------------------------------#
- variables:
- {second::%player%} = 0
- {minute::%player%} = 0
- {hour::%player%} = 0
- options:
- heart: ❤
- prefix: &f[&5Death&f]
- main-color: &d
- secondary-color: &f
- Prefix: &b&lPlaytime &f•
- Message: &fYou've played for
- MessageDays: &f• Days
- MessageHours: &f• Hours
- MessageMinutes: &f• Minutes
- MessageSeconds: &f• Seconds
- DayCount: d
- HourCount: h
- MinuteCount: m
- SecondCount: s
- ColorCount: &b
- HelpTitle: &b&lPlaytime Help&f
- HelpMsg1: &b/playtime&f Show your playtime.
- HelpMsg2: &b/playtime help&f Show this message.
- InvalidArg: Invalid argument! # Access to all commands
- prefix1: &8[&b&lPlaytime&8] # Prefix on chat messages
- #---------------------------------------------------#
- # #
- # Skript - Do not touch! #
- # #
- #---------------------------------------------------#
- on death:
- if attacker is a player:
- if projectile is set:
- set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was shot by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
- else:
- set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
- if attacker is not a player:
- if attacker is set:
- set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
- if damage was caused by potion:
- set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by magic."#
- else:
- set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
- # +-----------------------------------------+ #
- #
- # Splaytime
- #
- # the name actually means Skript-Playtime,
- # not splaytime...
- #
- # skript by zDan_YT
- #
- # +-----------------------------------------+ #
- # +-----------------------------------------+ #
- #
- # Configuration
- #
- # Configure the messages/colors here.
- #
- # +-----------------------------------------+ #
- command /playtime [<text>]:
- trigger:
- if arg 1 is not set:
- message "{@Prefix} {@Message}:"
- message "{@MessageDays}: {@ColorCount}%{Days.%player%}% {@DayCount}"
- message "{@MessageHours}: {@ColorCount}%{Hours.%player%}% {@HourCount}"
- message "{@MessageMinutes}: {@ColorCount}%{Minutes.%player%}% {@MinuteCount}"
- message "{@MessageSeconds}: {@ColorCount}%{Seconds.%player%}% {@SecondCount}"
- if arg 1 is set:
- if arg 1 is "help":
- message "{@HelpTitle}:"
- message "{@HelpMsg1}"
- message "{@HelpMsg2}"
- if arg 1 is not "help":
- message "{@InvalidArg}"
- every 1 second:
- loop all players:
- add 1 to {Seconds.%loop-player%}
- if {Seconds.%loop-player%} is 60:
- set {Seconds.%loop-player%} to 0
- add 1 to {Minutes.%loop-player%}
- if {Minutes.%loop-player%} is 60:
- if {Seconds.%loop-player%} is 0:
- add 1 to {Hours.%loop-player%}
- set {Seconds.%loop-player%} to 0
- set {Minutes.%loop-player%} to 0
- if {Hours.%loop-player%} is 24:
- if {Minutes.%loop-player%} is 60:
- if {Seconds.%loop-player%} is 0:
- add 1 to {Days.%loop-player%}
- set {Hours.%loop-player%} to 0
- set {Minutes.%loop-player%} to 0
- set {Seconds.%loop-player%} to 0
- if {Seconds.%loop-player%} is not set:
- set {Seconds.%loop-player%} to 0
- if {Minutes.%loop-player%} is not set:
- set {Minutes.%loop-player%} to 0
- if {Hours.%loop-player%} is not set:
- set {Hours.%loop-player%} to 0
- if {Days.%loop-player%} is not set:
- set {Days.%loop-player%} to 0
- command /freeze [<player>]:
- permission: freezer.freeze
- trigger:
- if arg 1 is not set:
- send "&4Error >> &cdo /freeze (player)"
- if arg 1 is set:
- set {freeze.move.%arg-1%} to true
- send "&a&o%arg-1% has been frozen"
- broadcast "&7&4%arg-1% &7has been frozen by &4%player% &7for hacking, &4do not logout!"
- message "&4You were frozen by %player% for hacking, do not logout or you will be permanently banned %newline%. You can admit for a shorter ban or accept a screenshare! %newline% &4Join our discord and join Requesting Staff if you wish to do a screenshare and prove your innocence! %newline% &4Here is the discord link! -> https://discord.gg/PewhcdH <- %newline%" to arg 1
- command /unfreeze [<player>]:
- permission: freezer.freeze
- trigger:
- if arg 1 is not set:
- send "&4Error >> &cdo /unfreeze (player)"
- if arg 1 is set:
- set {freeze.move.%arg-1%} to false
- send "&a&o%arg-1% has been unfrozen"
- broadcast "&7&a%arg-1% &7has been unfrozen by &a%player%!"
- message "&2You were unfrozen by %player%! Sorry about that. Have a nice day &c❤" to arg 1
- on any movement:
- if {freeze.move.%player%} is true:
- cancel event
Add Comment
Please, Sign In to add comment