Class OfflinePlayers

java.lang.Object
dev.array21.dutchycore.module.PluginModule
dev.array21.offlineplayers.OfflinePlayers

@RegisterModule(name="OfflinePlayers", version="@VERSION@", author="Dutchy76", infoUrl="https://github.com/DutchyPlugins/OfflinePlayers") public class OfflinePlayers extends dev.array21.dutchycore.module.PluginModule
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addNewPendingTransfer​(String newUserName, String oldUserName)
    Add a new pending transfer
    void
    enable​(dev.array21.dutchycore.DutchyCore plugin)
     
    Get the level (world) name
    Get the old username for a pending transfer
    void
    removePendingTransfer​(String newUserName)
    Remove a player from pending transfers

    Methods inherited from class dev.array21.dutchycore.module.PluginModule

    getCore, getModuleFileHandler, getModuleInfo, getPluginModule, init, isModuleInstalled, isModuleRegistered, logInfo, logWarn, postEnable, registerCommand, registerEventListener, registerModuleEventListener, registerPermissionNode, registerTabCompleter, throwModuleEvent, unregisterEventListener

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OfflinePlayers

      public OfflinePlayers()
  • Method Details

    • enable

      public void enable(dev.array21.dutchycore.DutchyCore plugin)
      Specified by:
      enable in class dev.array21.dutchycore.module.PluginModule
    • getPendingTransferOldUsername

      @Nullable public String getPendingTransferOldUsername(String newUserName)
      Get the old username for a pending transfer
      Parameters:
      newUserName - The new (current) username of the Player
      Returns:
      Returns the old username, if there is none returns null
    • addNewPendingTransfer

      public void addNewPendingTransfer(String newUserName, String oldUserName)
      Add a new pending transfer
      Parameters:
      newUserName - The new username for the player
      oldUserName - The old (current) username for the player
    • removePendingTransfer

      public void removePendingTransfer(String newUserName)
      Remove a player from pending transfers
      Parameters:
      newUserName - The new (current) username of the player
    • getLevelName

      public String getLevelName()
      Get the level (world) name
      Returns:
      Returns the level name