Skip to content

Latest commit

 

History

History
544 lines (383 loc) · 14.1 KB

File metadata and controls

544 lines (383 loc) · 14.1 KB

Hytale Server Commands Reference

Source: Decompiled from HytaleServer.jar - com.hypixel.hytale.server.core.command

This document contains all commands discovered in the Hytale Server, extracted from the decompiled source code.


Command System Overview

Command Architecture

Commands inherit from AbstractCommand and use:

  • Required Arguments - Must be provided
  • Optional Arguments - Prefixed with - or --
  • Flag Arguments - Boolean flags
  • Default Arguments - Optional with default values
  • Subcommands - Nested command structure
  • Variant Commands - Same command with different parameter counts

Permission Generation

// Plugin commands: <group>.<name>.command.<commandname>
// System commands: hytale.system.command.<commandname>
// Commands use fromCommand(): hytale.command.<commandname>

Player Commands

/gamemode

Change player gamemode.

Permission Description
hytale.command.gamemode.self Change own gamemode
hytale.command.gamemode.other Change other's gamemode

Source: com/hypixel/hytale/server/core/command/commands/player/GameModeCommand.java


/give

Give items to players.

Permission Description
hytale.command.give.self Give items to self
hytale.command.give.other Give items to others

Source: com/hypixel/hytale/server/core/command/commands/player/inventory/GiveCommand.java


/kill

Kill a player.

Permission Description
hytale.command.kill.self Kill self
hytale.command.kill.other Kill other players

Source: com/hypixel/hytale/server/core/command/commands/player/KillCommand.java


/damage

Apply damage to a player.

Permission Description
hytale.command.damage.self Damage self
hytale.command.damage.other Damage others

Source: com/hypixel/hytale/server/core/command/commands/player/DamageCommand.java


/whereami

Show player location.

Permission Description
hytale.command.whereami.self Show own location
hytale.command.whereami.other Show other's location

Source: com/hypixel/hytale/server/core/command/commands/player/WhereAmICommand.java


/refer

Refer a player.

Permission Description
hytale.command.refer.self Refer self
hytale.command.refer.other Refer others

Source: com/hypixel/hytale/server/core/command/commands/player/ReferCommand.java


/invsee

View and modify player inventories.

Permission Description
hytale.command.invsee View other inventories
hytale.command.invsee.modify Modify other inventories

Source: com/hypixel/hytale/server/core/command/commands/player/inventory/InventorySeeCommand.java


Effect Commands

/player effect apply

Apply effects to players.

Permission Description
hytale.command.player.effect.apply.self Apply effects to self
hytale.command.player.effect.apply.other Apply effects to others

Source: com/hypixel/hytale/server/core/command/commands/player/effect/PlayerEffectApplyCommand.java


/player effect clear

Clear player effects.

Permission Description
hytale.command.player.effect.clear.self Clear own effects
hytale.command.player.effect.clear.other Clear others' effects

Source: com/hypixel/hytale/server/core/command/commands/player/effect/PlayerEffectClearCommand.java


Teleport Commands

/tp (Teleport)

Teleport players.

Permission Description
hytale.command.teleport.self Teleport self to player/coordinates
hytale.command.teleport.other Teleport other to player/coordinates
hytale.command.teleport.all Teleport all players

Source Files:

  • TeleportToPlayerCommand.java
  • TeleportOtherToPlayerCommand.java
  • TeleportToCoordinatesCommand.java
  • TeleportPlayerToCoordinatesCommand.java
  • TeleportAllCommand.java

/back and /forward

Navigate teleport history.

Permission Description
hytale.command.teleport.back Teleport to previous location
hytale.command.teleport.forward Teleport forward in history
hytale.command.teleport.history View teleport history

Source:

  • TeleportBackCommand.java
  • TeleportForwardCommand.java
  • TeleportHistoryCommand.java

/top

Teleport to top of world.

Permission Description
hytale.command.teleport.top Teleport to top block

Source: TeleportTopCommand.java


/home

Teleport to home.

Permission Description
hytale.command.teleport.home Teleport to home

Source: TeleportHomeCommand.java


/spawn

Teleport to spawn.

Permission Description
hytale.command.spawn.self Teleport self to spawn
hytale.command.spawn.other Teleport others to spawn

Source: SpawnCommand.java


/tpworld

Teleport to another world.

Permission Description
hytale.command.teleport.world Teleport to world

Source: TeleportWorldCommand.java


Warp Commands

/warp

Warp system commands.

Subcommand Permission Description
go hytale.command.warp.go Teleport to warp
set hytale.command.warp.set Create warp
remove hytale.command.warp.remove Remove warp
list hytale.command.warp.list List warps
reload hytale.command.warp.reload Reload warps

Source: com/hypixel/hytale/builtin/teleport/commands/warp/


Operator Commands

/op

Manage server operators.

Subcommand Permission Description
add hytale.command.op.add Add operator
remove hytale.command.op.remove Remove operator

Source: com/hypixel/hytale/server/core/permissions/commands/op/


Item Commands

/spawnitem

Spawn items in the world.

Permission Description
hytale.command.spawnitem Spawn items

Source: com/hypixel/hytale/server/core/modules/item/commands/SpawnItemCommand.java


Editor/Builder Commands

Selection Commands

Command Permission Description
/pos1 hytale.editor.selection.use Set position 1
/pos2 hytale.editor.selection.use Set position 2
/set hytale.editor.selection.modify Modify selection
/copy hytale.editor.selection.clipboard Copy selection
/cut hytale.editor.selection.clipboard Cut selection
/paste hytale.editor.selection.clipboard Paste clipboard
/clearentities hytale.editor.selection.clipboard Clear entities
/objimport hytale.editor.selection.clipboard Import OBJ
/layer hytale.editor.selection.clipboard Fill selection with layered blocks (new in pre-release)

