# Minecraft Server Commands – OP, Whitelist, TPS & Console

Important Minecraft admin commands: /op, /whitelist, /ban, /tps, stop, save-all. For Paper: /timings report and Chunky commands.

This overview shows you the most important commands for managing your Minecraft server – from the console and as operator (OP) in-game. The commands work for Vanilla, Paper, Spigot and most other server variants.

**Note:** Detailed subpages on plugins and mods can be found in the left navigation.

## Server Console (Startup Parameters and Control)

These commands are entered directly in the server console:

    
        Command
        Function
    

    
        `stop`
        Shut down server cleanly and save world
    

    
        `restart`
        Restart server
    

    
        `save-all`
        Manually save all worlds
    

    
        `save-on`
        Enable automatic saving
    

    
        `save-off`
        Disable automatic saving
    

    
        `list`
        Show all connected players
    

    
        `whitelist on/off`
        Enable or disable whitelist
    

    
        `whitelist add/playername`
        Add player to whitelist
    

    
        `whitelist remove/playername`
        Remove player from whitelist
    

    
        `whitelist list`
        Show all players on whitelist
    

## Player Management (OP Commands In-Game)

These commands can be entered as OP in the game chat or in the console with `/` in front:

    
        Command
        Function
    

    
        `/op playername`
        Make a player an operator
    

    
        `/deop playername`
        Remove operator rights
    

    
        `/kick playername reason`
        Kick a player from the server
    

    
        `/ban playername reason`
        Permanently ban a player
    

    
        `/ban-ip playername`
        Ban the player's IP address
    

    
        `/pardon playername`
        Lift a player's ban
    

    
        `/pardon-ip ip-address`
        Lift an IP ban
    

    
        `/banlist`
        Show all banned players
    

## Game Mode and World

    
        Command
        Function
    

    
        `/gamemode survival playername`
        Set player to survival mode
    

    
        `/gamemode creative playername`
        Set player to creative mode
    

    
        `/gamemode spectator playername`
        Set player to spectator mode
    

    
        `/gamemode adventure playername`
        Set player to adventure mode
    

    
        `/time set day`
        Set time to day (1000)
    

    
        `/time set night`
        Set time to night (13000)
    

    
        `/time set noon`
        Set time to noon (6000)
    

    
        `/time set 0`
        Set time to start of day (sunrise)
    

    
        `/weather clear`
        Set weather to clear
    

    
        `/weather rain`
        Enable rain
    

    
        `/weather thunder`
        Enable thunderstorm
    

    
        `/difficulty peaceful`
        Difficulty peaceful
    

    
        `/difficulty easy`
        Difficulty easy
    

    
        `/difficulty normal`
        Difficulty normal
    

    
        `/difficulty hard`
        Difficulty hard
    

## Teleportation and Position

    
        Command
        Function
    

    
        `/tp player1 player2`
        Teleport player 1 to player 2
    

    
        `/tp x y z`
        Teleport to coordinates
    

    
        `/tp playername x y z`
        Teleport specific player to coordinates
    

    
        `/spawn`
        Teleport to world spawn
    

    
        `/setworldspawn`
        Set world spawn to your position
    

## Items and Inventory

    
        Command
        Function
    

    
        `/give playername item amount`
        Give a player an item (e.g. `/give Steve diamond 10`)
    

    
        `/clear playername`
        Clear a player's inventory
    

    
        `/enchant playername enchantment level`
        Enchant the item in hand
    

    
        `/kill playername`
        Instantly kill a player
    

## Server Information

    
        Command
        Function
    

    
        `/plugins`
        Show all installed plugins
    

    
        `/version`
        Show server version
    

    
        `/tps`
        Show ticks per second (Paper/Spigot only)
    

    
        `/timings report`
        Create performance report (Paper/Purpur only)
    

    
        `/mspt`
        Show milliseconds per tick (Paper/Purpur only)
    

## Useful Paper/Purpur Commands

    
        Command
        Function
    

    
        `/paper version`
        Show Paper version
    

    
        `/paper reload`
        Reload Paper configuration
    

    
        `/chunky radius 5000`
        Pregenerate chunks in a radius of 5000 blocks
    

    
        `/chunky start`
        Start chunk generation
    

    
        `/chunky pause`
        Pause chunk generation
    

*Detailed guides on plugins and server configuration can be found in the articles in the left navigation.*
