Constructor and Description |
---|
FeudalAPICore() |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(Command feudalCommand)
Add a Feudal sub-command by using the Feudal @Command
If you want to change the location your command is displayed in '/f help', implement @CustomCommand, and return the position you want your command to show up atfor '/f help'. |
Challenge |
getChallenge(Kingdom attacker,
Kingdom defender)
Get a @Challenge from a @Kingdom attacker and defender.
|
java.util.List<Challenge> |
getChallenges()
This gets a list of all active Challenges.
|
java.util.List<Challenge> |
getChallenges(Kingdom kingdom)
Get all active challenges for a specific @Kingdom.
|
java.util.List<Command> |
getCommands()
Get a list of Feudal @Command which are being used.
|
Feudal |
getFeudal()
Get direct instance of the main @Feudal class which extends JavaPlugin.
|
Kingdom |
getKingdom(org.bukkit.Chunk chunk)
Get a Feudal @Kingdom from a Bukkit Chunk
|
Kingdom |
getKingdom(Land land)
Get a Feudal @Kingdom from Feudal @Land.
|
Kingdom |
getKingdom(org.bukkit.Location location)
Get a Feudal @Kingdom from a Bukkit Location
|
Kingdom |
getKingdom(org.bukkit.OfflinePlayer player)
Get a Feudal @Kingdom from a Bukkit OfflinePlayer.
|
Kingdom |
getKingdom(User user)
Get a Feudal @Kingdom from a Feudal User.
|
Kingdom |
getKingdomByName(java.lang.String kingdomName)
Deprecated.
|
Kingdom |
getKingdomByUUID(java.lang.String uuid)
Get a Feudal @Kingdom by a kingdom's uuid.
|
Kingdom |
getKingdomByUUID(java.util.UUID uuid)
Get a Feudal @Kingdom by a kingdom's uuid.
|
java.lang.String |
getMessage(java.lang.String languageField)
This will get a String from the Feudal language config file based on the path entered as languageField.
|
java.lang.String |
getMinecraftVersion()
Get the version of minecraft Feudal has loaded for.
|
java.util.UUID |
getOfflineUUID(java.lang.String playerName)
Gets a Feudal player's uuid from their name.
|
User |
getUser(java.lang.String playerName)
Get a Feudal @User from a player's in game name.
|
User |
getUser(java.util.UUID uuid)
Get a Feudal @User via a player's UUID.
|
boolean |
removeCommand(Command feudalCommand)
Remove a Feudal sub-command by using the instance of that Feudal @Command
|
public Feudal getFeudal()
FeudalAPI
public User getUser(java.util.UUID uuid)
FeudalAPI
public User getUser(java.lang.String playerName)
FeudalAPI
public java.util.UUID getOfflineUUID(java.lang.String playerName)
FeudalAPI
getOfflineUUID
in interface FeudalAPI
@Deprecated public Kingdom getKingdomByName(java.lang.String kingdomName)
FeudalAPI
getKingdomByName
in interface FeudalAPI
kingdomName
- Feudal kingdom namepublic Kingdom getKingdomByUUID(java.lang.String uuid)
FeudalAPI
getKingdomByUUID
in interface FeudalAPI
uuid
- Feudal Kingdom uuid as stringpublic Kingdom getKingdomByUUID(java.util.UUID uuid)
FeudalAPI
getKingdomByUUID
in interface FeudalAPI
uuid
- Feudal Kingdom uuidpublic Kingdom getKingdom(User user)
FeudalAPI
getKingdom
in interface FeudalAPI
user
- Feudal Userpublic Kingdom getKingdom(org.bukkit.OfflinePlayer player)
FeudalAPI
getKingdom
in interface FeudalAPI
player
- Bukkit OfflinePlayerpublic Kingdom getKingdom(Land land)
FeudalAPI
getKingdom
in interface FeudalAPI
land
- Feudal @Land which is just a from of a Bukkit Chunkpublic Kingdom getKingdom(org.bukkit.Chunk chunk)
FeudalAPI
getKingdom
in interface FeudalAPI
chunk
- Bukkit Chunkpublic Kingdom getKingdom(org.bukkit.Location location)
FeudalAPI
getKingdom
in interface FeudalAPI
location
- Bukkit Locationpublic void addCommand(Command feudalCommand)
FeudalAPI
addCommand
in interface FeudalAPI
feudalCommand
- Feudal @Commandpublic boolean removeCommand(Command feudalCommand)
FeudalAPI
removeCommand
in interface FeudalAPI
feudalCommand
- Feudal @Commandpublic java.util.List<Command> getCommands()
FeudalAPI
getCommands
in interface FeudalAPI
public java.lang.String getMinecraftVersion()
FeudalAPI
getMinecraftVersion
in interface FeudalAPI
public java.lang.String getMessage(java.lang.String languageField)
FeudalAPI
getMessage
in interface FeudalAPI
languageField
- YAML path in language.ymlpublic java.util.List<Challenge> getChallenges()
FeudalAPI
getChallenges
in interface FeudalAPI
@Challenge
public Challenge getChallenge(Kingdom attacker, Kingdom defender)
FeudalAPI
getChallenge
in interface FeudalAPI
attacker
- @Kingdom which is attacking in this challengedefender
- @Kingdom which is defending in this challengepublic java.util.List<Challenge> getChallenges(Kingdom kingdom)
FeudalAPI
getChallenges
in interface FeudalAPI
kingdom
- @Kingdom