ModsJava
MySQL CoinAPI
Java mod listed for Minecraft 1.8. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotHey!
Dies ist eine CoinAPI, welche sich mit MySQL verbindet. Sie hat alle nötigen funktionen um deinen Server zu bereichern.
Anwendung:
Als erstes in den Plugins Ordner ziehen und den Server starten. Der Server wird sich direkt schließen da keine Verbindung zur Datenbank aufgebaut werden kann. Einfach in der config.yml die Daten eintragen. Außerdem kannst du dort auswählen, ob das Plugin automatisch neue User zur Datenbank hinzufügen soll oder ob du das selbst in deinem Plugin machen möchtest.
Wenn die Daten alle richtig eingetragen sind starte den Server erneut und schau in der Konsole ob alles funktioniert.
Um die API dann zu nutzen füge sie als Library zu deinem Projekt hinzu.
Importiere dann die Klasse 'CoinAPI' wo du sie brauchst.
Dann kannst du anfangen Coins zu vergeben!
Funktionen:
- CoinAPI.playerExists(Player p) | Checkt ob ein Spieler in der Datenbank existiert
- CoinAPI.createPlayer(Player p) | Checkt vorher von alleine ob der Spieler existiert, wenn nicht erstellt einen neuen Spieler in der Datenbank (Wird bei neuen Spielern automatisch gemacht, solang dies nicht in der config ausgestellt wurde)
- CoinAPI.getCoins(Player p) | Gibt einen int mit dem Coinwert zurück
- CoinAPI.addCoins(Player p, int coins) | Fügt einem Spieler Coins hinzu
- CoinAPI.removeCoins(Player p, int coins) | Entfernt einem Spieler Coins
- CoinAPI.setCoins(Player p, int coins) | Setzt einem Spieler Coins
Viel Spaß damit!
-----------------------------------------------------
Hey!
This is a CoinAPI that connects to a MySQL Database.
It has all features to improve your Server.
Usage:
Firstly put it into your plugins folder and start the Server, then edit the config.yml and fill in all your MySQL details.
Change the Language if you want to.
You can choose there if it should add new users to the database automatically or if you want to do it manually.
Start your server again after filling in your info.
To start coding with it, add it as a Library to your Project.
Functions:
- CoinAPI.playerExists(Player p) | Checks if a player exists in the database
- CoinAPI.createPlayer(Player p) | Checks if a user exists in the database, if not, creates a new user (Is done automatically unless you disabled it in the config)
- CoinAPI.getCoins(Player p) | Returns an int with the coins
- CoinAPI.addCoins(Player p, int coins) | Adds coins to a player
- CoinAPI.removeCoins(Player p, int coins) | Removes coins from a player
- CoinAPI.setCoins(Player p, int coins) | Sets a players coins
Have fun with it!
Dies ist eine CoinAPI, welche sich mit MySQL verbindet. Sie hat alle nötigen funktionen um deinen Server zu bereichern.
Anwendung:
Als erstes in den Plugins Ordner ziehen und den Server starten. Der Server wird sich direkt schließen da keine Verbindung zur Datenbank aufgebaut werden kann. Einfach in der config.yml die Daten eintragen. Außerdem kannst du dort auswählen, ob das Plugin automatisch neue User zur Datenbank hinzufügen soll oder ob du das selbst in deinem Plugin machen möchtest.
Wenn die Daten alle richtig eingetragen sind starte den Server erneut und schau in der Konsole ob alles funktioniert.
Um die API dann zu nutzen füge sie als Library zu deinem Projekt hinzu.
Importiere dann die Klasse 'CoinAPI' wo du sie brauchst.
Dann kannst du anfangen Coins zu vergeben!
Funktionen:
- CoinAPI.playerExists(Player p) | Checkt ob ein Spieler in der Datenbank existiert
- CoinAPI.createPlayer(Player p) | Checkt vorher von alleine ob der Spieler existiert, wenn nicht erstellt einen neuen Spieler in der Datenbank (Wird bei neuen Spielern automatisch gemacht, solang dies nicht in der config ausgestellt wurde)
- CoinAPI.getCoins(Player p) | Gibt einen int mit dem Coinwert zurück
- CoinAPI.addCoins(Player p, int coins) | Fügt einem Spieler Coins hinzu
- CoinAPI.removeCoins(Player p, int coins) | Entfernt einem Spieler Coins
- CoinAPI.setCoins(Player p, int coins) | Setzt einem Spieler Coins
Viel Spaß damit!
-----------------------------------------------------
Hey!
This is a CoinAPI that connects to a MySQL Database.
It has all features to improve your Server.
Usage:
Firstly put it into your plugins folder and start the Server, then edit the config.yml and fill in all your MySQL details.
Change the Language if you want to.
You can choose there if it should add new users to the database automatically or if you want to do it manually.
Start your server again after filling in your info.
To start coding with it, add it as a Library to your Project.
Functions:
- CoinAPI.playerExists(Player p) | Checks if a player exists in the database
- CoinAPI.createPlayer(Player p) | Checks if a user exists in the database, if not, creates a new user (Is done automatically unless you disabled it in the config)
- CoinAPI.getCoins(Player p) | Returns an int with the coins
- CoinAPI.addCoins(Player p, int coins) | Adds coins to a player
- CoinAPI.removeCoins(Player p, int coins) | Removes coins from a player
- CoinAPI.setCoins(Player p, int coins) | Sets a players coins
Have fun with it!
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.8
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
MySQL CoinAPI is a free Minecraft Java mod. Compatible with Minecraft 1.8. Downloaded 153 times (via Spigot). Download it and open it directly in the game.