Jump to content

ban hammer skript


SBV3

Recommended Posts

on damage:
	if attacker's tool is stone axe named "&8&l&n>>> BAN HAMMER <<<":
		ban victim
		broadcast &c&l%victim% was just banned by %attacker%
        
command /banhammer:
	permission: op
    trigger:
    	give player 1 stone axe named "&8&l&n>>> BAN HAMMER <<<"
        send "&aCongrats! you now have a ban hammer!" to player

i havent tested this xD

image.png.f212204897ad1100be7ca5bf6c2936a8.png

 

 

 

 

Link to comment
Share on other sites

doesent work sorry

Nmazey

Hello I'm nmazey and I joined minehut in 2014 but left because
It was super TRASH! and played other servers...

But in 2015 I joined back and saw the in-game gui and I left because i thought That it was still a towny server.. 2 years later I realised that I saw lots of youtube videos about minehut

so I joined again and found out it's not an towny server anymore saw free minecraft servers! Then I started to make a minehut server called foxboxy, newwolf and more

but today in 2024 I have 62 servers and I have the VIP rank and switched to bedrock

 

 

 

Link to comment
Share on other sites

I'm not sure if you're new to skript or you just had to hurry with this skript but it doesn't work. First of all, the broadcast won't work without the " ", Then I would instead of using "on damage", I would use "on right click on entity" then check if the entity is a player. Your indention is also very bad. 

Example:

image.png.4116d81426b8cfd0ce0c864a7c434224.png

 

image.png.8250f1ca4fd5fa51742416c0004798af.png

Edited by SIG12
Link to comment
Share on other sites

  • 9 months later...

It doesn't work but I got it to work so here the code

on damage:
    if attacker's tool is stone axe named "&c&l&nBAN HAMMER":
        command "ban %victim%"
        command "broadcast &c&l%victim% was just banned by %attacker%"
        
command /banhammer:
    permission: op
    trigger:
        give player 1 stone axe named "&c&l&nBAN HAMMER"
        send "&aCongrats! you now have a ban hammer!" to player

Link to comment
Share on other sites

  • 5 months later...

Please make sure that you aren't responding to posts that haven't been responded to in over a month. Thanks!

Discord - phantom_fire7

In-Game Name - Phantom_Fire7

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Default - 2020-2021

♡ [VIP]  - 2022-2023

Volunteer Moderator - 2024-Current

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Report player/server: Report here.
Create a support ticket: Submit a request.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...