developers/Documentation

API Documentation

This page contains a list of functions and how to use them.


Functions

Overview

nameargumentsreturn typesuccess returnerror returnnoticeexample
addUserPlayer playerbooleantruefalseBukkit onlyAccountAPI.addUser(player)
ProxiedPlayer playerBungeeCord onlyAccountAPI.addUser(proxiedPlayer)
String uuidAccountAPI.addUser("069a79f444e94726a5befca90e38aaf5")
String uuid, String nameAccountAPI.addUser("069a79f444e94726a5befca90e38aaf", "Notch")
Player player, String password, boolean hashedBukkit onlyAccountAPI.addUser(player, "Password as SHA-256 hash", true)
ProxiedPlayer player, String password, boolean hashedBungeeCord onlyAccountAPI.addUser(player, "Password as plain text", false)
String uuid, String password, boolean hashedAccountAPI.addUser("069a79f444e94726a5befca90e38aaf", "Password as plain text", false)
String uuid, String name, String password, boolean hashedAccountAPI.addUser("069a79f444e94726a5befca90e38aaf", "Notch", "Password as SHA-256 hash", true)
checkUserPlayer playerbooleantrue / falsefalseBukkit onlyAccountAPI.checkUser(player)
ProxiedPlayer playerBungeeCord onlyAccountAPI.checkUser(player)
String uuidAccountAPI.checkUser("069a79f444e94726a5befca90e38aaf")
checkUserByNameString namebooleantrue / falsefalseDeprecatedAccountAPI.checkUser("Notch")
getNamePlayer playerStringplayer namenullBukkit onlyAccountAPI.getName(player)
ProxiedPlayer playerBungeeCord onlyAccountAPI.getName(player)
String uuidAccountAPI.getName("069a79f444e94726a5befca90e38aaf")
updateNamePlayer playerbooleantruefalseBukkit onlyAccountAPI.updateName(player)
ProxiedPlayer playerBungeeCord onlyAccountAPI.updateName(player)
setNamePlayer player, String newNamebooleantruefalseBukkit onlyAccountAPI.setName(player, "A new username")
ProxiedPlayer player, String newNameBungeeCord onlyAccountAPI.setName(player, "A new username")
String uuid, String newNameAccountAPI.setName("069a79f444e94726a5befca90e38aaf", "A new username")
getPasswordHashPlayer playerStringpassword hashnullBukkit onlyAccountAPI.getPasswordHash(player)
ProxiedPlayer playerBungeeCord onlyAccountAPI.getPasswordHash(player)
String uuidAccountAPI.getPasswordHash("069a79f444e94726a5befca90e38aaf")
getPasswordHashByNameString nameStringpassword hashnullDeprecatedAccountAPI.getPasswordHash("Notch")
setPasswordPlayer player, String password, boolean hashedbooleantruefalseBukkit onlyAccountAPI.setPassword(player, "Password as plain text", false)
ProxiedPlayer player, String password, boolean hashedBungeeCord onlyAccountAPI.setPassword(player, "Password as SHA-256 hash", true)
String uuid, String password, boolean hashedAccountAPI.setPassword("069a79f444e94726a5befca90e38aaf", "Password as SHA-256 hash", true)
deleteUserPlayer playerbooleantruefalseBukkit onlyAccountAPI.deleteUser(player)
ProxiedPlayer playerBungeeCord onlyAccountAPI.deleteUser(player)
String uuidAccountAPI.deleteUser("069a79f444e94726a5befca90e38aaf")

Definition

name
The function's name. Use AccountAPI.name
arguments
The arguments required for the function (Datatype and name)
return type
The datatype that will be returned
success return
Returned Value on success
error return
Returned Value on MySQL error
notice
Bukkit only - Works only when using the plugin on a Bukkit/Spigot server
BungeeCord only - Works only when using the plugin on a BungeeCord server
(empty) - Works on Bukkit/Spigot and BungeeCord

Deprecated - You shouldn't use this, there's a better way to achieve the same (for example using player's UUIDs instead of their names)


Detailed description

Coming soon...


Comments

Posts Quoted:
Reply
Clear All Quotes