Skip to content

Instantly share code, notes, and snippets.

@whilb
Last active January 3, 2016 23:09
Show Gist options
  • Save whilb/8533324 to your computer and use it in GitHub Desktop.
Save whilb/8533324 to your computer and use it in GitHub Desktop.
FriendsAPI example implementation
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