Package com.plotsquared.bukkit.player
Class BukkitPlayer
java.lang.Object
com.plotsquared.core.player.PlotPlayer<Player>
com.plotsquared.bukkit.player.BukkitPlayer
- All Implemented Interfaces:
com.plotsquared.core.command.CommandCaller,com.plotsquared.core.configuration.caption.LocaleHolder,com.plotsquared.core.permissions.PermissionHolder,com.plotsquared.core.player.OfflinePlotPlayer
-
Nested Class Summary
Nested classes/interfaces inherited from class com.plotsquared.core.player.PlotPlayer
com.plotsquared.core.player.PlotPlayer.PlotPlayerConverter<BaseObject extends Object> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBukkitPlayer(@NonNull com.plotsquared.core.plot.world.PlotAreaManager plotAreaManager, @NonNull com.plotsquared.core.util.EventDispatcher eventDispatcher, @NonNull Player player, boolean realPlayer, @NonNull com.plotsquared.core.permissions.PermissionHandler permissionHandler) BukkitPlayer(@NonNull com.plotsquared.core.plot.world.PlotAreaManager plotAreaManager, @NonNull com.plotsquared.core.util.EventDispatcher eventDispatcher, @NonNull Player player, @NonNull com.plotsquared.core.permissions.PermissionHandler permissionHandler) Please do not use this method. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSee(com.plotsquared.core.player.PlotPlayer<?> other) booleancanTeleport(@NonNull com.plotsquared.core.location.Location location) boolean@org.checkerframework.checker.index.qual.NonNegative longcom.plotsquared.core.location.LocationgetName()getTeleportCause(@NonNull com.plotsquared.core.events.TeleportCause cause) Convert from PlotSquared'sTeleportCauseto Bukkit'sPlayerTeleportEvent.TeleportCausegetUUID()@org.checkerframework.checker.index.qual.NonNegative inthasPermissionRange(@NonNull String stub, @org.checkerframework.checker.index.qual.NonNegative int range) booleanisBanned()voidvoidvoidsetCompassTarget(com.plotsquared.core.location.Location location) voidsetFlight(boolean fly) voidsetGameMode(GameMode gameMode) voidsetTime(long time) voidsetWeather(@NonNull com.plotsquared.core.plot.PlotWeather weather) voidvoidteleport(@NonNull com.plotsquared.core.location.Location location, @NonNull com.plotsquared.core.events.TeleportCause cause) toActor()Methods inherited from class com.plotsquared.core.player.PlotPlayer
accessPersistentMetaData, accessTemporaryMetaData, equals, from, getAllowedPlots, getApplicablePlotArea, getAttribute, getClusterCount, getClusterCount, getCurrentPlot, getDebugModePlayers, getDebugModePlayersInPlot, getLocale, getLocation, getLockRepository, getMeta, getPlayerClusterCount, getPlayerClusterCount, getPlotAreaAbs, getPlotCount, getPlotCount, getPlots, getPlots, getSuperCaller, hasDebugMode, hashCode, hasKeyedPermission, hasPermission, hasPermission, plotkick, populatePersistentMetaMap, refreshDebug, registerConverter, removeAttribute, sendActionBar, sendMessage, sendTitle, sendTitle, setAttribute, setLocale, setupPermissionProfile, teleport, toString, unregisterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.plotsquared.core.permissions.PermissionHolder
hasKeyedPermission
-
Field Details
-
player
-
-
Constructor Details
-
BukkitPlayer
public BukkitPlayer(@NonNull com.plotsquared.core.plot.world.PlotAreaManager plotAreaManager, @NonNull com.plotsquared.core.util.EventDispatcher eventDispatcher, @NonNull Player player, @NonNull com.plotsquared.core.permissions.PermissionHandler permissionHandler) Please do not use this method. Instead use BukkitUtil.getPlayer(Player), as it caches player objects.
- Parameters:
plotAreaManager- PlotAreaManager instanceeventDispatcher- EventDispatcher instanceplayer- Bukkit player instancepermissionHandler- PermissionHandler instance
-
BukkitPlayer
-
-
Method Details
-
toActor
- Specified by:
toActorin classcom.plotsquared.core.player.PlotPlayer<Player>
-
getPlatformPlayer
- Specified by:
getPlatformPlayerin classcom.plotsquared.core.player.PlotPlayer<Player>
-
getUUID
- Specified by:
getUUIDin interfacecom.plotsquared.core.player.OfflinePlotPlayer- Specified by:
getUUIDin classcom.plotsquared.core.player.PlotPlayer<Player>
-
getLastPlayed
public @org.checkerframework.checker.index.qual.NonNegative long getLastPlayed() -
canTeleport
- Overrides:
canTeleportin classcom.plotsquared.core.player.PlotPlayer<Player>
-
hasPermissionRange
-
teleport
public void teleport(@NonNull com.plotsquared.core.location.Location location, @NonNull com.plotsquared.core.events.TeleportCause cause) - Specified by:
teleportin classcom.plotsquared.core.player.PlotPlayer<Player>
-
getName
-
setCompassTarget
public void setCompassTarget(com.plotsquared.core.location.Location location) - Specified by:
setCompassTargetin classcom.plotsquared.core.player.PlotPlayer<Player>
-
getLocationFull
public com.plotsquared.core.location.Location getLocationFull()- Specified by:
getLocationFullin classcom.plotsquared.core.player.PlotPlayer<Player>
-
setWeather
- Specified by:
setWeatherin classcom.plotsquared.core.player.PlotPlayer<Player>
-
getGameMode
- Specified by:
getGameModein classcom.plotsquared.core.player.PlotPlayer<Player>
-
setGameMode
- Specified by:
setGameModein classcom.plotsquared.core.player.PlotPlayer<Player>
-
setTime
public void setTime(long time) - Specified by:
setTimein classcom.plotsquared.core.player.PlotPlayer<Player>
-
getFlight
public boolean getFlight()- Specified by:
getFlightin classcom.plotsquared.core.player.PlotPlayer<Player>
-
setFlight
public void setFlight(boolean fly) - Specified by:
setFlightin classcom.plotsquared.core.player.PlotPlayer<Player>
-
playMusic
public void playMusic(@NonNull com.plotsquared.core.location.Location location, @NonNull ItemType id) - Specified by:
playMusicin classcom.plotsquared.core.player.PlotPlayer<Player>
-
kick
- Specified by:
kickin classcom.plotsquared.core.player.PlotPlayer<Player>
-
stopSpectating
public void stopSpectating()- Specified by:
stopSpectatingin classcom.plotsquared.core.player.PlotPlayer<Player>
-
isBanned
public boolean isBanned()- Specified by:
isBannedin classcom.plotsquared.core.player.PlotPlayer<Player>
-
getAudience
- Specified by:
getAudiencein classcom.plotsquared.core.player.PlotPlayer<Player>
-
canSee
public boolean canSee(com.plotsquared.core.player.PlotPlayer<?> other) - Specified by:
canSeein classcom.plotsquared.core.player.PlotPlayer<Player>
-
getTeleportCause
public PlayerTeleportEvent.TeleportCause getTeleportCause(@NonNull com.plotsquared.core.events.TeleportCause cause) Convert from PlotSquared'sTeleportCauseto Bukkit'sPlayerTeleportEvent.TeleportCause- Parameters:
cause- PlotSquared teleport cause to convert- Returns:
- Bukkit's equivalent teleport cause
-