Makes a player an admin
admin add <player name> 0
The number at the end is the permission level, and 0 is full access. To take it back, type admin remove and the player's name.
On a 7 Days to Die dedicated server, most commands are open only to full admins by default. The lower the permission level, the more power it has, and 0 means full access. Player commands accept a name, an entity ID or a platform ID, and lpi lists all of them. There are also separate commands to give items or XP to another player, both covered on this page.
Most codes here need cheats turned on first. See the section on how to open the console.
dm
admin add <player name> 0
The number at the end is the permission level, and 0 is full access. To take it back, type admin remove and the player's name.
kick <player name>
The player is removed from the server. You can add a reason in quotes at the end.
ban add <player name> 2 days
The time unit can be minutes, hours, days, weeks, months or years. To lift the ban, use ban remove.
lpi
Shows each connected player's name, entity ID and platform ID. For the full list with position and health, type lp.
saveworld
Writes the world to disk as it is; the short form is sa. It does not create a backup you can roll back to.
give <player name> <item name> <amount>
The item drops in front of the player you name. Add one more number after the amount to set the item's quality.
givexp <player name> 5000
The player you name gets as much XP as the number at the end.