Paste #15009: Untitled Paste

Date: 2015/04/10 12:34:38 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


Player-Join: 
    type: world 
    events: 
        on player joins:
        - ~sql id:<player.uuid>_join connect:*.*.*.*:3306/test username:main password:*****
        - sql id:<player.uuid>_join "query:SELECT uuid FROM Overall_Data WHERE uuid=<player.uuid>;" save:<player.uuid>_data
        - if <entry[<player.uuid>_data].result> == <player.uuid> {
          - narrate 'You are on the database!'
          }
          else {
          - narrate 'You are not!!!'
          }