Minecraft

[Must Read] Complete Guide to Minecraft Java Server Commands - Easily Manage Your Server!

Zhen Jian Dang An Guan·7/14/2025

Complete Guide to Minecraft Java Server Commands

Player Management Commands

  • /ban [player name]: Ban a player from the server
  • /kick [player name]: Kick a player from the server
  • /op [player name]: Grant admin privileges to a player
  • /deop [player name]: Remove admin privileges from a player
  • /whitelist [add/remove] [player name]: Add or remove a player from the whitelist

World Management Commands

  • /time set [time]: Set the world time
  • /weather [clear/rain/thunder]: Set the weather
  • /gamerule [rule name] [true/false]: Set game rules
  • /tp [player name] [target player name]: Teleport a player to another player's location
  • /spawnpoint [player name]: Set a player's spawn point

Item Management Commands

  • /give [player name] [item ID] [quantity]: Give items to a player
  • /clear [player name] [item ID] [quantity]: Clear items from a player
  • /enchant [player name] [enchantment ID] [level]: Enchant a player's item
  • /effect [player name] [effect ID] [duration] [level]: Apply a potion effect to a player
  • /replaceitem [player name] [slot] [item ID] [quantity]: Replace a player's item

Entity Management Commands

  • /kill [entity ID]: Kill a specified entity
  • /summon [entity ID] [x] [y] [z]: Summon a specified entity
  • /tp [entity ID] [target entity ID]: Teleport an entity to another entity's location
  • /effect [entity ID] [effect ID] [duration] [level]: Apply a potion effect to an entity
  • /data get [entity ID]: Get an entity's data