Back to blog

Complete Guide to L2J Admin Commands

Contents
  1. Basic commands and interface
  2. Character management
  3. Giving items
  4. Teleportation
  5. Bans and penalties
  6. NPC management
  7. Skills and effects
  8. Clans and Clan Halls
  9. Olympiad and heroes
  10. Quests
  11. Enchantment and augmentation
  12. Server management
  13. Zones and geodata
  14. Special commands
  15. Announcements
  16. Build compatibility
  17. Access permissions
  18. New GM checklist
  19. Conclusion

Admin commands are a powerful tool for managing a Lineage 2 server. These commands work with most popular builds, L2J, Lucera2, aCis, L2JMobius and other forks. This guide covers command categories with usage examples.

Compatibility: The commands in this guide were tested on L2J High Five and Lucera2. Most also work with other chronicles and builds with minor syntax changes.

Basic commands and interface

Start with the main commands for navigating the admin panel:

Menus and panels

  • //admin — Opens the main admin panel
  • //char_manage — Character management menu
  • //gmshop — GM shop
  • //itemcreate — Item creation menu
  • //enchant — Equipment enchantment menu

Navigation and information

//loc
// Shows coordinates: X: 123456, Y: 234567, Z: -3000, heading: 32768

//pos
// Shows x, y, z, heading, geodata and reflection details

//zone_check
// Shows the current region and active zones

These commands are essential for coordinates, NPC spawns and zone creation.

Character management

This frequently used GM command category provides control over player characters.

Basic information

//character_list PlayerName
// Lists the character's name, class, level, clan and stats

//current_player
// Displays information about the current target

//find_character John
// Finds characters by a case-sensitive partial name

Changing attributes

//setname NewName
// Renames the player after checking that the name is available

//settitle Hero
// Sets the character's title

//setclass 88
// Changes the class (88 = Duelist)

//setsex
// Changes the character's sex

//setcolor FF0000
// Sets a red name color (hex without the 0x prefix)

//setcolortitle 00FF00
// Sets a green title color
Important: The command //setname checks whether the name is unique in the database. If the name already exists, the command is rejected.

Statuses and privileges

//setnoble PlayerName
// Grants Noblesse status and saves it to the database

//sethero PlayerName
// Grants Hero status for the current session only

//add_hero PlayerName
// Grants Hero status with skills

//add_custom_hero PlayerName 24
// Grants custom Hero status for 24 hours

//rec 100
// Adds 100 recommendations (maximum 255)

Experience and levels

//add_exp_sp 1000000 500000
// Adds 1 million XP and 500,000 SP

//add_level 10
// Raises the current level by 10

//set_level 80
// Sets the character to level 80

Giving items

Giving items to players is one of the most common GM tasks.

Main commands

//give_item 57 1000000
// Gives the target 1,000,000 adena

//create_item 6673 1
// Creates one Dynasty Sword in the administrator's inventory

//spreaditem 57 10 1000
// Drops 10 stacks of 1,000 adena nearby

Mass distribution

//give_all 57 100000
// Gives 100,000 adena to every online player

//give_all_by_ip 3470 1
// Gives a Giant's Codex to one player per IP address

//give_all_by_hwid 3470 1
// Limits the reward to one per hardware ID

//give_all_radius 57 10000 500
// Gives 10,000 adena to everyone within a radius of 500
Tip: Use //give_all_by_hwid for event rewards to prevent abuse through alternate characters.

Removing items

//remove_item 57 500 PlayerName
// Removes 500 adena from the player

//destroy_items PlayerName
// Removes ALL items after confirmation

Teleportation

Teleportation lets GMs move quickly and assist players.

Admin teleportation

//teleportto PlayerName
// Teleports the administrator to the player

//move_to 116033 143879 -3635
// Teleports to the specified coordinates

//tonpc Baium
// Teleports to an NPC by name

//tonpc 29020
// Teleports to an NPC by ID

Player teleportation

//recall PlayerName
// Summons a player to the administrator, even if the player is offline

