0%
Loading...
NolimitHost

Common Java server commands

Last updated: July 23, 2026

This guide shows you how to run common Minecraft Java Edition administration commands from the NolimitHost Game Panel console or from in-game chat.

Run commands without / in the NolimitHost game panel console. To open the console, log in to the NolimitHost Game Panel at https://panel.nolimithost.cc/ and select your Minecraft Java server, then click Console in the left sidebar. In Minecraft chat, add / and use an account with sufficient operator access (an operator, or OP, is a player with admin powers).

Player and world commands

TaskConsole command
Change a player's game modegamemode MODE PLAYER
Teleport a player to another playerteleport PLAYER DESTINATION_PLAYER
Teleport a player to coordinatesteleport PLAYER X Y Z
Give an itemgive PLAYER ITEM [AMOUNT]
Clear a player's inventoryclear PLAYER
Set the default game modedefaultgamemode MODE
Change the difficultydifficulty DIFFICULTY
Save the world immediatelysave-all

Replace the uppercase placeholders with real values. Valid modes are survival, creative, adventure, and spectator. Valid difficulties are peaceful, easy, normal, and hard. Player names containing spaces are not valid Java Edition usernames.

Set the world spawn

Stand at the intended location and run this in Minecraft chat:

/setworldspawn

From the console, provide coordinates and an optional dimension:

execute in minecraft:overworld run setworldspawn <x> <y> <z>

The individual respawn point created by a bed, respawn anchor, or spawnpoint is separate from the world spawn.

Target selectors

Use selectors carefully because a command can affect many players.

SelectorTarget
@aAll players
@pNearest player to the command source
@rRandom player
@sThe entity running the command; behavior from the console may differ from an in-game player
Warning: Test destructive commands on a backup or a limited target first. Commands such as clear, kill, and large fill operations can cause irreversible changes.