blob: 7e411129c8dac14c75e69ec62b14e42815a64dd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
---
redirect_from: "/Creating-Accounts"
---
# Creating Accounts
To be able to log in to your new server you need an account.
It is recommended to use security level 3 for your own account.
## To create an account
```
account create <user> <pass>
```
**Example:**
```
account create admin admin
```
## To set your account security level
| Level | Security Level |
|-------|-------------------|
| 0 | SEC_PLAYER |
| 1 | SEC_MODERATOR |
| 2 | SEC_GAMEMASTER |
| 3 | SEC_ADMINISTRATOR |
```
account set gmlevel <user> <level> <realm>
```
**Example:**
```
account set gmlevel admin 3 -1
```
**Note:** (-1 for the all realms)
## Changing password
```
account set password <user> <password> <password>
```
**Example:**
```
account set password admin 1234 1234
```
## Higher security level
The highest security level is SEC_CONSOLE (4) which your worldserver has by default.
It has access to account management and is not recommended for in-game accounts for anyone that does not know what they are doing.
To update an account to security level 4 you need to manually edit the fields in the database or run the query below.
```sql
UPDATE `account_access` AS `access`
INNER JOIN `account` AS `account` ON `access`.`id` = `account`.`id`
SET `gmlevel` = 4 WHERE `username` = '<user>';
```
|