//teleport_character 116033 143879 -3635
// Teleports the target to the specified coordinates

//sendhome PlayerName
// Sends the target to the nearest town

//recall_party LeaderName
// Summons the party leader's entire group

Targeted teleportation

//gonorth 500
// Moves 500 units north

//gosouth 300
// Moves south

//goeast, //gowest, //goup, //godown
// Other directions

Bans and penalties

The penalty system should be fair and firm.

Ban types

//ban PlayerName 7 Botting
// Bans the player for seven days with a reason

//unban PlayerName
// Lifts the ban

//permaban
// Permanently bans the account

//hwidban PlayerName Cheating
// Bans by hardware ID

//chatban PlayerName 60 Spam
// Mutes chat for 60 minutes

//jail PlayerName 30 Griefing
// Jails the player for 30 minutes
HWID ban: A highly effective way to block cheaters. Bypassing it requires hardware changes. Use with caution!

Kicking players

//kick PlayerName
// Disconnects the player after 500 ms

//disconnect PlayerName
// Equivalent to //kick

NPC management

Spawning and managing NPCs is a key part of maintaining the game world.

Spawning NPCs

//spawn 29001
// Spawns Queen Ant without respawn

//spawn 29001 1 3600
// Sets a respawn interval of 3,600 seconds (one hour)

//spawn1 20001 10
// Spawns 10 goblins without respawn

//spawn2 29020 1 86400
// Spawns Baium using the override option

Spawn management

//delete
// Removes the targeted NPC and stops its respawn

//delete 29001
// Removes an NPC by ID

//spawn_all
// Respawns all NPCs from the spawn list

//despawn_all
// Removes ALL NPCs from the world

NPC information

//list_spawns 29020
// Lists all Baium spawns

//find_mammon
// Locates the Mammon NPC and displays its coordinates

//show_mammon
// Makes Mammon visible

Skills and effects

Skill management

//show_skills
// Lists all skills on the target

//add_skill 1204 2
// Adds level 2 Wind Walk

//remove_skill 1204
// Removes a skill

//give_all_skills
// Grants all skills available to the class

//reset_skills
// Resets skills to the starting set

//remove_cooldown PlayerName
// Resets all skill cooldowns

Buffs and effects

//buff
// Applies administrator buffs (IDs 7041–7064)

//cancel
// Removes all buffs from the target

//cancel 500
// Removes buffs from everyone within a radius of 500

//show_effects
// Lists active effects on the target

//stop_effect 1204
// Removes a specific effect

Clans and Clan Halls

Clan management

//pledge create SuperClan
// Creates a clan for a target of level 10 or higher

//pledge setlevel 8
// Sets the clan to level 8

//pledge addrep 50000
// Adds 50,000 clan reputation points

//pledge setleader NewLeader
// Appoints a new leader

//pledge setclanname NewName
// Renames the clan

Clan skills

//add_clan_skill 370 3
// Adds a clan skill

//give_all_clan_skills
// Grants every clan skill

Clan halls

//clanhall 21
// Shows clan hall information

//clanhallset 21
// Assigns the hall to the player's clan

//clanhalldel 21
// Clears the owner

//clanhallteleportself 21
// Teleports to the hall

Olympiad and heroes

//oly_start
// Announces the start of the Olympiad

//oly_stop
// Ends the Olympiad and saves the results

//add_oly_points PlayerName 1000
// Adds 1,000 Olympiad points

//oly_save
// Forces a save

Quests

Viewing and management

//quests PlayerName
// Lists the player's quests

//quest 255 SHOW PlayerName
// Shows the state of quest 255

//quest 255 STATE 2 PlayerName
// Sets the state (1 = started, 2 = in progress, 3 = complete)

//quest 255 VAR cond 5 PlayerName
// Sets a quest variable

//quest 255 CLEAR PlayerName
// Removes a quest from the player

Enchantment and augmentation

Slot-based enchantment

//setew 16
// Enchants the weapon to +16

//setec 10
// Sets chest armor to +10

