Jump to content

Kick players with stick script fix


Udoy

Recommended Posts

on right click with stick:

    if name of tool of player is "&6KickTool":
        kick event-entity because of "&cYou were kicked by an Staff Member!"

This script is working,  but when i am not targetting any player using the stick, it's kicking me.

Is there any way i could get bypass from being kicked by the stick?

Its kicking every stick user when they right click without targetting players.Someone pls help by modifying this script :)

Link to comment
Share on other sites

 

On 8/10/2022 at 11:16 AM, ApexSplat said:
on right click on player:
    if name of player's held item is "&6KickTool":
        kick clicked-entity because of "&cYou were kicked by an Staff Member!"

 

Its showing this error

&cYou were kicked by an Staff Member!" is neither an item stack, an item type nor an entity type"

How to fix?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...