Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /Build:
- permission: builder
- trigger:
- if {Build::%player%} is true:
- send "&7Building has been &a&lEnabled&7!"
- set {Build::%player%} to false
- set {WG::%player%} to false
- stop
- if {Build::%player%} is false:
- send "&7Building has been &c&lDisabled&7!"
- set {WG::%player%} to true
- set {Build::%player%} to true
- stop
- on inventory click:
- if {inventory::%player%} is true:
- cancel event
- if {inventory::%player%} is false:
- stop
- every 1 tick in "CowClicks":
- loop all players:
- if {inventory::%loop-player%} is not set:
- set {inventory::%loop-player%} to false
- command /Pvp:
- trigger:
- if {pvp::%player%} is false:
- if {attacks1::%player%} is true:
- send "&7PVP has been &a&lEnabled&7!"
- set player's chestplate to a diamond_chestplate named "&f"
- set player's helmet to a diamond helmet named "&f"
- set player's leggings to a diamond_leggings named "&f"
- set player's boots to a diamond_boots named "&f"
- add a diamond_sword of sharpness 5 to player's inventory
- add a bow of infinity 1 and power 3 to player's inventory
- add a arrow to player's inventory
- set {attacks1::%player%} to false
- set {attacks::%player%} to true
- set {inventory::%player%} to true
- stop
- if {attacks1::%player%} is false:
- send "&7PVP has been &c&lDisabled&7!"
- set player's chestplate to air
- set player's helmet to air
- set player's leggings to air
- set player's boots to air
- set {inventory::%Player%} to false
- remove a diamond_sword from player's inventory
- remove a bow from player's inventory
- remove a arrow from player's inventory
- set {attacks1::%player%} to true
- set {attacks::%player%} to false
- stop
- else:
- send "&3&lYou are in combat wait 10 seconds!"
- every 1 second in "CowClicks":
- loop all players:
- if {WG::%loop-player%} is not set:
- set {WG::%loop-player%} to true
- if {Build::%loop-player%} is not set:
- set {Build::%loop-player%} to true
- every 1 second in "CowClicks":
- loop all players:
- if {attacks::%loop-player%} is not set:
- set {attacks::%loop-player%} to false
- if {attacks1::%loop-player%} is not set:
- set {attacks1::%loop-player%} to false
- on damage of a player:
- if {attacks::%attacker%} is true:
- if {attacks::%victim%} is true:
- stop
- if {attacks::%victim%} is false:
- send "&7%victim% has pvp disabled!" to attacker
- cancel event
- if {attacks::%attacker%} is false:
- cancel event
- send "&7You may not harm another player here!" to attacker
- on place:
- if {WG::%player%} is true:
- cancel event
- send "&7You may not edit these grounds!"
- stop
- if {WG::%player%} is false:
- uncancel event
- stop
- on break:
- if {WG::%player%} is true:
- cancel event
- send "&7You may not edit these grounds!"
- stop
- if {WG::%player%} is false:
- uncancel event
- stop
- options:
- ConfigVersion: 1.0
- # Do not edit this, its for me to help people if / when they require help! #
- Version: 0.0.5
- # Please do not edit this #
- SkriptName: AntiCombatLog
- # Edit this to what you save the skript as *WITHOUT THE .SK AT THE END*
- Prefix: &7[&bACL&7]
- # Set this to the prefix of your server.
- ColorScheme1: &7
- # Pick a color and put it here! #
- NoPermissionMessage: &cYou have no permission!
- # Set this to the permission message for the skript - Players without the permission to reload the Skript will see this #
- # You may use variables / placeholders such as %player% and %uuid of player% etc #
- SelectedWorld: "CowClicks" # Default setting
- # Set this to the world or worlds that you wish to use this skript in #
- PunishmentCommand1: kill %player%
- # The punishment command a player will receieve after logging out in combat. eg /kill %player%
- # NEW #
- CombatTimer: 9 # Default #
- # The amount of time set, please minus 1 away from the desired amount. e.g if you want 20 seconds put 19. #
- # Thats it, you're done with the config :D
- # More Updates Coming Soon #
- on damage:
- if victim is a player:
- if attacker is a player:
- if {anticombatlog.%attacker%} = 0:
- message "{@Prefix} {@ColorScheme1}You have been combat tagged, do not log out!" to victim
- message "{@Prefix} {@ColorScheme1}You have tagged %victim%, do not log out!" to attacker
- set {anticombatlog.%victim%} to 1
- set {anticombatlog.%attacker%} to 1
- every second in {@SelectedWorld}:
- loop all players:
- if {anticombatlog.%loop-player%} > 0:
- add 1 to {anticombatlog.%loop-player%}
- loop all players:
- if {anticombatlog.%loop-player%} > {@CombatTimer}:
- set {anticombatlog.%loop-player%} to 0
- message "{@Prefix} {@ColorScheme1}You can now log out!" to loop-player
- command /anticombatlog [<text>]:
- permission: anticombatlog.reload
- permission message: {@NoPermissionMessage}
- trigger:
- if arg 1 is "reload":
- broadcast "&7AntiCombatLog {@Version} is reloading.."
- make player execute command "/sk reload {@SkriptName}.sk"
- wait 4 seconds
- broadcast "&bAntiCombatLog {@Version} has succesfully reloaded!"
- broadcast "&bPlease report any issues on the Spigot page!"
- else:
- send "&9Usage /anticombatlog reload"
- command /ct:
- trigger:
- send "{@ColorScheme1}The server combat log timer is &9{@CombatTimer} seconds" to player
- # Added in V0.0.4 HOTFIX 2 #
- on join:
- if {anticombatlog.%player%} > 0:
- message "{@Prefix} {@ColorScheme1}You logged out in combat!"
- make console execute command "{@PunishmentCommand1}"
- # Added in V0.0.4 HOTFIX 3 #
- on command "spawn":
- if {anticombatlog.%player%} > 0:
- cancel event
- message "{@Prefix} {@ColorScheme1}You may not teleport to spawn whilst in combat!"
- on command "home":
- if {anticombatlog.%player%} > 0:
- cancel event
- message "{@Prefix} {@ColorScheme1}You may not teleport whilst in combat!"
- on command "pvp":
- if {anticombatlog.%player%} > 0:
- cancel event
- message "{@Prefix} {@ColorScheme1}You may not teleport whilst in combat!"
- # How to add your own command to be blocked whilst a player is in combat #
- #on command "<command name without backslash>":
- # if {anticombatlog.%player%} > 0:
- # cancel event
- # message "{@Prefix} {@ColorScheme1}<insert deny message here>"
- on item damage:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment