TF-Marriage/src/main/java/com/lenis0012/bukkit/marriage2/MPlayer.java

138 lines
2.6 KiB
Java
Raw Normal View History

2014-11-13 07:36:28 +00:00
package com.lenis0012.bukkit.marriage2;
2016-04-21 07:39:59 +00:00
import java.util.UUID;
2014-11-13 07:36:28 +00:00
public interface MPlayer {
/**
* Get unique User Id of the player.
*
* @return Player's unique user id.
*/
UUID getUniqueId();
2014-11-13 09:54:23 +00:00
/**
* Request marriage with this player by another.
*
* @param from Player who requested the marriage.
*/
void requestMarriage(UUID from);
/**
* Check if marriage with this player is requested by another.
*
* @param from Marriage requester.
* @return Whether or not marriage is requested by the player.
*/
boolean isMarriageRequested(UUID from);
2014-11-13 07:36:28 +00:00
/**
* Get the player's gender.
*
* @return Player's gender.
*/
Gender getGender();
/**
* Set the player's gender.
*
* @param gender Player's gender.
*/
void setGender(Gender gender);
/**
* Get current marriage of the player.
*
* @return Player's marriage, NULL if not married.
*/
MData getMarriage();
2016-02-27 23:57:54 +00:00
/**
* Get the last name the player logged on with.
*
* @return Last name, can be null
*/
String getLastName();
2014-11-13 07:36:28 +00:00
/**
* Check if the player is married.
*
* @return True if married, false otherwise.
*/
boolean isMarried();
/**
* Check if the player is in marry-chat mode.
*
* @return True if in chat-mode, false otherwise.
*/
boolean isInChat();
2015-07-09 03:13:58 +00:00
/**
* Whether or not the player is a priest.
*
* @return True if player ius priest, false otherwise
*/
boolean isPriest();
2016-02-27 23:57:54 +00:00
/**
* Set the last name the player logged on with.
*
* @param name of player
*/
void setLastName(String name);
2015-07-09 03:13:58 +00:00
/**
* Set whether or not this player is a priest.
*
* @param priest True if player is priest, false otherwise
*/
void setPriest(boolean priest);
2014-11-13 07:36:28 +00:00
/**
* Set if the player is in marry chat-mode.
*
* @param inChat Whether or not the player is in marry chat-mode.
*/
void setInChat(boolean inChat);
2014-12-14 02:36:33 +00:00
/**
* Get the current player's partner
*
* @return Current partner of the player
*/
MPlayer getPartner();
/**
* Divorce with the current player's partner
*/
void divorce();
2015-07-09 03:13:58 +00:00
2016-04-20 20:28:33 +00:00
/**
* Get timestamp of last time player logged in.
*
* @return Last login timestamp.
*/
2015-07-09 03:13:58 +00:00
long getLastLogin();
2016-04-20 20:28:33 +00:00
/**
* Get timestamp of last time player logged out.
*
* @return Last logout timestamp.
*/
2015-07-09 03:13:58 +00:00
long getLastLogout();
2016-04-20 20:28:33 +00:00
/**
* Said whether or not player is spying on marriage private chat.
*
* @param enabled True if enables, false otherwise
*/
void setChatSpy(boolean enabled);
/**
* Get whether or not player is spying on marriage private chat.
*
* @return True if enabled, false otherwise
*/
boolean isChatSpy();
2014-11-13 07:36:28 +00:00
}