Paste #14838: Untitled Paste

Date: 2015/03/31 03:58:40 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


ON-PLAYER-JOIN: 
    type: world 
    events: 
        on player join:
        - sql id:name "query:SELECT UUID FROM Bans WHERE UUID= '<player.uuid>';" save:uuid
        - if <entry[uuid].result> == 'li@<player.uuid>/' {
          - narrate '<RED>Works'
          - execute as_server 'kick <player.name> <GREEN>You have been banned!' 
          }
          else {
          - narrate 'Works two'
          }