Admin Commands: How to Become OP and Manage Your Server

After getting your Minecraft server running, the next step is to take control. In Minecraft, the administrator is called an OP (Operator). Being an OP means having permission to execute commands that change the world's rules, control players, and alter the environment in real-time.

1. How to Become OP (The First Step)

Since you don't have in-game permissions yet, the first "OP" must be granted through the console window (that black screen where the server is running on your Windows).

  1. With the server open, go to the console text box.
  2. Type: op your_in_game_nick (replace with your exact Minecraft name).
  3. Press Enter. You will see a message confirming that you are now an operator.

2. Essential Commands for Daily Use

Now that you have the "power," you can type commands directly into the in-game chat (by pressing the T key and starting with /). Check out the most useful ones:

Command What does it do?
/gamemode creative Changes your mode to Creative (flying, infinite items).
/tp player1 player2 Teleports one player to another.
/weather clear Clears rain or storms immediately.
/time set day Makes the sun rise instantly.
/kick player Kicks a player from the server.
/ban player Permanently bans someone from your server.

3. The Danger: Offline Mode (online-mode=false)

Many server owners disable online-mode in the server.properties file to allow friends with non-official versions to join. If this is your case, pay extra attention:

In offline mode, the server does not verify identity with Microsoft servers. This creates a critical security loophole: anyone can choose any "Nick" they want in their own launcher and enter the server pretending to be you or any other player.

The White-list won't save you here: Even if you have the White-list active, an attacker only needs to find out your in-game name. Since they can change their name to yours, the server will see that the name "Boreaz" is on the White-list and grant full administrator (OP) access to the attacker.

How to protect yourself in offline mode?

  • Never disconnect as an OP: Before disconnecting from your server, remove your own administrator power via the console (command deop your_nick). Only grant yourself OP again once you are logged in.
  • Login Plugins: If you intend to keep the server open to the public in offline mode, it is mandatory to install an authentication plugin. See our complete tutorial on how to configure AuthMe Reloaded.
  • Private Servers: Keep the server only for very close friends and do not disclose the IP publicly.

4. Managing the White-list

To prevent strangers from entering your server and causing issues (the famous "Griefing"), we recommend using the White-list.

  • /whitelist on - Activates protection. From here on, only those on the list can join.
  • /whitelist add friend_name - Adds a friend to the permission list.

Conclusion

Being an OP makes life much easier for those managing a server, but remember: "with great power comes great responsibility." Use commands to improve your friends' experience and always keep your world's security first.