The quick way: Player Manager
The panel’s Player Manager shows who is online and lets you give or remove OP, edit the whitelist, kick, ban and unban with buttons. Everything below can also be done from there.
Make yourself an operator (OP)
An operator can use every admin command in the game. Open your server in the game panel, go to Console and type (without a slash):
op YourName
Replace YourName with your exact Minecraft username. To remove it again:
deop YourName
Only give OP to people you fully trust. They can change the world, ban players and stop the server.
Turn on the whitelist
A whitelist lets only the players you add join your server. It is the easiest way to keep strangers and griefers out.
whitelist on
whitelist add FriendName
Other useful commands:
whitelist remove FriendName
whitelist list
whitelist off
Add yourself before you turn it on, or you will be locked out too.
Kick and ban players
kick PlayerName Breaking the rules
ban PlayerName Griefing
pardon PlayerName
ban-ip 1.2.3.4
Using a ranks plugin instead
For more control than OP (for example moderators who can kick but not ban), install LuckPerms and give permissions per rank. See Install plugins on your Minecraft server.