public class SpigotAdapter extends Adapter
Constructor and Description |
---|
SpigotAdapter(org.bukkit.plugin.java.JavaPlugin pl) |
canSendStats, getAdapter, getName, getUUID, setAdapter
public Platform getPlatformID()
getPlatformID
in class Adapter
public Configuration getConfig()
public File getDataFolder()
getDataFolder
in class Adapter
public TranslationProviderFactory getPlatformTranslationProviderFactory()
getPlatformTranslationProviderFactory
in class Adapter
public String getVersion()
getVersion
in class Adapter
public Version getServerVersion()
getServerVersion
in class Adapter
public String getPluginVersion()
getPluginVersion
in class Adapter
public void reloadConfig()
reloadConfig
in class Adapter
public NegativityAccountManager getAccountManager()
getAccountManager
in class Adapter
public void runConsoleCommand(String cmd)
runConsoleCommand
in class Adapter
public CompletableFuture<Boolean> isUsingMcLeaks(UUID playerId)
isUsingMcLeaks
in class Adapter
public List<UUID> getOnlinePlayersUUID()
getOnlinePlayersUUID
in class Adapter
public List<Player> getOnlinePlayers()
getOnlinePlayers
in class Adapter
public LoggerAdapter getLogger()
public double getLastTPS()
getLastTPS
in class Adapter
public ItemRegistrar getItemRegistrar()
getItemRegistrar
in class Adapter
public Inventory createInventory(String inventoryName, int size, NegativityHolder holder)
createInventory
in class Adapter
public void sendMessageRunnableHover(Player p, String message, String hover, String command)
sendMessageRunnableHover
in class Adapter
public ItemBuilder createItemBuilder(Material type)
createItemBuilder
in class Adapter
public ItemBuilder createItemBuilder(ItemStack item)
createItemBuilder
in class Adapter
public ItemBuilder createItemBuilder(String type)
createItemBuilder
in class Adapter
public ItemBuilder createSkullItemBuilder(Player owner)
createSkullItemBuilder
in class Adapter
public ItemBuilder createSkullItemBuilder(OfflinePlayer owner)
createSkullItemBuilder
in class Adapter
public @Nullable OfflinePlayer getOfflinePlayer(String name)
getOfflinePlayer
in class Adapter
public @Nullable OfflinePlayer getOfflinePlayer(UUID uuid)
getOfflinePlayer
in class Adapter
public FakePlayer createFakePlayer(Location loc, String name)
createFakePlayer
in class Adapter
public ExternalPlugin getPlugin(String name)
public List<ExternalPlugin> getDependentPlugins()
getDependentPlugins
in class Adapter
public Scheduler getScheduler()
getScheduler
in class Adapter
public void registerNewIncomingChannel(String channel, BiConsumer<Player,byte[]> event)
registerNewIncomingChannel
in class Adapter
public void broadcastMessage(String message)
broadcastMessage
in class Adapter
public VersionAdapter<?> getVersionAdapter()
getVersionAdapter
in class Adapter
public List<String> getAllPlugins()
getAllPlugins
in class Adapter