Kick plugin

Pootis

New member
Dec 23, 2022
1
0
1
Does anyone know how to make a plugin that makes it so that when a player with the nickname Fniler enters, for example, the command /kick Fniler is sent and the player Fniler is kicked from the server. Thank you right away for your help.
 

stefvanschie

Moderator
Staff member
Dec 17, 2021
97
3
16
8
You'd want to listen to the PlayerJoinEvent. When the name of the player that joins is "Fniler", you can execute the command (or preferably, use the kick method). Note that what you're asking for sounds a lot like a ban, in which case it may be easier to simply ban this player.