2011-07-18 22:06:02 +02:00
|
|
|
package com.massivecraft.factions;
|
2011-02-06 13:36:11 +01:00
|
|
|
|
2011-10-12 17:25:01 +02:00
|
|
|
import com.massivecraft.factions.iface.EconomyParticipator;
|
|
|
|
import com.massivecraft.factions.iface.RelationParticipator;
|
2011-09-24 12:04:49 +02:00
|
|
|
import com.massivecraft.factions.struct.ChatMode;
|
2011-07-18 22:06:02 +02:00
|
|
|
import com.massivecraft.factions.struct.Relation;
|
|
|
|
import com.massivecraft.factions.struct.Role;
|
2015-05-25 06:42:31 +02:00
|
|
|
import com.massivecraft.factions.util.WarmUpUtil;
|
2018-02-11 00:59:21 +01:00
|
|
|
import mkremins.fanciful.FancyMessage;
|
2014-04-04 20:55:21 +02:00
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
import org.bukkit.Location;
|
2018-02-16 03:02:59 +01:00
|
|
|
import org.bukkit.command.CommandSender;
|
2014-04-04 20:55:21 +02:00
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
2014-11-06 01:36:47 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2011-02-06 13:36:11 +01:00
|
|
|
|
2011-03-22 15:45:41 +01:00
|
|
|
/**
|
2014-04-04 20:55:21 +02:00
|
|
|
* Logged in players always have exactly one FPlayer instance. Logged out players may or may not have an FPlayer
|
|
|
|
* instance. They will always have one if they are part of a faction. This is because only players with a faction are
|
|
|
|
* saved to disk (in order to not waste disk space).
|
2011-03-23 12:00:38 +01:00
|
|
|
* The FPlayer is linked to a minecraft player using the player name.
|
2014-04-04 20:55:21 +02:00
|
|
|
* The same instance is always returned for the same player. This means you can use the == operator. No .equals method
|
|
|
|
* necessary.
|
2011-03-22 15:45:41 +01:00
|
|
|
*/
|
|
|
|
|
2014-11-06 01:36:47 +01:00
|
|
|
public interface FPlayer extends EconomyParticipator {
|
2018-07-30 18:05:28 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setNotificationsEnabled(boolean notifications);
|
2019-05-19 22:09:00 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean hasNotificationsEnabled();
|
2019-07-04 04:30:58 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isAlt();
|
2019-07-04 04:30:58 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setAlt(boolean alt);
|
2019-05-19 22:09:00 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* Used to know if stealth is toggled on or off
|
|
|
|
*
|
|
|
|
* @return if stealth mode is on or not.
|
|
|
|
*/
|
|
|
|
boolean isStealthEnabled();
|
2018-07-30 18:05:28 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* Toggles the stealth of the FPlayer depending on the parameter
|
|
|
|
*
|
|
|
|
* @param stealthToggle - toggles stealth
|
|
|
|
*/
|
|
|
|
void setStealth(boolean stealthToggle);
|
2018-07-30 18:05:28 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* Sets the kills and deaths of a player.
|
|
|
|
*/
|
|
|
|
void login();
|
2015-08-06 23:53:00 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* Caches the kills and deaths of a player.
|
|
|
|
*/
|
|
|
|
void logout();
|
2015-08-06 23:53:00 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* gets the faction of a FPlayer.
|
|
|
|
*
|
|
|
|
* @return Faction of the FPlayer.
|
|
|
|
*/
|
|
|
|
Faction getFaction();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* Sets the faction of the FPlayer
|
|
|
|
*
|
|
|
|
* @param faction faction to set.
|
|
|
|
*/
|
|
|
|
void setFaction(Faction faction, boolean alt);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* Gets the faction ID of the player.
|
|
|
|
*
|
|
|
|
* @return FactionsID string
|
|
|
|
*/
|
|
|
|
String getFactionId();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* Check if a player has a faction
|
|
|
|
*
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
boolean hasFaction();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
/**
|
|
|
|
* Gets autoleave status
|
|
|
|
*
|
|
|
|
* @return boolean of the autoleave
|
|
|
|
*/
|
|
|
|
boolean willAutoLeave();
|
2016-05-30 02:33:46 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setAutoLeave(boolean autoLeave);
|
2016-05-30 02:33:46 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
long getLastFrostwalkerMessage();
|
2016-06-12 01:49:33 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setLastFrostwalkerMessage();
|
2016-06-12 01:49:33 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setMonitorJoins(boolean monitor);
|
2015-01-06 23:06:46 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isMonitoringJoins();
|
2015-01-06 23:06:46 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Role getRole();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setRole(Role role);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean shouldTakeFallDamage();
|
2018-03-05 02:27:48 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setTakeFallDamage(boolean fallDamage);
|
2018-03-05 02:27:48 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
double getPowerBoost();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setPowerBoost(double powerBoost);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Faction getAutoClaimFor();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setAutoClaimFor(Faction faction);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isAutoSafeClaimEnabled();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setIsAutoSafeClaimEnabled(boolean enabled);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isAutoWarClaimEnabled();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setIsAutoWarClaimEnabled(boolean enabled);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isAdminBypassing();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isVanished();
|
2014-11-07 19:08:57 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setIsAdminBypassing(boolean val);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
ChatMode getChatMode();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setChatMode(ChatMode chatMode);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isIgnoreAllianceChat();
|
2015-02-25 15:38:03 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setIgnoreAllianceChat(boolean ignore);
|
2015-02-25 15:38:03 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isSpyingChat();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setSpyingChat(boolean chatSpying);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean showScoreboard();
|
2015-05-18 21:32:12 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setShowScoreboard(boolean show);
|
2015-05-18 21:32:12 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// FIELD: account
|
|
|
|
String getAccountId();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void resetFactionData(boolean doSpoutUpdate);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void resetFactionData();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
long getLastLoginTime();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setLastLoginTime(long lastLoginTime);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isMapAutoUpdating();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setMapAutoUpdating(boolean mapAutoUpdating);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean hasLoginPvpDisabled();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
FLocation getLastStoodAt();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setLastStoodAt(FLocation flocation);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getTitle();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setTitle(CommandSender sender, String title);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getName();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getTag();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// Base concatenations:
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getNameAndSomething(String something);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getNameAndTitle();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getNameAndTag();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// Colored concatenations:
|
|
|
|
// These are used in information messages
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getNameAndTitle(Faction faction);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getNameAndTitle(FPlayer fplayer);
|
2012-03-13 15:48:31 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// Chat Tag:
|
|
|
|
// These are injected into the format of global chat messages.
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getChatTag();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// Colored Chat Tag
|
|
|
|
String getChatTag(Faction faction);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getChatTag(FPlayer fplayer);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
int getKills();
|
2015-08-06 23:53:00 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
int getDeaths();
|
2015-08-06 23:53:00 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void takeMoney(int amt);
|
2018-03-29 02:33:10 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean hasMoney(int amt);
|
2015-08-06 23:53:00 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
//inspect Stuff
|
2018-04-09 05:13:41 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isInspectMode();
|
2018-04-09 05:13:41 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setInspectMode(boolean status);
|
2018-04-09 05:13:41 +02:00
|
|
|
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// Fly Checks
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Boolean canflyinWilderness();
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Boolean canflyinWarzone();
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Boolean canflyinSafezone();
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Boolean canflyinEnemy();
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Boolean canflyinAlly();
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Boolean canflyinTruce();
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Boolean canflyinNeutral();
|
2018-03-31 04:22:06 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// -------------------------------
|
|
|
|
// Relation and relation colors
|
|
|
|
// -------------------------------
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
@Override
|
|
|
|
String describeTo(RelationParticipator that, boolean ucfirst);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
@Override
|
|
|
|
String describeTo(RelationParticipator that);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
@Override
|
|
|
|
Relation getRelationTo(RelationParticipator rp);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
@Override
|
|
|
|
Relation getRelationTo(RelationParticipator rp, boolean ignorePeaceful);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Relation getRelationToLocation();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
@Override
|
|
|
|
ChatColor getColorTo(RelationParticipator rp);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2018-03-27 15:17:55 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getRolePrefix();
|
2018-03-27 15:17:55 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
//----------------------------------------------//
|
|
|
|
// Health
|
|
|
|
//----------------------------------------------//
|
|
|
|
void heal(int amnt);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
//----------------------------------------------//
|
|
|
|
// Power
|
|
|
|
//----------------------------------------------//
|
|
|
|
double getPower();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void alterPower(double delta);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
double getPowerMax();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
double getPowerMin();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
int getPowerRounded();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
int getPowerMaxRounded();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
int getPowerMinRounded();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void updatePower();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void losePowerFromBeingOffline();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void onDeath();
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
//----------------------------------------------//
|
|
|
|
// Territory
|
|
|
|
//----------------------------------------------//
|
|
|
|
boolean isInOwnTerritory();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isInOthersTerritory();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isInAllyTerritory();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isInNeutralTerritory();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isInEnemyTerritory();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void sendFactionHereMessage(Faction from);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// -------------------------------
|
|
|
|
// Actions
|
|
|
|
// -------------------------------
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void leave(boolean makePay);
|
2014-04-04 20:55:21 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean canClaimForFaction(Faction forFaction);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean canClaimForFactionAtLocation(Faction forFaction, Location location, boolean notifyFailure);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean canClaimForFactionAtLocation(Faction forFaction, FLocation location, boolean notifyFailure);
|
2018-02-13 03:09:02 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean attemptClaim(Faction forFaction, Location location, boolean notifyFailure);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean attemptClaim(Faction forFaction, FLocation location, boolean notifyFailure);
|
2018-02-13 03:09:02 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isInVault();
|
2018-03-26 23:43:15 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setInVault(boolean status);
|
2018-03-26 23:43:15 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void msg(String str, Object... args);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getId();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setId(String id);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
Player getPlayer();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isOnline();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void sendMessage(String message);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void sendMessage(List<String> messages);
|
2018-02-11 00:59:21 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void sendFancyMessage(FancyMessage message);
|
2018-02-11 00:59:21 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void sendFancyMessage(List<FancyMessage> message);
|
2018-02-11 01:20:13 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
int getMapHeight();
|
2018-02-11 00:59:21 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setMapHeight(int height);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isOnlineAndVisibleTo(Player me);
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void remove();
|
2014-10-19 07:37:25 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isOffline();
|
2015-05-25 06:42:31 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isFlying();
|
2018-03-04 23:13:32 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setFlying(boolean fly);
|
2018-03-04 23:13:32 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setFFlying(boolean fly, boolean damage);
|
2018-03-04 23:13:32 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean canFlyAtLocation();
|
2018-03-04 23:13:32 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean canFlyAtLocation(FLocation location);
|
2018-03-04 23:13:32 +01:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isEnteringPassword();
|
2018-03-26 23:43:15 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setEnteringPassword(boolean toggle, String warp);
|
2018-03-26 23:43:15 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
String getEnteringWarp();
|
2018-03-26 23:43:15 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean checkIfNearbyEnemies();
|
2018-03-26 23:43:15 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
int getCooldown(String cmd);
|
2019-06-02 20:28:42 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void setCooldown(String cmd, long cooldown);
|
2019-06-02 20:28:42 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isCooldownEnded(String cmd);
|
2019-06-02 20:28:42 +02:00
|
|
|
|
2018-03-26 23:43:15 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
// -------------------------------
|
|
|
|
// Warmups
|
|
|
|
// -------------------------------
|
2015-05-25 06:42:31 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
boolean isWarmingUp();
|
2018-05-03 16:03:16 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
WarmUpUtil.Warmup getWarmupType();
|
2018-05-03 16:03:16 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void addWarmup(WarmUpUtil.Warmup warmup, int taskId);
|
2018-05-03 16:03:16 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void stopWarmup();
|
2018-05-03 16:03:16 +02:00
|
|
|
|
2019-09-15 11:15:33 +02:00
|
|
|
void clearWarmup();
|
2015-05-25 06:42:31 +02:00
|
|
|
|
|
|
|
|
2018-03-26 23:43:15 +02:00
|
|
|
}
|