Class BukkitLastLoginUpdateNameEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.alessiodp.lastloginapi.api.events.bukkit.BukkitLastLoginEvent
-
- com.alessiodp.lastloginapi.api.events.bukkit.BukkitLastLoginUpdateNameEvent
-
- All Implemented Interfaces:
IUpdateName,LastLoginEvent
public class BukkitLastLoginUpdateNameEvent extends BukkitLastLoginEvent implements IUpdateName
-
-
Constructor Summary
Constructors Constructor Description BukkitLastLoginUpdateNameEvent(LastLoginPlayer player, String newName, String oldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNewName()Get the new name that is gonna be setStringgetOldName()Get the old name@NotNull LastLoginPlayergetPlayer()Get the player-
Methods inherited from class com.alessiodp.lastloginapi.api.events.bukkit.BukkitLastLoginEvent
getApi, getHandlerList, getHandlers, setApi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.lastloginapi.api.events.LastLoginEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
BukkitLastLoginUpdateNameEvent
public BukkitLastLoginUpdateNameEvent(LastLoginPlayer player, String newName, String oldName)
-
-
Method Detail
-
getPlayer
@NotNull public @NotNull LastLoginPlayer getPlayer()
Description copied from interface:IUpdateNameGet the player- Specified by:
getPlayerin interfaceIUpdateName- Returns:
- the
LastLoginPlayer
-
getNewName
public String getNewName()
Description copied from interface:IUpdateNameGet the new name that is gonna be set- Specified by:
getNewNamein interfaceIUpdateName- Returns:
- the new name
-
getOldName
public String getOldName()
Description copied from interface:IUpdateNameGet the old name- Specified by:
getOldNamein interfaceIUpdateName- Returns:
- the old name
-
-