#Ban Hammer skript not working [RESOLVED]

1 messages · Page 1 of 1 (latest)

tiny gull
#
on damage:
  victim is a player:
    if name of attacker's tool contains "&cBan Hammer" with lore "&cBan a player for 1 week":
      attacker has permission "op":
        execute server command "/ban %victim%"

It does not give any error but nothing happens.
Please help me

fervent maple
#

remove the /

#

after execute server command

#

i suggest execute console command "ban %victim%

tiny gull
#

now it gives the error message "&cBan Hammer" is not an item type

fervent maple
#

i suggest you use name of player's tool is "":

tiny gull
#

I can't use "if name of player's tool is "&cBan Hammer" with lore "&cBan a player for 1 week" cause I need to use attacker and victim

#

if I change it to if name of attacker's tool is "": I get back to "&cBan Hammer" is not an item type

still dust
tiny gull
#

how do I fix it?

still dust
#

Don’t compare the lore

#

Or compare lore in another condition

tiny gull
#

so no lore?

still dust
#

Yes