├── release └── AquaCoreAPI.jar └── src └── main └── java └── me └── activated └── core ├── api ├── ServerData.java ├── events │ ├── AquaEvent.java │ └── impl │ │ ├── NameMCVerificationChangeEvent.java │ │ ├── PlayerDisguiseEvent.java │ │ ├── PlayerGrantEvent.java │ │ ├── PlayerOpChangeEvent.java │ │ ├── PlayerPunishEvent.java │ │ ├── PlayerReportEvent.java │ │ ├── PlayerUnDisguiseEvent.java │ │ ├── PlayerUnPunishEvent.java │ │ └── VanishUpdateEvent.java ├── player │ ├── GlobalPlayer.java │ ├── OfflinePunishData.java │ ├── PlayerData.java │ ├── PunishData.java │ └── alt │ │ └── Alt.java ├── punishment │ ├── Punishment.java │ └── PunishmentType.java ├── rank │ ├── RankData.java │ └── grant │ │ └── Grant.java └── tags │ └── Tag.java └── plugin └── AquaCoreAPI.java /release/AquaCoreAPI.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmtvc/AquaCoreAPI/842627d8f00ac77a4f233f5ded37b4aa04a7b414/release/AquaCoreAPI.jar -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/ServerData.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api; 2 | 3 | import me.activated.core.api.player.GlobalPlayer; 4 | import org.bukkit.plugin.IllegalPluginAccessException; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * This class is accessed from AquaCoreAPI 10 | */ 11 | public class ServerData { 12 | 13 | public String getServerName() { 14 | throw new IllegalPluginAccessException("API is not registered"); 15 | } 16 | 17 | public boolean isWhitelisted() { 18 | throw new IllegalPluginAccessException("API is not registered"); 19 | } 20 | 21 | public boolean isMaintenance() { 22 | throw new IllegalPluginAccessException("API is not registered"); 23 | } 24 | 25 | public int getMaxPlayers() { 26 | throw new IllegalPluginAccessException("API is not registered"); 27 | } 28 | 29 | public double[] getRecentTps() { 30 | throw new IllegalPluginAccessException("API is not registered"); 31 | } 32 | 33 | public List getOnlinePlayers() { 34 | throw new IllegalPluginAccessException("API is not registered"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/AquaEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events; 2 | 3 | import org.bukkit.event.*; 4 | import org.bukkit.plugin.*; 5 | 6 | public class AquaEvent extends Event { 7 | 8 | @Override 9 | public HandlerList getHandlers() { 10 | throw new IllegalPluginAccessException("API is not registered"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/NameMCVerificationChangeEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import me.activated.core.api.events.AquaEvent; 4 | import me.activated.core.api.player.PlayerData; 5 | import org.bukkit.plugin.IllegalPluginAccessException; 6 | 7 | /** 8 | * Event called whenever player likes your server on NameMC (NameMC is updating every 5 minutes per user) 9 | */ 10 | public class NameMCVerificationChangeEvent extends AquaEvent { 11 | 12 | private PlayerData playerData; 13 | private boolean finalLiked; 14 | 15 | public PlayerData getPlayerData() { 16 | throw new IllegalPluginAccessException("API is not registered"); 17 | } 18 | 19 | public boolean isFinalLiked() { 20 | throw new IllegalPluginAccessException("API is not registered"); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/PlayerDisguiseEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import me.activated.core.api.events.*; 4 | import org.bukkit.entity.*; 5 | import org.bukkit.plugin.*; 6 | 7 | /** 8 | * Created by FaceSlap_ 9 | * Created 15. 5. 2021. at 16:05 10 | */ 11 | public class PlayerDisguiseEvent extends AquaEvent { 12 | 13 | public Player getPlayer() { 14 | throw new IllegalPluginAccessException("API is not registered"); 15 | } 16 | 17 | public String getPreviousName() { 18 | throw new IllegalPluginAccessException("API is not registered"); 19 | } 20 | 21 | public String getCurrentName() { 22 | throw new IllegalPluginAccessException("API is not registered"); 23 | } 24 | 25 | public String getDisguisedRank() { 26 | throw new IllegalPluginAccessException("API is not registered"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/PlayerGrantEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import me.activated.core.api.events.AquaEvent; 4 | import me.activated.core.api.player.PlayerData; 5 | import me.activated.core.api.rank.grant.Grant; 6 | import org.bukkit.command.CommandSender; 7 | import org.bukkit.plugin.IllegalPluginAccessException; 8 | 9 | /** 10 | * Event called whenever player or console grants a rank 11 | */ 12 | public class PlayerGrantEvent extends AquaEvent { 13 | 14 | public Grant getGrant() { 15 | throw new IllegalPluginAccessException("API is not registered"); 16 | } 17 | 18 | public PlayerData getTargetData() { 19 | throw new IllegalPluginAccessException("API is not registered"); 20 | } 21 | 22 | public CommandSender getExecutor() { 23 | throw new IllegalPluginAccessException("API is not registered"); 24 | } 25 | 26 | public boolean isCancelled() { 27 | throw new IllegalPluginAccessException("API is not registered"); 28 | } 29 | 30 | public boolean setCancelled(boolean value) { 31 | throw new IllegalPluginAccessException("API is not registered"); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/PlayerOpChangeEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import me.activated.core.api.events.AquaEvent; 4 | import org.bukkit.entity.Player; 5 | import org.bukkit.plugin.IllegalPluginAccessException; 6 | 7 | /** 8 | * Event called whenever player gets access to operator ot gets access of operator removed 9 | */ 10 | public class PlayerOpChangeEvent extends AquaEvent { 11 | 12 | public Player getPlayer() { 13 | throw new IllegalPluginAccessException("API is not registered"); 14 | } 15 | 16 | public boolean isOped() { 17 | throw new IllegalPluginAccessException("API is not registered"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/PlayerPunishEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import me.activated.core.api.events.AquaEvent; 4 | import me.activated.core.api.player.OfflinePunishData; 5 | import me.activated.core.api.punishment.Punishment; 6 | import org.bukkit.plugin.IllegalPluginAccessException; 7 | 8 | /** 9 | * Event called whenever player or console tries to punish someone 10 | */ 11 | public class PlayerPunishEvent extends AquaEvent { 12 | 13 | public OfflinePunishData getData() { 14 | throw new IllegalPluginAccessException("API is not registered"); 15 | } 16 | 17 | public Punishment getPunishment() { 18 | throw new IllegalPluginAccessException("API is not registered"); 19 | } 20 | 21 | public boolean isCancelled() { 22 | throw new IllegalPluginAccessException("API is not registered"); 23 | } 24 | 25 | public boolean setCancelled(boolean value) { 26 | throw new IllegalPluginAccessException("API is not registered"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/PlayerReportEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import me.activated.core.api.events.AquaEvent; 4 | import me.activated.core.api.player.GlobalPlayer; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.plugin.IllegalPluginAccessException; 7 | 8 | /** 9 | * Event called whenever player tries to report global player [defined as getHacker()] 10 | */ 11 | public class PlayerReportEvent extends AquaEvent { 12 | 13 | public Player getPlayer() { 14 | throw new IllegalPluginAccessException("API is not registered"); 15 | } 16 | 17 | public GlobalPlayer getHacker() { 18 | throw new IllegalPluginAccessException("API is not registered"); 19 | } 20 | 21 | public String getReason() { 22 | throw new IllegalPluginAccessException("API is not registered"); 23 | } 24 | 25 | public boolean isCancelled() { 26 | throw new IllegalPluginAccessException("API is not registered"); 27 | } 28 | 29 | public boolean setCancelled(boolean value) { 30 | throw new IllegalPluginAccessException("API is not registered"); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/PlayerUnDisguiseEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import lombok.*; 4 | import me.activated.core.api.events.*; 5 | import org.bukkit.entity.*; 6 | import org.bukkit.plugin.*; 7 | 8 | /** 9 | * Created by FaceSlap_ 10 | * Created 15. 5. 2021. at 16:05 11 | */ 12 | public class PlayerUnDisguiseEvent extends AquaEvent { 13 | 14 | public Player getPlayer() { 15 | throw new IllegalPluginAccessException("API is not registered"); 16 | } 17 | 18 | public String getPreviousName() { 19 | throw new IllegalPluginAccessException("API is not registered"); 20 | } 21 | 22 | public String getCurrentName() { 23 | throw new IllegalPluginAccessException("API is not registered"); 24 | } 25 | 26 | public String getDisguisedRank() { 27 | throw new IllegalPluginAccessException("API is not registered"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/PlayerUnPunishEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import me.activated.core.api.events.AquaEvent; 4 | import me.activated.core.api.player.OfflinePunishData; 5 | import me.activated.core.api.punishment.Punishment; 6 | import org.bukkit.plugin.IllegalPluginAccessException; 7 | 8 | /** 9 | * Event called whenever player or console tries to un-punish someone 10 | */ 11 | public class PlayerUnPunishEvent extends AquaEvent { 12 | 13 | public OfflinePunishData getData() { 14 | throw new IllegalPluginAccessException("API is not registered"); 15 | } 16 | 17 | public Punishment getPunishment() { 18 | throw new IllegalPluginAccessException("API is not registered"); 19 | } 20 | 21 | public boolean isCancelled() { 22 | throw new IllegalPluginAccessException("API is not registered"); 23 | } 24 | 25 | public boolean setCancelled(boolean value) { 26 | throw new IllegalPluginAccessException("API is not registered"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/events/impl/VanishUpdateEvent.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.events.impl; 2 | 3 | import me.activated.core.api.events.AquaEvent; 4 | import org.bukkit.entity.Player; 5 | import org.bukkit.plugin.IllegalPluginAccessException; 6 | 7 | /** 8 | * Event called whenever a staff player execute vanish command 9 | */ 10 | public class VanishUpdateEvent extends AquaEvent { 11 | 12 | public Player getPlayer() { 13 | throw new IllegalPluginAccessException("API is not registered"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/player/GlobalPlayer.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.player; 2 | 3 | import org.bukkit.plugin.IllegalPluginAccessException; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * This class is accessed from AquaCoreAPI 9 | */ 10 | public class GlobalPlayer { 11 | 12 | public String getName() { 13 | throw new IllegalPluginAccessException("API is not registered"); 14 | } 15 | 16 | public String getAddress() { 17 | throw new IllegalPluginAccessException("API is not registered"); 18 | } 19 | 20 | public List getPermissions() { 21 | throw new IllegalPluginAccessException("API is not registered"); 22 | } 23 | 24 | public int getRankWeight() { 25 | throw new IllegalPluginAccessException("API is not registered"); 26 | } 27 | 28 | public int getPunishPriority() { 29 | throw new IllegalPluginAccessException("API is not registered"); 30 | } 31 | 32 | public int getVanishPriority() { 33 | throw new IllegalPluginAccessException("API is not registered"); 34 | } 35 | 36 | public boolean isStaffChatAlerts() { 37 | throw new IllegalPluginAccessException("API is not registered"); 38 | } 39 | 40 | public boolean isOp() { 41 | throw new IllegalPluginAccessException("API is not registered"); 42 | } 43 | 44 | public boolean hasPermission(String value) { 45 | throw new IllegalPluginAccessException("API is not registered"); 46 | } 47 | 48 | public boolean isAdminChatAlerts() { 49 | throw new IllegalPluginAccessException("API is not registered"); 50 | } 51 | 52 | public boolean isHelpopAlerts() { 53 | throw new IllegalPluginAccessException("API is not registered"); 54 | } 55 | 56 | public boolean isReportAlerts() { 57 | throw new IllegalPluginAccessException("API is not registered"); 58 | } 59 | 60 | public boolean isNameMCVerified() { 61 | throw new IllegalPluginAccessException("API is not registered"); 62 | } 63 | 64 | public String getRankName() { 65 | throw new IllegalPluginAccessException("API is not registered"); 66 | } 67 | 68 | public String getLastServer() { 69 | throw new IllegalPluginAccessException("API is not registered"); 70 | } 71 | 72 | public String getDisplayName() { 73 | throw new IllegalPluginAccessException("API is not registered"); 74 | } 75 | 76 | public void sendMessage(String message) { 77 | throw new IllegalPluginAccessException("API is not registered"); 78 | } 79 | 80 | public void sendClickableMessage(String message, String hover, String command) { 81 | throw new IllegalPluginAccessException("API is not registered"); 82 | } 83 | 84 | 85 | public void playSound(String sound) { 86 | throw new IllegalPluginAccessException("API is not registered"); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/player/OfflinePunishData.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.player; 2 | 3 | import me.activated.core.api.player.alt.Alt; 4 | import me.activated.core.api.punishment.Punishment; 5 | import org.bukkit.plugin.IllegalPluginAccessException; 6 | 7 | import java.util.List; 8 | import java.util.UUID; 9 | 10 | /** 11 | * This class can be initialized or accessed from other classes which already initialize it 12 | */ 13 | public class OfflinePunishData { 14 | 15 | public OfflinePunishData(String name) { 16 | throw new IllegalPluginAccessException("API is not registered"); 17 | } 18 | 19 | public List getPunishments() { 20 | throw new IllegalPluginAccessException("API is not registered"); 21 | } 22 | 23 | public List getAlts() { 24 | throw new IllegalPluginAccessException("API is not registered"); 25 | } 26 | 27 | public int getPunishPriority() { 28 | throw new IllegalPluginAccessException("API is not registered"); 29 | } 30 | 31 | public OfflinePunishData load() { 32 | throw new IllegalPluginAccessException("API is not registered"); 33 | } 34 | 35 | public OfflinePunishData load(boolean activeOnly) { 36 | throw new IllegalPluginAccessException("API is not registered"); 37 | } 38 | 39 | public Alt getAlt(UUID uuid) { 40 | throw new IllegalPluginAccessException("API is not registered"); 41 | } 42 | 43 | public OfflinePunishData loadAlts() { 44 | throw new IllegalPluginAccessException("API is not registered"); 45 | } 46 | 47 | public boolean isBanned() { 48 | throw new IllegalPluginAccessException("API is not registered"); 49 | } 50 | 51 | public boolean isIPBanned() { 52 | throw new IllegalPluginAccessException("API is not registered"); 53 | } 54 | 55 | public boolean isBlacklisted() { 56 | throw new IllegalPluginAccessException("API is not registered"); 57 | } 58 | 59 | public boolean isWarned() { 60 | throw new IllegalPluginAccessException("API is not registered"); 61 | } 62 | 63 | public boolean isMuted() { 64 | throw new IllegalPluginAccessException("API is not registered"); 65 | } 66 | 67 | public Punishment getActiveBan() { 68 | throw new IllegalPluginAccessException("API is not registered"); 69 | } 70 | 71 | public Punishment getActiveMute() { 72 | throw new IllegalPluginAccessException("API is not registered"); 73 | } 74 | 75 | public Punishment getActiveBlacklist() { 76 | throw new IllegalPluginAccessException("API is not registered"); 77 | } 78 | } -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/player/PlayerData.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.player; 2 | 3 | import lombok.NonNull; 4 | import me.activated.core.api.rank.RankData; 5 | import me.activated.core.api.rank.grant.Grant; 6 | import me.activated.core.api.tags.Tag; 7 | import org.bukkit.ChatColor; 8 | import org.bukkit.entity.Player; 9 | import org.bukkit.plugin.IllegalPluginAccessException; 10 | 11 | import java.util.List; 12 | 13 | /** 14 | * This class is accessed from AquaCoreAPI 15 | */ 16 | public class PlayerData { 17 | 18 | public boolean hasPermission(String permission) { 19 | throw new IllegalPluginAccessException("API is not registered"); 20 | } 21 | 22 | public boolean hasDefaultGrant() { 23 | throw new IllegalPluginAccessException("API is not registered"); 24 | } 25 | 26 | public void loadAttachments(Player player) { 27 | throw new IllegalPluginAccessException("API is not registered"); 28 | } 29 | 30 | public List getActiveGrants() { 31 | throw new IllegalPluginAccessException("API is not registered"); 32 | } 33 | 34 | public boolean hasRank(RankData rankData) { 35 | throw new IllegalPluginAccessException("API is not registered"); 36 | } 37 | 38 | @NonNull 39 | public RankData getHighestRank() { 40 | throw new IllegalPluginAccessException("API is not registered"); 41 | } 42 | 43 | public String getLastSeenAgo() { 44 | throw new IllegalPluginAccessException("API is not registered"); 45 | } 46 | 47 | public String getNameColor() { 48 | throw new IllegalPluginAccessException("API is not registered"); 49 | } 50 | 51 | public Tag getTag() { 52 | throw new IllegalPluginAccessException("API is not registered"); 53 | } 54 | 55 | public int getCoins() { 56 | throw new IllegalPluginAccessException("API is not registered"); 57 | } 58 | 59 | public void setCoins(int amount) { 60 | throw new IllegalPluginAccessException("API is not registered"); 61 | } 62 | 63 | public void addCoins(int amount) { 64 | throw new IllegalPluginAccessException("API is not registered"); 65 | } 66 | 67 | public void removeCoins(int amount) { 68 | throw new IllegalPluginAccessException("API is not registered"); 69 | } 70 | 71 | public String getTagColor() { 72 | throw new IllegalPluginAccessException("API is not registered"); 73 | } 74 | 75 | public ChatColor getChatColor() { 76 | throw new IllegalPluginAccessException("API is not registered"); 77 | } 78 | 79 | public boolean isNameTag() { 80 | throw new IllegalPluginAccessException("API is not registered"); 81 | } 82 | 83 | public void setNameTag(boolean value) { 84 | throw new IllegalPluginAccessException("API is not registered"); 85 | } 86 | 87 | public boolean isVanished() { 88 | throw new IllegalPluginAccessException("API is not registered"); 89 | } 90 | 91 | public boolean isInStaffMode() { 92 | throw new IllegalPluginAccessException("API is not registered"); 93 | } 94 | 95 | public PunishData getPunishData() { 96 | throw new IllegalPluginAccessException("API is not registered"); 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/player/PunishData.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.player; 2 | 3 | import me.activated.core.api.punishment.Punishment; 4 | import me.activated.core.api.punishment.PunishmentType; 5 | import org.bukkit.plugin.IllegalPluginAccessException; 6 | 7 | import java.util.List; 8 | import java.util.Set; 9 | 10 | /** 11 | * This class is accessed from PlayerData 12 | */ 13 | public class PunishData { 14 | 15 | public Set getPunishments() { 16 | throw new IllegalPluginAccessException("API is not registered"); 17 | } 18 | 19 | public boolean isBanned() { 20 | throw new IllegalPluginAccessException("API is not registered"); 21 | } 22 | 23 | public boolean isIPBanned() { 24 | throw new IllegalPluginAccessException("API is not registered"); 25 | } 26 | 27 | public boolean isBlacklisted() { 28 | throw new IllegalPluginAccessException("API is not registered"); 29 | } 30 | 31 | public boolean isWarned() { 32 | throw new IllegalPluginAccessException("API is not registered"); 33 | } 34 | 35 | public boolean isMuted() { 36 | throw new IllegalPluginAccessException("API is not registered"); 37 | } 38 | 39 | public Punishment getActiveBan() { 40 | throw new IllegalPluginAccessException("API is not registered"); 41 | } 42 | 43 | public Punishment getActiveMute() { 44 | throw new IllegalPluginAccessException("API is not registered"); 45 | } 46 | 47 | public Punishment getActiveBlacklist() { 48 | throw new IllegalPluginAccessException("API is not registered"); 49 | } 50 | 51 | public List getPunishments(PunishmentType type) { 52 | throw new IllegalPluginAccessException("API is not registered"); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/player/alt/Alt.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.player.alt; 2 | 3 | import org.bukkit.ChatColor; 4 | import org.bukkit.plugin.IllegalPluginAccessException; 5 | 6 | import java.util.UUID; 7 | 8 | public class Alt { 9 | 10 | public String getName() { 11 | throw new IllegalPluginAccessException("API is not registered"); 12 | } 13 | 14 | public UUID getUniqueId() { 15 | throw new IllegalPluginAccessException("API is not registered"); 16 | } 17 | 18 | public String getDisplayName() { 19 | throw new IllegalPluginAccessException("API is not registered"); 20 | } 21 | 22 | public ChatColor getNameColor() { 23 | throw new IllegalPluginAccessException("API is not registered"); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/punishment/Punishment.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.punishment; 2 | 3 | import org.bukkit.plugin.IllegalPluginAccessException; 4 | 5 | /** 6 | * This class is accessed from PunishData 7 | */ 8 | public class Punishment { 9 | 10 | public PunishmentType getType() { 11 | throw new IllegalPluginAccessException("API is not registered"); 12 | } 13 | 14 | public boolean isClear() { 15 | throw new IllegalPluginAccessException("API is not registered"); 16 | } 17 | 18 | public boolean isSilent() { 19 | throw new IllegalPluginAccessException("API is not registered"); 20 | } 21 | 22 | public String getAddedBy() { 23 | throw new IllegalPluginAccessException("API is not registered"); 24 | } 25 | 26 | public boolean isIPRelative() { 27 | throw new IllegalPluginAccessException("API is not registered"); 28 | } 29 | 30 | public String getRemovedFor() { 31 | throw new IllegalPluginAccessException("API is not registered"); 32 | } 33 | 34 | public String getRemovedBy() { 35 | throw new IllegalPluginAccessException("API is not registered"); 36 | } 37 | 38 | public String getReason() { 39 | throw new IllegalPluginAccessException("API is not registered"); 40 | } 41 | 42 | public String getNiceDuration() { 43 | throw new IllegalPluginAccessException("API is not registered"); 44 | } 45 | 46 | public String getNiceExpire() { 47 | throw new IllegalPluginAccessException("API is not registered"); 48 | } 49 | 50 | public boolean isPermanent() { 51 | throw new IllegalPluginAccessException("API is not registered"); 52 | } 53 | 54 | public boolean hasExpired() { 55 | throw new IllegalPluginAccessException("API is not registered"); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/punishment/PunishmentType.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.punishment; 2 | 3 | public enum PunishmentType { 4 | 5 | BAN, BLACKLIST, 6 | MUTE, 7 | KICK, 8 | WARN; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/rank/RankData.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.rank; 2 | 3 | import org.bukkit.ChatColor; 4 | import org.bukkit.plugin.IllegalPluginAccessException; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * This class is accessed from PlayerData or AquaCoreAPI 10 | */ 11 | public class RankData { 12 | 13 | public ChatColor getColor() { 14 | throw new IllegalPluginAccessException("API is not registered"); 15 | } 16 | 17 | public boolean isGlobal() { 18 | throw new IllegalPluginAccessException("API is not registered"); 19 | } 20 | 21 | public boolean isBungee() { 22 | throw new IllegalPluginAccessException("API is not registered"); 23 | } 24 | 25 | public boolean isDefaultRank() { 26 | throw new IllegalPluginAccessException("API is not registered"); 27 | } 28 | 29 | public boolean isPurchasable() { 30 | throw new IllegalPluginAccessException("API is not registered"); 31 | } 32 | 33 | public List getServers() { 34 | throw new IllegalPluginAccessException("API is not registered"); 35 | } 36 | 37 | public List getBungeePermissions() { 38 | throw new IllegalPluginAccessException("API is not registered"); 39 | } 40 | 41 | public List getAllPermissions() { 42 | throw new IllegalPluginAccessException("API is not registered"); 43 | } 44 | 45 | public List getAvailablePermissions() { 46 | throw new IllegalPluginAccessException("API is not registered"); 47 | } 48 | 49 | public String getPrefix() { 50 | throw new IllegalPluginAccessException("API is not registered"); 51 | } 52 | 53 | public String getSuffix() { 54 | throw new IllegalPluginAccessException("API is not registered"); 55 | } 56 | 57 | public String getName() { 58 | throw new IllegalPluginAccessException("API is not registered"); 59 | } 60 | 61 | public boolean hasPermission(String value) { 62 | throw new IllegalPluginAccessException("API is not registered"); 63 | } 64 | 65 | public boolean hasInheritance(String value) { 66 | throw new IllegalPluginAccessException("API is not registered"); 67 | } 68 | 69 | public String getDisplayName() { 70 | throw new IllegalPluginAccessException("API is not registered"); 71 | } 72 | 73 | public ChatColor getChatColor() { 74 | throw new IllegalPluginAccessException("API is not registered"); 75 | } 76 | 77 | public int getWeight() { 78 | throw new IllegalPluginAccessException("API is not registered"); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/rank/grant/Grant.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.rank.grant; 2 | 3 | 4 | import me.activated.core.api.rank.RankData; 5 | import org.bukkit.plugin.IllegalPluginAccessException; 6 | 7 | /** 8 | * This class is accessed from PlayerData 9 | */ 10 | public class Grant { 11 | 12 | public boolean hasExpired() { 13 | throw new IllegalPluginAccessException("API is not registered"); 14 | } 15 | 16 | public boolean isActiveSomewhere() { 17 | throw new IllegalPluginAccessException("API is not registered"); 18 | } 19 | 20 | public boolean isPermanent() { 21 | throw new IllegalPluginAccessException("API is not registered"); 22 | } 23 | 24 | /*If server is "Global", grant is global*/ 25 | public String getServer() { 26 | throw new IllegalPluginAccessException("API is not registered"); 27 | } 28 | 29 | public String getNiceDuration() { 30 | throw new IllegalPluginAccessException("API is not registered"); 31 | } 32 | 33 | public String getNiceExpire() { 34 | throw new IllegalPluginAccessException("API is not registered"); 35 | } 36 | 37 | public RankData getRank() { 38 | throw new IllegalPluginAccessException("API is not registered"); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/api/tags/Tag.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.api.tags; 2 | 3 | import org.bukkit.ChatColor; 4 | import org.bukkit.plugin.IllegalPluginAccessException; 5 | 6 | /** 7 | * This class is accessed from PlayerData or AquaCoreAPI 8 | */ 9 | public class Tag { 10 | 11 | public String getName() { 12 | throw new IllegalPluginAccessException("API is not registered"); 13 | } 14 | 15 | public String getPrefix() { 16 | throw new IllegalPluginAccessException("API is not registered"); 17 | } 18 | 19 | public ChatColor getColor() { 20 | throw new IllegalPluginAccessException("API is not registered"); 21 | } 22 | 23 | public int getWeight() { 24 | throw new IllegalPluginAccessException("API is not registered"); 25 | } 26 | 27 | public String getFormat() { 28 | throw new IllegalPluginAccessException("API is not registered"); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/me/activated/core/plugin/AquaCoreAPI.java: -------------------------------------------------------------------------------- 1 | package me.activated.core.plugin; 2 | 3 | import me.activated.core.api.ServerData; 4 | import me.activated.core.api.player.GlobalPlayer; 5 | import me.activated.core.api.player.PlayerData; 6 | import me.activated.core.api.rank.RankData; 7 | import me.activated.core.api.rank.grant.Grant; 8 | import me.activated.core.api.tags.Tag; 9 | import org.bukkit.ChatColor; 10 | import org.bukkit.entity.Player; 11 | import org.bukkit.plugin.IllegalPluginAccessException; 12 | 13 | import java.util.List; 14 | import java.util.UUID; 15 | 16 | public class AquaCoreAPI { 17 | 18 | public static AquaCoreAPI INSTANCE; 19 | 20 | public static boolean isRegistered() { 21 | throw new IllegalPluginAccessException("API is not registered"); 22 | } 23 | 24 | public PlayerData getPlayerData(UUID uuid) { 25 | throw new IllegalPluginAccessException("API is not registered"); 26 | } 27 | 28 | public ChatColor getPlayerNameColor(UUID uuid) { 29 | throw new IllegalPluginAccessException("API is not registered"); 30 | } 31 | 32 | public RankData getPlayerRank(UUID uuid) { 33 | throw new IllegalPluginAccessException("API is not registered"); 34 | } 35 | 36 | public RankData getRankByName(String name) { 37 | throw new IllegalPluginAccessException("API is not registered"); 38 | } 39 | 40 | public List getActiveGrants(UUID uuid) { 41 | throw new IllegalPluginAccessException("API is not registered"); 42 | } 43 | 44 | public List getAllGrants(UUID uuid) { 45 | throw new IllegalPluginAccessException("API is not registered"); 46 | } 47 | 48 | public Tag getTag(UUID uuid) { 49 | throw new IllegalPluginAccessException("API is not registered"); 50 | } 51 | 52 | public ServerData getServerData(String server) { 53 | throw new IllegalPluginAccessException("API is not registered"); 54 | } 55 | 56 | public boolean hasTag(Player player, Tag tag) { 57 | throw new IllegalPluginAccessException("API is not registered"); 58 | } 59 | 60 | public String getTagFormat(Player player) { 61 | throw new IllegalPluginAccessException("API is not registered"); 62 | } 63 | 64 | public void vanishPlayer(Player player) { 65 | throw new IllegalPluginAccessException("API is not registered"); 66 | } 67 | 68 | public void vanishPlayerFor(Player player, Player target) { 69 | throw new IllegalPluginAccessException("API is not registered"); 70 | } 71 | 72 | public GlobalPlayer getGlobalPlayer(UUID uuid) { 73 | throw new IllegalPluginAccessException("API is not registered"); 74 | } 75 | 76 | public GlobalPlayer getGlobalPlayer(String name) { 77 | throw new IllegalPluginAccessException("API is not registered"); 78 | } 79 | 80 | public int getVanishPriority(Player player) { 81 | throw new IllegalPluginAccessException("API is not registered"); 82 | } 83 | 84 | public void enableStaffMode(Player player) { 85 | throw new IllegalPluginAccessException("API is not registered"); 86 | } 87 | 88 | public void disableStaffMode(Player player) { 89 | throw new IllegalPluginAccessException("API is not registered"); 90 | } 91 | 92 | public boolean isStaffChat(Player player) { 93 | throw new IllegalPluginAccessException("API is not registered"); 94 | } 95 | 96 | public boolean isAdminChat(Player player) { 97 | throw new IllegalPluginAccessException("API is not registered"); 98 | } 99 | 100 | public boolean isDisguised(Player player) { 101 | throw new IllegalPluginAccessException("API is not registered"); 102 | } 103 | 104 | public List getGlobalPlayers() { 105 | throw new IllegalPluginAccessException("API is not registered"); 106 | } 107 | 108 | public String getRealName(Player player) { 109 | throw new IllegalPluginAccessException("API is not registered"); 110 | } 111 | } 112 | --------------------------------------------------------------------------------