Last active
January 3, 2016 23:09
-
-
Save whilb/8533324 to your computer and use it in GitHub Desktop.
FriendsAPI example implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyPlugin extends JavaPlugin { | |
Connection c = null; | |
DatabaseInterface dbi; | |
public void onEnable() { | |
dbi = new DatabaseInterface(); | |
c = dbi.openConnection(this, String DBHost, String DBPort, String DBDatabase, String DBUser, String DBPass); | |
doTheExample("boink"); | |
} | |
public void doTheExample(String s) { | |
dbi.addPlayer(c, s); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment