diff options
Diffstat (limited to 'Essentials/src/net/ess3/api/IUser.java')
-rw-r--r-- | Essentials/src/net/ess3/api/IUser.java | 243 |
1 files changed, 242 insertions, 1 deletions
diff --git a/Essentials/src/net/ess3/api/IUser.java b/Essentials/src/net/ess3/api/IUser.java index 007290a0c..64d22e0c2 100644 --- a/Essentials/src/net/ess3/api/IUser.java +++ b/Essentials/src/net/ess3/api/IUser.java @@ -28,113 +28,354 @@ public interface IUser extends OfflinePlayer, CommandSender, IStorageObjectHolde */ void takeMoney(double value); + /** + * + * @param value + * @param initiator + */ void takeMoney(double value, CommandSender initiator); + /** + * + * @param value + */ void giveMoney(double value); + /** + * + * @param value + * @param initiator + */ void giveMoney(double value, CommandSender initiator); + /** + * + * @param itemStack + * @param canSpew + * @throws ChargeException + */ void giveItems(ItemStack itemStack, Boolean canSpew) throws ChargeException; + /** + * + * @param itemStacks + * @param canSpew + * @throws ChargeException + */ void giveItems(List<ItemStack> itemStacks, Boolean canSpew) throws ChargeException; + /** + * + * @param value + */ void setMoney(double value); + /** + * + * @param receiver + * @param value + * @throws Exception + */ void payUser(final IUser receiver, final double value) throws Exception; + /** + * + */ void setLastLocation(); + /** + * + * @param name + * @return + * @throws Exception + */ Location getHome(String name) throws Exception; + /** + * + * @param loc + * @return + */ Location getHome(Location loc); - //boolean isHidden(); TODO: implement this? + /** + * + * @return + */ + boolean isHidden(); //TODO: implement this? + + /** + * + * @return + */ ITeleport getTeleport(); + /** + * + * @param cooldownType + * @param cooldown + * @param set + * @param bypassPermission + * @throws CooldownException + */ void checkCooldown(UserData.TimestampType cooldownType, double cooldown, boolean set, IPermission bypassPermission) throws CooldownException; + /** + * + * @return + */ boolean toggleAfk(); + /** + * + * @param broadcast + */ void updateActivity(boolean broadcast); + /** + * + */ void updateDisplayName(); + /** + * + */ void setDisplayNick(); + /** + * + * @param currentTime + * @return + */ boolean checkJailTimeout(long currentTime); + /** + * + * @param currentTime + * @return + */ boolean checkMuteTimeout(long currentTime); + /** + * + * @param currentTime + * @return + */ boolean checkBanTimeout(long currentTime); + /** + * + * @param name + * @return + */ long getTimestamp(UserData.TimestampType name); + /** + * + * @param name + * @param value + */ void setTimestamp(UserData.TimestampType name, long value); + /** + * + * @param currentTime + */ void setLastOnlineActivity(long currentTime); + /** + * + */ void checkActivity(); + /** + * + * @return + */ long getLastOnlineActivity(); + /** + * + * @return + */ boolean isGodModeEnabled(); + /** + * + * @param user + * @return + */ boolean isIgnoringPlayer(IUser user); + /** + * + * @param user + * @param set + */ void setIgnoredPlayer(IUser user, boolean set); + /** + * + * @return + */ Location getAfkPosition(); + /** + * + */ void updateCompass(); + /** + * + * @return + */ Set<String> getHomes(); + /** + * + * @param string + */ void addMail(String string); + /** + * + * @param mute + */ void setMuted(boolean mute); + /** + * + * @param user + * @param b + */ void requestTeleport(IUser user, boolean b); + /** + * + * @return + */ boolean isTpRequestHere(); + /** + * + * @return + */ IUser getTeleportRequester(); + /** + * + * @return + */ long getTeleportRequestTime(); + /** + * + * @return + */ boolean gotMailInfo(); + /** + * + * @return + */ List<String> getMails(); + /** + * + * @param money + * @return + */ boolean canAfford(double money); + /** + * + * @param userMoney + */ void updateMoneyCache(double userMoney); + /** + * + * @param amount + * @param b + * @return + */ boolean canAfford(double amount, boolean b); + /** + * + * @return + */ boolean isVanished(); + /** + * + */ void resetInvulnerabilityAfterTeleport(); + /** + * + */ void toggleVanished(); + /** + * + * @return + */ boolean isInvSee(); + /** + * + * @param invsee + */ void setInvSee(boolean invsee); + /** + * + * @return + */ boolean isEnderSee(); + /** + * + * @param endersee + */ void setEnderSee(boolean endersee); + /** + * + * @return + */ boolean hasInvulnerabilityAfterTeleport(); + /** + * + * @param set + */ void setGodModeEnabled(boolean set); + /** + * + * @param set + */ void setVanished(boolean set); + /** + * + * @param throttle + * @return + */ boolean checkSignThrottle(int throttle); + /** + * + * @return + */ boolean isRecipeSee(); + /** + * + * @param recipeSee + */ void setRecipeSee(boolean recipeSee); /** |