Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- deathban = true
- broadcast = true
- options:
- BardEnabled: true
- RogueEnabled: true
- ArcherEnabled: true
- BardSelectedMessage: &aBard Selected
- RogueSelectedMessage: &aRogue Selected
- ArcherSelectedMessage: &aArcher Selected
- BardDeselectedMessage: &cBard Deselected
- RogueDeselectedMessage: &cRogue Deselected
- ArcherDeselectedMessage: &cArcher Deselected
- BardPerm: hcfclasses.bard
- RoguePerm: hcfclasses.rogue
- ArcherPerm: hcfclasses.archer
- Version: 1.0
- BanMessage:&7You have been &cDeathbanned&7 for 5 Minutes. Buy an unban at &bhttp://factionsxhcf.buycraft.net/
- Prefix:&7[&bFX&7]
- Time: 5 minutes
- KingTime: 1 minutes
- UnbanBroadcast:&4%player%'s &cDeathban has expired!
- BanBroadcast:&4%player% &chas been Deathbanned! &7[5 Minutes]
- # Checks if the player has the correct armour for the classes
- every tick:
- loop all players:
- if {@BardEnabled} is true:
- if loop-player has permission "{@BardPerm}":
- if loop-player is wearing all gold armor:
- set {effects.%loop-player%.bard} to true
- apply swiftness 3 to loop-player for 9999 days
- apply resistance 2 to the loop-player for 9999 days
- apply weakness 4 to loop-player for 9999 days
- apply regeneration to loop-player for 9999 days
- if loop-player isn't wearing all gold armor:
- if loop-player's gamemode is survival:
- if {effects.%loop-player%.bard} is true:
- remove swiftness from the loop-player
- remove weakness from the loop-player
- remove regeneration from the loop-player
- remove resistance from the loop-player
- delete {effects.%loop-player%.bard}
- if {@RogueEnabled} is true:
- if loop-player has permission "{@RoguePerm}":
- if loop-player is wearing all chainmail armor:
- set {effects.%loop-player%.rogue} to true
- apply swiftness 3 to loop-player for 9999 days
- apply jump boost 2 to loop-player for 9999 days
- if loop-player isn't wearing all chainmail armor:
- if loop-player's gamemode is survival:
- if {effects.%loop-player%.rogue} is true:
- remove swiftness from the loop-player
- remove jump boost from the loop-player
- delete {effects.%loop-player%.rogue}
- if {@ArcherEnabled} is true:
- if loop-player has permission "{@ArcherPerm}":
- if loop-player is wearing all leather armor:
- set {effects.%loop-player%.archer} to true
- apply swiftness 3 to loop-player for 9999 days
- apply resistance 2 to the loop-player for 9999 days
- if loop-player isn't wearing all leather armor:
- if loop-player's gamemode is survival:
- if {effects.%loop-player%.archer} is true:
- remove swiftness from the loop-player
- remove resistance from the loop-player
- delete {effects.%loop-player%.archer}
- on place of tnt:
- cancel event
- on craft of golden apple:
- cancel event
- # Dont touch this unless you know what your doing.
- on death of player:
- if {broadcast} is true:
- broadcast "{@Prefix} {@BanBroadcast}"
- if {deathban} is true:
- make console execute command "/ban %player% {@BanMessage}"
- wait {@Time}
- make console execute command "/unban %player%"
- if {broadcast} is true:
- broadcast "{@Prefix} {@UnbanBroadcast}"
- command /deathbans [<text>]:
- permission: deathbans.admin
- permission message: {@Prefix} &cNo Permission!
- trigger:
- if arg 1 is "enable":
- if {deathban} is true:
- send "{@Prefix} &7Deathbans are already &aEnabled"
- else:
- set {deathban} to true
- send "{@Prefix} &7Deathbans have been &aEnabled"
- if arg 1 is "disable":
- if {deathban} is false:
- send "{@Prefix} &7Deathbans are already &cDisabled"
- else:
- set {deathban} to false
- send "{@Prefix} &7DeathBans have been &cDisabled"
- if arg 1 is not "enable" or "disable":
- send "{@Prefix} &c/deathbans <enable/disable>"
- command /deathbansbroadcast [<text>]:
- permission: deathbans.admin
- permission message: {@Prefix} &cNo Permission!
- trigger:
- if arg 1 is "enable":
- if {broadcast} is true:
- send "{@Prefix} &7Broadcasts are already &aEnabled"
- else:
- set {broadcast} to true
- send "{@Prefix} &7Broadcasts have been &aEnabled"
- if arg 1 is "disable":
- if {broadcast} is false:
- send "{@Prefix} &7Broadcasts are already &cDisabled"
- else:
- set {broadcast} to false
- send "{@Prefix} &7Broadcasts have been &cDisabled"
- if arg 1 is not "enable" or "disable":
- send "{@Prefix} &c/deathbansbroadcast <enable/disable>"
Advertisement
Add Comment
Please, Sign In to add comment