-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUUIDCheckSystem.sk
More file actions
25 lines (21 loc) · 1020 Bytes
/
UUIDCheckSystem.sk
File metadata and controls
25 lines (21 loc) · 1020 Bytes
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
#change (name of player) to (player) when the uuid system is updated.
on login:
set {tempid.%name of player%} to UUID of player
set {tempname.%name of player%} to Name of player
{db_uuids.idset::%UUID of player%} exists:
if {db_uuids.list.idset::%UUID of player%} is {tempid.%name of player%}
if {db_uuids.list.names::%Name of player%} is not {tempname.%name of player%}
set Name of player to {db_uuid.list.names::%{db_uuids.current.names::%UUID of player%}%}
if {db_uuids.%name of player%.nameset} is {tempname.%name of player%}
if {db_uuids.list.idset::%Name of player%} is not {tempid.%name of player%}
if {db_uuids.current.idset::*} contains
else:
add UUID of player to {db_uuids.list.idset::*}
add Name of player to {db_uuids.list.names::*}
if player has played before
if {db_uuids.current.%player%} = 1
cancel event
else
add Name of player to {db_uuids.current.idset::*}
add UUID of player to {db_uuids.current.names::*}
set {db_uuids.current.%player%} = 1