Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script options:
- $ init com.mysql.jdbc.Driver
- $ db url jdbc:mysql://localhost:3306/rulesSQL
- $ db username rulesSQL
- $ db password yX9Yv8HetZxhYeZK
- on join:
- set {_firstjoin} to yaml value "FirstJoin" from "/players/%UUID of player%.yml"
- if {_firstjoin} is not set:
- set yaml value "Reputation" from file "/players/%UUID of player%.yml" to "0"
- set yaml value "FirstJoin" from file "/players/%UUID of player%.yml" to "%now%"
- update "INSERT INTO stats (uuid,rep,deaths,kills)VALUES ('%uuid of player%',0,0,0)"
- command /test:
- trigger:
- update "UPDATE stats SET `rep` = '10' WHERE `uuid` = '%uuid of player%'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement