View difference between Paste ID: 0wDDp6Gc and sMiiLn9z
SHOW: | | - or go back to the newest paste.
1
on command "/register":
2
	if {registrado.Lista::%player%} is true:
3
		stop
4
	else:
5-
		add player to {registrados.server::*}
5+
		add 1 to {registrado.cont}
6
		set {registrado.Lista::%player%} to true
7
on command "/login":
8
	if {registrado.Lista::%player%} is true:
9
		stop
10
	else:
11-
		add player to {registrados.server::*}
11+
		add 1 to {registrado.cont}
12
		set {registrado.Lista::%player%} to true
13-
13+
on load:
14
	if {registrado.cont} is not set:
15
		set {registrado.cont} to 0
16
command /jogadores:
17-
			loop {registrados.server::*}:
17+
18-
				send "%loop-number%"
18+
19
			send "Jogadores registrados: %{registrado.cont}%"
20
command /resetenter:
21
	permission: aaa
22
	trigger:
23
		set {registrado.Lista::%player%} to false
24
		kick the player due "Agora sim."