public class NewPlayerCreator extends Object
Constructor and Description |
---|
NewPlayerCreator() |
Modifier and Type | Method and Description |
---|---|
static UserData |
createNewPlayer(org.bukkit.OfflinePlayer player)
Creates a new instance of UserData with default values.
|
static UserData |
createNewPlayer(org.bukkit.OfflinePlayer player,
org.bukkit.GameMode gm)
Creates a new instance of UserData with default values.
|
static UserData |
createNewPlayer(org.bukkit.entity.Player player)
Creates a new instance of UserData with default values.
|
public static UserData createNewPlayer(org.bukkit.entity.Player player)
player
- Player the UserData is created for.public static UserData createNewPlayer(org.bukkit.OfflinePlayer player)
player
- OfflinePlayer the UserData is created for.public static UserData createNewPlayer(org.bukkit.OfflinePlayer player, org.bukkit.GameMode gm)
player
- Player the UserData is created for.gm
- Gamemode set as the starting GamemodeCopyright © 2017. All rights reserved.