//seteh, //seteg, //setel, //seteb
// Helmet, gloves, leggings and boots

//setes 10
// Sets the shield or left-hand weapon to +10

//setle, //setre, //setlf, //setrf, //seten
// Left earring, right earring, left ring, right ring and necklace

Augmentation

//set_aug 14561 14817 target
// Augments the equipped weapon
// Augmentation IDs depend on the server build

Server management

Reloading and restarting

//server_shutdown 300
// Shuts down in five minutes

//server_restart 300
// Restarts in five minutes

//server_abort
// Cancels a scheduled shutdown or restart

//server_info
// Shows uptime, memory usage and online player count

Reloading data

//reload_config
// Reloads the configuration

//reload_multisell
// Reloads multisell entries

//reload_skills
// Reloads the skill table

//reload_npc
// Reloads NPC data

//reload_spawn
// Reloads all spawns

//reload_shops
// Reloads shop lists

Zones and geodata

Zone management

//zone_check
// Shows active zones

//zone_visual
// Displays nearby zone boundaries

//zone_add
// Adds a zone point

//zone_del Point1
// Removes a point

//zone_dump
// Generates the zone XML

Geodata

//geo_z
// Shows the geodata height

//geo_type
// Shows the geodata type at this point

//geo_nswe
// Shows directions (N, S, W, E)

//geo_los
// Checks line of sight to the target

//geogrid
// Displays the geodata grid

Special commands

Useful utilities

//heal
// Restores the target's HP, MP and CP

//heal 500
// Heals everyone within a radius of 500

//res
// Resurrects the target

//invis
// Toggles administrator invisibility

//gmspeed 4
// Sets administrator speed (0–4)

//invul
// Toggles invulnerability

//silence
// Blocks incoming messages

Debugging

//debug
// Shows detailed player stats

//debug_stats
// Writes debugging information to the log

//locdump
// Saves coordinates to a file

//dumpparams
// Prints NPC parameters to the console

Announcements

//announce Server restart in 5 minutes!
// Sends a standard broadcast

//crit_announce EMERGENCY SHUTDOWN!
// Sends a critical announcement

//toscreen Welcome to the event!
// Displays an on-screen message

//add_announcement 60 Server maintenance
// Schedules an announcement after 60 seconds

Build compatibility

These commands were tested with:

  • L2J Official — all versions from Interlude to High Five
  • Lucera2 — full support for all commands
  • aCis — over 95% compatibility
  • L2JMobius — work with minor changes
  • L2JFrozen — support for the main commands
  • L2JServer — all command categories
Note: Some command syntax may vary between builds. For example, some forks use //admin_quest instead of //quest. Always check your build’s documentation.

Access permissions

Remember to configure permissions in gmAccess.xml or the equivalent file:

<!-- Lucera2 example -->
<char id="100">
  <access name="CanUseAdminCommand" />
  <access name="CanTeleport" />
  <access name="CanKick" />
  <access name="CanBan" />
  <access name="CanEditChar" />
  <access name="CanViewChar" />
  <access name="CanEditNpc" />
</char>

New GM checklist

Basic commands to get started:

  • ✅ //admin — open the admin panel
  • ✅ //loc — show coordinates
  • ✅ //teleportto — teleport to a player
  • ✅ //recall — summon a player
  • ✅ //heal — heal
  • ✅ //invis — become invisible
  • ✅ //silence — mute chat
  • ✅ //gmspeed 2 — increase movement speed

Conclusion

Admin commands require responsible use. Misuse can disrupt server balance or even damage the database.

GM ground rules:

  1. Always back up before mass operations
  2. Use //give_all with caution
  3. Log your actions
  4. Do not abuse your privileges
  5. Test commands on a test server

This guide covers more than 150 commands from the standard L2J and Lucera2 toolsets. For your build’s full command list, check the files in data/scripts/handlers/admincommandhandlers/.

Need help configuring permissions or custom commands? We configure admin panels and develop custom commands for L2J servers. Contact us for a consultation.