#Whitelist

1 messages · Page 1 of 1 (latest)

wicked elm
#

How would I make a whitelist to where I can make it so that like only people with the tag admin can join and if they don’t have the admin tag they get kicked

slender snow
#

On playerSpawn event if player has tag (whatever tag u want) you kick him.

#

Or the contrary: if it doesn’t have the tag you kick it...

#

Btw if that is your aim, maybe you should consider using the whitelist provided by the server software itself

wicked elm
#

Btw I was making a whitelist for a realm

slender snow
#

Nice

#

Be aware that this approach has a remarkable disadvantage

#

If you “banned” someone without a database there is a problem with unban

#

Say u wanna unban someone with tag “banned”. This person is not online, so you can’t edit it’s tags. You could try to save the name on some variable and then when he tries to join, you remove its “banned” tag. But if server is restarted in he meanwhile the value will be lost, and the person still banned

wicked elm
#

Where I can toggle a whitelist and me and staff can join but everyone else gets kicked

#

Then I toggle it off and they can join again

slender snow
#

I see, nice

#

Then you don’t really need the loop. When you execute the command !adminonly (eg), you also kick everyone who doesn’t have the tag