Advertisement
Guest User

Untitled

a guest
Sep 20th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  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%'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement