daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Sep 20th, 2016 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. script options:
  2.     $ init com.mysql.jdbc.Driver
  3.     $ db url jdbc:mysql://localhost:3306/rulesSQL
  4.     $ db username rulesSQL
  5.     $ db password yX9Yv8HetZxhYeZK
  6.  
  7.  
  8. on join:
  9.     set {_firstjoin} to yaml value "FirstJoin" from "/players/%UUID of player%.yml"
  10.     if {_firstjoin} is not set:
  11.         set yaml value "Reputation" from file "/players/%UUID of player%.yml" to "0"
  12.         set yaml value "FirstJoin" from file "/players/%UUID of player%.yml" to "%now%"
  13.         update "INSERT INTO stats (uuid,rep,deaths,kills)VALUES ('%uuid of player%',0,0,0)"
  14.        
  15. command /test:
  16.     trigger:
  17.         update "UPDATE stats SET `rep` = '10' WHERE `uuid` = '%uuid of player%'"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top