-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fd6306
commit 65dd91c
Showing
66 changed files
with
717 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/admin_cmds/clearchat.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#bridge-file-version: #12 | ||
execute as @s[tag=admin] run tellraw @a {"rawtext":[{"text":"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n§6[§eSafeGuard§6]§r Chat has been cleared by §d"},{"selector":"@s"}]} | ||
execute as @s[tag=!admin] run tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§4 You need admin tag to run this!§r"}]} | ||
playsound random.anvil_land @s[tag=!admin] |
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/admin_cmds/fake_leave.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
Safeguard anti-cheat B/functions/admin_cmds/fake_leave_server.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
#bridge-file-version: #1 | ||
execute as @s[tag=admin] run tellraw @a {"rawtext":[{"text":"§e"},{"selector":"@s"},{"text":" left the server"}]} | ||
tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§a Fake left success!"}]} | ||
playsound random.levelup @s[tag=admin] | ||
tellraw @s[tag=!admin] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §4You need admin tag to run this!"}]} | ||
playsound random.anvil_land @s[tag=!admin] | ||
execute as @s[tag=admin] run tellraw @a {"rawtext":[{"text":"§e"},{"selector":"@s"},{"text":" left the server"}]} | ||
tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§a Fake left success!"}]} | ||
playsound random.levelup @s[tag=admin] | ||
tellraw @s[tag=!admin] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §4You need admin tag to run this!"}]} | ||
playsound random.anvil_land @s[tag=!admin] | ||
#notify | ||
tellraw @a[tag=admin,scores={notify=1}] {"rawtext":[{"text":"§6[§eSafeGuard Notify§6]§5§l "},{"selector":"@s"},{"text":" §bfake left!§r"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/admin_cmds/summon_npc.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 12 additions & 13 deletions
25
Safeguard anti-cheat B/functions/anti/anti_grief.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
#bridge-file-version: #35 | ||
tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"text":"ERROR: §r§4This function shouldn't be ran manually§r"}]} | ||
tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"text":"ERROR: §r§4This function shouldn't be ran manually§r"}]} | ||
#gamerule | ||
execute as @a[scores={grief_on=0}] run gamerule tntexplodes false | ||
execute as @a[scores={grief_on=0}] run gamerule respawnblocksexplode false | ||
execute as @a[scores={grief_on=0}] run gamerule tntexplodes false | ||
execute as @a[scores={grief_on=0}] run gamerule respawnblocksexplode false | ||
#detect | ||
execute as @a[scores={grief_on=0}] run execute as @e[type=tnt,tag=!admin] run tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"selector":"@p[tag=!admin]"},{"text":" §r§4Was detected summoning a §l§cTNT!§r"}]} | ||
execute as @a[scores={grief_on=0}] run execute as @e[type=tnt,tag=!admin] run execute as @p run function punishment/warning/grief_warning | ||
execute as @a[scores={grief_on=0}] run execute as @e[type=tnt,tag=!admin] run tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"selector":"@p[tag=!admin]"},{"text":" §r§4Was detected summoning a §l§cTNT!§r"}]} | ||
execute as @a[scores={grief_on=0}] run execute as @e[type=tnt,tag=!admin] run execute as @p run function punishment/warning/grief_warning | ||
#clear inventory | ||
execute as @a[scores={grief_on=0}] run clear @a[tag=!admin] tnt 0 | ||
execute as @a[scores={grief_on=0}] run clear @a[tag=!admin] tnt_minecart 0 | ||
execute as @a[scores={grief_on=0}] run clear @a[tag=!admin] end_crystal 0 | ||
execute as @a[scores={grief_on=0}] run clear @a[tag=!admin] respawn_anchor 0 | ||
execute as @a[scores={grief_on=0}] run clear @a[tag=!admin] tnt 0 | ||
execute as @a[scores={grief_on=0}] run clear @a[tag=!admin] tnt_minecart 0 | ||
execute as @a[scores={grief_on=0}] run clear @a[tag=!admin] end_crystal 0 | ||
execute as @a[scores={grief_on=0}] run clear @a[tag=!admin] respawn_anchor 0 | ||
#Kill tnt | ||
execute as @a[scores={grief_on=0}] run execute as @a run kill @e[type=tnt] | ||
execute as @a[scores={grief_on=0}] run execute as @a run kill @e[type=tnt_minecart] | ||
execute as @a[scores={grief_on=0}] run execute as @a run kill @e[type=tnt] | ||
execute as @a[scores={grief_on=0}] run execute as @a run kill @e[type=tnt_minecart] | ||
#Replace tnt and other explosive blocks as a security measure | ||
execute as @a[scores={grief_on=0}] run execute as @a[tag=!admin] run fill ~8 ~5 ~8 ~-8 ~-5 ~-8 air 0 replace tnt | ||
execute as @a[scores={grief_on=0}] run execute as @a[tag=!admin] run fill ~8 ~5 ~8 ~-8 ~-5 ~-8 air 0 replace tnt | ||
execute as @a[scores={grief_on=0}] run execute as @a[tag=!admin] run fill ~8 ~5 ~8 ~-8 ~-5 ~-8 air 0 replace fire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#bridge-file-version: #37 | ||
#PUT THIS IN A REPEATING COMMAND BLOCK ONLY WITH A TICK PER SECOND DELAY | ||
#Killing the entities and stuff idk | ||
gamerule domobloot false | ||
scoreboard objectives add anti_lag dummy | ||
scoreboard players add @r anti_lag 1 | ||
gamerule domobloot false | ||
scoreboard objectives add anti_lag dummy | ||
scoreboard players add @r anti_lag 1 | ||
execute as @a[scores={anti_lag=1}] run tellraw @a[scores={anti_lag=1}] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§a Ground items cleared in 10 seconds..."}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#bridge-file-version: #1 | ||
particle minecraft:huge_explosion_emitter ~~~ | ||
playsound mob.wither.break_block |
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/assets/death_effect.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
Safeguard anti-cheat B/functions/assets/welcomer.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
#bridge-file-version: #27 | ||
#Tag | ||
tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"text":"ERROR: §r§4This function shouldn't be ran manually§r"}]} | ||
execute as @a[scores={welcome_on=0}] run scoreboard players set @a[scores={welcomer=3..}] welcomer 2 | ||
execute as @a[scores={welcome_on=0}] run execute as @a[scores={welcomer=..1}] run tellraw @a {"rawtext":[{"text":"§e"},{"selector":"@s"},{"text":" §bIs joining for the first time! This realm is protected by §eSafeGuard§b, enjoy your stay!§r"}]} | ||
execute as @a[scores={welcome_on=0}] run scoreboard players add @a welcomer 1 | ||
execute as @a[scores={welcome_on=0}] run title @a[scores={welcomer=..1}] title §e§lSafe§6Guard | ||
execute as @a[scores={welcome_on=0}] run title @a[scores={welcomer=..1}] subtitle §l§fProtecting §a24§f/§a7 | ||
tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"text":"ERROR: §r§4This function shouldn't be ran manually§r"}]} | ||
execute as @a[scores={welcome_on=0}] run scoreboard players set @a[scores={welcomer=3..}] welcomer 2 | ||
execute as @a[scores={welcome_on=0}] run execute as @a[scores={welcomer=..1}] run tellraw @a {"rawtext":[{"text":"§e"},{"selector":"@s"},{"text":" §bIs joining for the first time! This realm is protected by §eSafeGuard§b, enjoy your stay!§r"}]} | ||
execute as @a[scores={welcome_on=0}] run scoreboard players add @a welcomer 1 | ||
execute as @a[scores={welcome_on=0}] run title @a[scores={welcomer=..1}] title §e§lSafe§6Guard | ||
execute as @a[scores={welcome_on=0}] run title @a[scores={welcomer=..1}] subtitle §l§fProtecting §a24§f/§a7 | ||
execute as @a[scores={welcome_on=0}] run title @a[scores={welcomer=..1}] times 20 80 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/punishment/ban/ac_ban.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/punishment/echest_ban/echest_ban.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/punishment/echest_ban/echest_remove.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/punishment/echest_ban/echest_wipe.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Safeguard anti-cheat B/functions/punishment/flag/flagged.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Safeguard anti-cheat B/functions/punishment/flag/flagged_remove.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
Safeguard anti-cheat B/functions/punishment/freeze/freeze.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#bridge-file-version: #10 | ||
tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"text":"ERROR: §r§4This function shouldn't be ran manually§r"}]} | ||
title @a[tag=freeze] times 1 1 1 | ||
execute at @a[tag=freeze] run tp @s[tag=freeze] ~ ~ ~ facing @s | ||
effect @a[tag=freeze] slowness 100 100 true | ||
inputpermission set @a[tag=freeze] movement disabled | ||
title @a[tag=freeze] actionbar §b§lYou are frozen.§r |
3 changes: 1 addition & 2 deletions
3
Safeguard anti-cheat B/functions/punishment/freeze/freeze_remove.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
#bridge-file-version: #13 | ||
#unfreezes person | ||
tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"text":"ERROR: §r§4This function shouldn't be ran manually§r"}]} | ||
tag @a[tag=unfreeze] remove freeze | ||
effect @a[tag=unfreeze] clear | ||
inputpermission set @a[tag=unfreeze] movement enabled | ||
tellraw @a[tag=unfreeze] {"rawtext":[{"text":"§6[§eSafeGuard§6] §aFreeze was removed!!"}]} | ||
execute as @a[tag=unfreeze] run tellraw @a[tag=admin,scores={notify=1}] {"rawtext":[{"text":"§6[§eSafeGuard Notify§6]§5§l "},{"selector":"@a[tag=unfreeze]"},{"text":" §bwas unfreezed! §r"}]} | ||
tag @a[tag=unfreeze] remove unfreeze |
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/punishment/inv_lock/inv_lock.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/punishment/inv_lock/inv_lock_remove.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Safeguard anti-cheat B/functions/punishment/warning/warning.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
Safeguard anti-cheat B/functions/settings/anti_gmc.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
Safeguard anti-cheat B/functions/settings/anti_grief.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
Safeguard anti-cheat B/functions/settings/anti_items.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
Safeguard anti-cheat B/functions/settings/auto_mod.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Safeguard anti-cheat B/functions/settings/beta/anti_fly.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#Toggle fly protection | ||
scoreboard players add @s[tag=admin] antifly_toggle 1 | ||
scoreboard players set @s[tag=admin,scores={antifly_toggle=2..}] antifly_toggle 0 | ||
tellraw @s[tag=admin,scores={antifly_toggle=0}] {"rawtext":[{"text":"§6[§eSafeGuard§6]§b Anti Fly §l§5turned off! §r"}]} | ||
execute as @s[tag=admin,scores={antifly_toggle=0}] run scoreboard objectives remove "safeguard:fly_check" | ||
tellraw @s[tag=admin,scores={antifly_toggle=1}] {"rawtext":[{"text":"§6[§eSafeGuard§6]§b Anti Fly §l§5turned on! §r"}]} | ||
execute as @s[tag=admin,scores={antifly_toggle=1}] run scoreboard objectives add "safeguard:fly_check" dummy | ||
playsound note.bass @s[tag=admin] ~~~ | ||
#deny | ||
tellraw @s[tag=!admin] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §4You need admin tag to run this!§r"}]} | ||
playsound random.anvil_land @s[tag=!admin] | ||
#Notify people who turned it on | ||
execute as @s[scores={antifly_toggle=1}] run tellraw @a[tag=admin,scores={notify=1}] {"rawtext":[{"text":"§6[§eSafeGuard Notify§6]§5§l "},{"selector":"@s[scores={antifly_toggle=1}]"},{"text":" §bturned on§l§5 Anti Fly! §r"}]} | ||
execute as @s[scores={antifly_toggle=0}] run tellraw @a[tag=admin,scores={notify=1}] {"rawtext":[{"text":"§6[§eSafeGuard Notify§6]§5§l "},{"selector":"@s[scores={antifly_toggle=0}]"},{"text":" §bturned off§l§5 Anti Fly! §r"}]} |
Oops, something went wrong.