Source: com/hypixel/hytale/builtin/buildertools/commands/


Layer Command (new in pre-release)

Fill a selection with layers of blocks in a given direction.

Argument Type Description
direction String Direction for layers: up, down, north, south, east, west
layers List List of layer entries (count + block type pairs)
  • Permission: hytale.editor.selection.clipboard
  • Game Mode: Creative
  • Source: com/hypixel/hytale/builtin/buildertools/commands/LayerCommand.java

History Commands

Command Permission Description
/undo hytale.editor.history Undo last action
/redo hytale.editor.history Redo last undone action

Source: com/hypixel/hytale/builtin/buildertools/commands/


Prefab Commands

Subcommand Permission Description
use hytale.editor.prefab.use Use prefabs
manage hytale.editor.prefab.manage Manage prefabs

Source: com/hypixel/hytale/builtin/buildertools/commands/PrefabCommand.java


Brush Commands

Command Permission Description
/brushconfig hytale.editor.brush.config Configure brushes
(brush use) hytale.editor.brush.use Use brushes

Source: com/hypixel/hytale/builtin/buildertools/scriptedbrushes/commands/


World Commands

Chunk Commands

Located in com/hypixel/hytale/server/core/command/commands/world/chunk/:

Command Description
/chunk info Show chunk information
/chunk load Load chunk
/chunk unload Unload chunk
/chunk regenerate Regenerate chunk
/chunk resend Resend chunk to client
/chunk fixheightmap Fix chunk heightmap
/chunk marksave Mark chunk for save
/chunk tint Set chunk tint
/chunk loaded List loaded chunks
/chunk lighting Manage chunk lighting
/chunk forcetick Force tick chunk
/chunk tracker Chunk tracker debug
/chunk maxsendrate Set max send rate

Entity Commands

Located in com/hypixel/hytale/server/core/command/commands/world/entity/:

Command Description
/entity remove Remove entity
/entity clone Clone entity
/entity clean Clean entities
/entity count Count entities
/entity dump Dump entity data
/entity effect Apply entity effect
/entity intangible Set intangible
/entity invulnerable Set invulnerable
/entity lod Set LOD settings
/entity nameplate Manage nameplate
/entity resend Resend entity
/entity tracker Entity tracker debug
/entity makeinteractable Make interactable
/entity hidefromadventureplayers Hide from adventure

Entity Stats Commands

Command Description
/entity stats get Get stat value
/entity stats set Set stat value
/entity stats add Add to stat
/entity stats reset Reset stats
/entity stats dump Dump all stats
/entity stats settomax Set to max value

World Generation Commands

Located in com/hypixel/hytale/server/core/command/commands/world/worldgen/:

Command Description
/worldgen benchmark Benchmark world gen
/worldgen reload Reload world gen

Server Commands

Update Commands

Located in com/hypixel/hytale/server/core/update/command/:

Command Description
/update status Check update status
/update check Check for updates
/update download Download update
/update apply Apply update
/update cancel Cancel update
/update patchline Set patchline

Auth Commands

Located in com/hypixel/hytale/server/core/command/commands/server/auth/:

Command Description
/auth status Auth status
/auth login browser Login via browser
/auth login device Login via device
/auth logout Logout
/auth cancel Cancel auth
/auth select Select account
/auth persistence Auth persistence

Plugin Commands

Command Description
/plugin Plugin management

Source: com/hypixel/hytale/server/core/plugin/commands/PluginCommand.java


Permission Commands

Command Description
/perm Permission management
/perm user User permissions
/perm group Group permissions
/perm test Test permissions

Source: com/hypixel/hytale/server/core/permissions/commands/


Other Commands

Command Source Description
/particle ParticleCommand.java Particle effects
/particle spawn ParticleSpawnCommand.java Spawn particles
/spawnblock SpawnBlockCommand.java Spawn blocks
/emote EmoteCommand.java Play emotes
/bindings BindingsCommand.java Key bindings

Command System API

Creating Commands (Plugin Development)

public class MyCommand extends AbstractCommand {
    public MyCommand() {
        super("mycommand", "Description of command");

        // Set permission
        this.requirePermission("myplugin.command.mycommand");

        // Add required arguments
        withRequiredArg("player", "Target player", ArgumentTypes.PLAYER);

        // Add optional arguments
        withOptionalArg("amount", "Amount", ArgumentTypes.INTEGER);

        // Add flag arguments
        withFlagArg("silent", "Silent mode");
    }

    @Override
    protected CompletableFuture<Void> execute(CommandContext context) {
        // Command implementation
        return null;
    }
}

Registering Commands

// In your plugin's setup() method:
getCommandRegistry().register(new MyCommand());

Command Arguments

Type Class Description
Required RequiredArg<T> Must be provided
Optional OptionalArg<T> Prefixed with -name
Default DefaultArg<T> Optional with default
Flag FlagArg Boolean flag -flag

Common Argument Types

  • ArgumentTypes.STRING - String value
  • ArgumentTypes.INTEGER - Integer value
  • ArgumentTypes.FLOAT - Float value
  • ArgumentTypes.BOOLEAN - Boolean value
  • ArgumentTypes.PLAYER - Player reference
  • ArgumentTypes.WORLD - World reference
  • ArgumentTypes.POSITION - Position (x, y, z)
  • ArgumentTypes.BLOCK - Block type
  • ArgumentTypes.ITEM - Item type

Command Count Summary

Category Count
Player Commands ~20
Teleport Commands ~15
Warp Commands 5
World Commands ~40
Entity Commands ~25
Editor Commands ~15
Server Commands ~20
Total ~445