mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fix for some API functions not being callable.
This commit is contained in:
parent
13951e5806
commit
cd64b60ece
@ -186,7 +186,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
* @param player Player whose profile to get
|
* @param player Player whose profile to get
|
||||||
* @return the PlayerProfile object
|
* @return the PlayerProfile object
|
||||||
*/
|
*/
|
||||||
public PlayerProfile getPlayerProfile(Player player) {
|
public static PlayerProfile getPlayerProfile(Player player) {
|
||||||
return Users.getProfile(player);
|
return Users.getProfile(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
* @param player
|
* @param player
|
||||||
* @param skillType
|
* @param skillType
|
||||||
*/
|
*/
|
||||||
public void checkXp(Player player, SkillType skillType) {
|
public static void checkXp(Player player, SkillType skillType) {
|
||||||
if (skillType == SkillType.ALL) {
|
if (skillType == SkillType.ALL) {
|
||||||
Skills.XpCheckAll(player);
|
Skills.XpCheckAll(player);
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
* @param playerb The second player to check
|
* @param playerb The second player to check
|
||||||
* @return true if the two players are in the same party, false otherwise
|
* @return true if the two players are in the same party, false otherwise
|
||||||
*/
|
*/
|
||||||
public boolean inSameParty(Player playera, Player playerb) {
|
public static boolean inSameParty(Player playera, Player playerb) {
|
||||||
if (Users.getProfile(playera).inParty() && Users.getProfile(playerb).inParty()) {
|
if (Users.getProfile(playera).inParty() && Users.getProfile(playerb).inParty()) {
|
||||||
if (Users.getProfile(playera).getParty().equals(Users.getProfile(playerb).getParty())) {
|
if (Users.getProfile(playera).getParty().equals(Users.getProfile(playerb).getParty())) {
|
||||||
return true;
|
return true;
|
||||||
@ -237,7 +237,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
*
|
*
|
||||||
* @return the list of parties.
|
* @return the list of parties.
|
||||||
*/
|
*/
|
||||||
public ArrayList<String> getParties() {
|
public static ArrayList<String> getParties() {
|
||||||
String location = "plugins/mcMMO/mcmmo.users";
|
String location = "plugins/mcMMO/mcmmo.users";
|
||||||
ArrayList<String> parties = new ArrayList<String>();
|
ArrayList<String> parties = new ArrayList<String>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user