1
- addCommandHandler (" checkaccount" ,
2
- function (player , cmd , account )
3
- if hasObjectPermissionTo (player , " function.banPlayer" ) then -- if the player typing /checkaccount command has permission to banPlayer
4
- if account and account ~= " " then -- if the account name was mentioned
5
- if getAccount (account ) then -- if the account exists
6
- outputChatBox (" Account " .. account .. " exists in the database!" , player , 0 , 255 , 0 )
7
- else -- if the account doesn't exist
8
- outputChatBox (" Account " .. account .. " does not exist in database" , player , 0 , 255 , 0 )
9
- end
10
- else
11
- outputChatBox (" Syntax is /checkaccount [account name]" , player , 255 , 0 , 0 )
12
- end
13
- end
14
- end
15
- )
1
+ addCommandHandler (" checkaccount" , function (player , cmd , account )
2
+ if hasObjectPermissionTo (player , " function.banPlayer" ) then -- if the player typing /checkaccount command has permission to banPlayer
3
+ if (account and account ~= " " ) then -- if the account name was mentioned
4
+ if (getAccount (account )) then -- if the account exists
5
+ outputChatBox (" Account " .. account .. " exists in the database!" , player , 0 , 255 , 0 )
6
+ else -- if the account doesn't exist
7
+ outputChatBox (" Account " .. account .. " does not exist in database" , player , 0 , 255 , 0 )
8
+ end
9
+ else
10
+ outputChatBox (" Syntax is /checkaccount [account name]" , player , 255 , 0 , 0 )
11
+ end
12
+ end
13
+ end )
0 commit comments