Developer API

Location

You can find the Developer API class here: cz.heroify.playerworldsproapi.PlayerWorldsProAPI

You need to download PlayerWorldsProAPI here.

Methods

hasPlayerWorld(String playerName)

Type: boolean

Returns true if the player has a player world.

getPlayerWorldOwner(String worldName)

Type: String

Returns owner of the player world.

Enter the name of the world, including the prefix of the player world.

loadPlayerWorld(String worldOwner)

Type: void

Loads the player world if unloaded.

isMember(Player player, String worldOwner)

Type: boolean

Returns true if the player is an owner or member of the player world.

isExpirationEnabled()

Type: boolean

Returns true if the expiration is enabled.

isWeatherCycle(String worldOwner)

Type: boolean

Returns true if the weather cycle is enabled.

getDifficulty(String worldOwner)

Type: String

Returns difficulty: PEACEFUL, EASY, NORMAL, HARD

isBlockBreaking(String worldOwner)

Type: boolean

Returns true if the block breaking is enabled.

isBlockPlacing(String worldOwner)

Type: boolean

Returns true if the block placing is enabled.

isPvP(String worldOwner)

Type: boolean

Returns true if the pvp is enabled.

getGameMode(String worldOwner)

Type: String

Returns game modes: Survival, Creative, Adventure, Spectator

isPickup(String worldOwner)

Type: boolean

Returns true if the item pickup is enabled.

isDrop(String worldOwner)

Type: boolean

Returns true if the drop item is enabled.

isDamage(String worldOwner)

Type: boolean

Returns true if the player damage is enabled.

isHunger(String worldOwner)

Type: boolean

Returns true if the hunger is enabled.

getAccess(String worldOwner)

Type: String

Returns accesses: PUBLIC, PRIVATE

getExpiration(String worldOwner)

Type: Long

Returns expiration of the player world.

getExpirationDate(String worldOwner)

Type: String

Returns formated expiration of the player world.

deletePlayerWorld(String worldOwner)

Type: void

Delete player world of the player.

Last updated