StatsAPI

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

http://fs5.directupload.net/images/151003/dfsofhf4.png

Description

English / Englisch

This Plugin adds Stats to your BungeeCord Network or Server. Simply import the API into your Plugin and use the Code Samples below. The Plugin requires a MySQL Database.

German / Deutsch

Dieses Plugin fügt Stats zu deinem BungeeCord Netzwerk oder Server hinzu. Importiere einfach die API in dein Plugin und benutze die folgenden Code-Teile. Das Plugin benötigt eine MySQL Datenbank.

http://fs5.directupload.net/images/151003/muq8z2xt.png

Features

  • MySQL Required
  • Stats:
    • Kills
    • Deaths
    • Games
    • Wins
    • Balance (Money)

http://fs5.directupload.net/images/151003/do9nf8mq.png

Install

English / Englisch

  1. Drag the StatsAPI.jar in your Server´s Plugin folder
  2. Create a MySQL Database if you don´t have one
  3. Restart your Server and edit the Config.yml
  4. Import the StatsAPI.jar to your own Plugin
  5. Add some of the Code Samples below to your Plugin
  6. Finish!

German / Deutsch

  1. Ziehe die StatsAPI.jar in den Plugin Ordner deines Servers
  2. Erstelle eine MySQL Datenbank, falls du noch keine hast
  3. Starte deinen Server neu und editiere die Config.yml
  4. Importiere die StatsAPI.jar in dein Plugin
  5. Füge deinem Plugin einige unten genannte Code Samples hinzu
  6. Fertig!

http://fs5.directupload.net/images/151003/beuhknvh.png

Code Samples

if(StatsAPI.knowPlayer(PLAYER_UUID) == true){

}

Checks if the Player´s UUID has an entry in your Stats table. | Prüft, ob der gewählte Spieler PLAYER_UUID einen Eintrag in deiner Stats-Tabelle hat.


StatsAPI.createPlayer(PLAYER_UUID);

Adds the given UUID to the Stats table. | Fügt die angegebene UUID der Stats Tabelle hinzu.


StatsAPI.getKills(PLAYER_UUID);
StatsAPI.getDeaths(PLAYER_UUID);
StatsAPI.getGames(PLAYER_UUID);
StatsAPI.getWins(PLAYER_UUID);
StatsAPI.getBalance(PLAYER_UUID);

Returns the corresponding value of the Player with the UUID "PLAYER_UUID".| Gibt den entsprechenden Wert des Spielers mit der UUID "PLAYER_UUID" aus.


StatsAPI.setKills(PLAYER_UUID, VALUE);
StatsAPI.setDeaths(PLAYER_UUID, VALUE);
StatsAPI.setGames(PLAYER_UUID, VALUE);
StatsAPI.setWins(PLAYER_UUID, VALUE);
StatsAPI.setBalance(PLAYER_UUID, VALUE);

Sets the corresponding value of the Player with the UUID "PLAYER_UUID" to "VALUE". | Setzt den entsprechenden Wert des Spielers mit der UUID "PLAYER_UUID" zu "VALUE".


StatsAPI.addKills(PLAYER_UUID, VALUE);
StatsAPI.addDeaths(PLAYER_UUID, VALUE);
StatsAPI.addGames(PLAYER_UUID, VALUE);
StatsAPI.addWins(PLAYER_UUID, VALUE);
StatsAPI.addBalance(PLAYER_UUID, VALUE);

Adds "VALUE" to the corresponding value of the Player with the UUID "PLAYER_UUID". | Fügt "VALUE" zu dem entsprechenden Wert des Spielers mit der UUID "PLAYER_UUID" hinzu".


StatsAPI.removeKills(PLAYER_UUID, VALUE);
StatsAPI.removeDeaths(PLAYER_UUID, VALUE);
StatsAPI.removeGames(PLAYER_UUID, VALUE);
StatsAPI.removeWins(PLAYER_UUID, VALUE);
StatsAPI.removeBalance(PLAYER_UUID, VALUE);

Removes "VALUE" from the corresponding value of the Player with the UUID "PLAYER_UUID". | Nimmt "VALUE" von dem entsprechenden Wert des Spielers mit der UUID "PLAYER_UUID" weg".


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    95388
  • Created
    Oct 3, 2015
  • Last Released File
    Oct 3, 2015
  • Total Downloads
    679
  • License

Categories

Members

Recent Files