Skip to content
Ben edited this page May 14, 2016 · 27 revisions

Want to hook into my plugin? Here's a basic overview on the API. Just know that the API is built for me.

####User object:

  • I use a user object to handle most things with a user, there is a Data class that actually handles the file reading/editing
  • Creating object:
    new User(playerName);
    new User(new UUID(uuid));
    new User(player);

####VoteSite object:

  • Similary, I use a votesite object to handle stuff with votesites, there is a ConfigVoteSites class that handles the file reading/editing
  • Create object:
    new VoteSite(siteName);
    plugin.getVoteSite(name);
  • BonusReward has its own class that handles bonus rewards, called BonusVoteReward

####Examples: More to be added.

Get total votes: user.getTotalVotes();

Clone this wiki locally