Package org.kingdoms.services.managers
Class ServiceHandler
java.lang.Object
org.kingdoms.services.managers.ServiceHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddGlobalMessageHandler(BiConsumer<org.bukkit.entity.Player, String> handler) static voidannounce(KingdomsConfig.Chat section, com.google.common.base.Supplier<MessageBuilder> settings) static booleanstatic booleanbankServiceNotAvailable(org.bukkit.command.CommandSender player) static StringgetGroup(org.bukkit.entity.Player player) static UUIDgetPetOwner(org.bukkit.entity.Entity entity) static org.bukkit.entity.PlayergetPetOwnerPlayer(org.bukkit.entity.Entity entity) static org.kingdoms.services.worldguard.ServiceWorldGuardstatic booleanisAuthenticated(org.bukkit.entity.Player player) static booleanisInGodMode(org.bukkit.entity.Player player) static booleanisInRegion(org.bukkit.Location location, String region) static booleanisInRegion(SimpleChunkLocation chunk) static booleanisInRegion(SimpleChunkLocation chunk, int radius) static booleanisNPC(org.bukkit.entity.Entity entity) static booleanisVanished(org.bukkit.entity.Player player) static voidlogPrivateMessage(org.bukkit.entity.Player player, String str) static voidsendGlobalMessage(org.bukkit.entity.Player player, String message)
-
Constructor Details
-
ServiceHandler
public ServiceHandler()
-
-
Method Details
-
bankServiceAvailable
public static boolean bankServiceAvailable() -
announce
public static void announce(KingdomsConfig.Chat section, com.google.common.base.Supplier<MessageBuilder> settings) -
bankServiceNotAvailable
public static boolean bankServiceNotAvailable(org.bukkit.command.CommandSender player) -
getPetOwner
-
getPetOwnerPlayer
public static org.bukkit.entity.Player getPetOwnerPlayer(org.bukkit.entity.Entity entity) -
isInRegion
-
isInRegion
-
isInRegion
-
addGlobalMessageHandler
-
isVanished
public static boolean isVanished(org.bukkit.entity.Player player) -
isNPC
public static boolean isNPC(org.bukkit.entity.Entity entity) -
isInGodMode
public static boolean isInGodMode(org.bukkit.entity.Player player) -
sendGlobalMessage
-
getWorldGuardService
public static org.kingdoms.services.worldguard.ServiceWorldGuard getWorldGuardService() -
getGroup
-
isAuthenticated
public static boolean isAuthenticated(org.bukkit.entity.Player player) -
logPrivateMessage
-