> For the complete documentation index, see [llms.txt](https://impoo.gitbook.io/authenticationsystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://impoo.gitbook.io/authenticationsystem/commands.md).

# Commands

This page lists all commands available in AuthSystem, divided into player commands and admin commands.

## Player commands

These commands can be used by any player.

### /register

Register a new account.

```
 /register <password> <confirmPassword>
```

| Argument            | Description                                                       |
| ------------------- | ----------------------------------------------------------------- |
| `<password>`        | The password to register (minimum 6 characters)                   |
| `<confirmPassword>` | Confirm the password by typing it again (must match `<password>`) |

Usage: `/register MySecurePass MySecurePass`

### /login

Log in to an existing account.

```
 /login <password>
```

| Argument     | Description           |
| ------------ | --------------------- |
| `<password>` | Your account password |

Usage: `/login MySecurePass`

### /changepassword

Change your account password (must be logged in).

```
 /changepassword <oldPassword> <newPassword>
```

| Argument        | Description                              |
| --------------- | ---------------------------------------- |
| `<oldPassword>` | Your current password                    |
| `<newPassword>` | Your new password (minimum 6 characters) |

Usage: `/changepassword OldPass NewPass`

### /premium

Manage your premium account status.

```
 /premium
```

Premium players confirm their identity within 10 seconds of joining.

## Admin commands

These commands are part of the `/auth` command group and require permissions.

### /auth changepassword

Change another player's password (admin).

```
 /auth changepassword <player> <newPassword>
```

| Argument        | Description                                |
| --------------- | ------------------------------------------ |
| `<player>`      | Target player name                         |
| `<newPassword>` | New password to set (minimum 6 characters) |

Permission: `authsystem.command.adminChangePassword`

### /auth unregister

Remove a player's account from the database (admin).

```
 /auth unregister <player>
```

| Argument   | Description        |
| ---------- | ------------------ |
| `<player>` | Target player name |

Permission: `authsystem.command.unregister`

### /auth checkip

Check a player's last known IP address (staff).

```
 /auth checkip <player>
```

| Argument   | Description        |
| ---------- | ------------------ |
| `<player>` | Target player name |

Permission: `authsystem.command.checkIp`

### /auth reload

Reload the plugin configuration (admin).

```
 /auth reload
```

Permission: `authsystem.command.reload`

## Command summary table

| Command                | Description                      | Permission                               |
| ---------------------- | -------------------------------- | ---------------------------------------- |
| `/register`            | Register a new account           | None                                     |
| `/login`               | Log in to an account             | None                                     |
| `/changepassword`      | Change your own password         | None                                     |
| `/premium`             | Manage premium status            | None                                     |
| `/auth changepassword` | Change another player's password | `authsystem.command.adminChangePassword` |
| `/auth unregister`     | Delete a player's account        | `authsystem.command.unregister`          |
| `/auth checkip`        | Check a player's IP              | `authsystem.command.checkIp`             |
| `/auth reload`         | Reload configuration             | `authsystem.command.reload`              |

***

> :bulb: **Tip**: Admin commands can also be run from the server console, where permissions are not required.
