Search in sources :

Example 1 with PartyInvite

use of com.alessiodp.parties.api.interfaces.PartyInvite in project Parties by AlessioDP.

the class CommandInvite method onCommand.

@Override
public void onCommand(@NotNull CommandData commandData) {
    User sender = commandData.getSender();
    PartyPlayerImpl partyPlayer = ((PartiesCommandData) commandData).getPartyPlayer();
    PartyImpl party = ((PartiesCommandData) commandData).getParty();
    // Command handling
    User invitedPlayer = plugin.getPlayerByName(commandData.getArgs()[1]);
    if (invitedPlayer == null) {
        sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_PLAYEROFFLINE);
        return;
    }
    PartyPlayerImpl invitedPartyPlayer = getPlugin().getPlayerManager().getPlayer(invitedPlayer.getUUID());
    if (invitedPartyPlayer.isVanished()) {
        sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_PLAYEROFFLINE);
        return;
    }
    if (invitedPartyPlayer.getPlayerUUID().equals(sender.getUUID())) {
        sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_INVITE_YOURSELF);
        return;
    }
    if (invitedPartyPlayer.isInParty()) {
        sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_PLAYERINPARTY, invitedPartyPlayer);
        return;
    }
    if (ConfigParties.GENERAL_INVITE_PREVENTINVITEPERM && // Check if the user is inside the network (skip if Redis)
    invitedPlayer.isInsideNetwork() && !invitedPlayer.hasPermission(PartiesPermission.USER_ACCEPT)) {
        sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_PLAYERNOPERM, invitedPartyPlayer);
        return;
    }
    // Check for party, create one if option enabled
    if (party == null) {
        if (ConfigParties.GENERAL_INVITE_AUTO_CREATE_PARTY_UPON_INVITE && ConfigParties.GENERAL_NAME_DYNAMIC_ENABLE) {
            String partyName = CommandCreate.generateDynamicName(getPlugin(), partyPlayer);
            party = CommandCreate.createParty((PartiesPlugin) plugin, this, sender, partyPlayer, partyName, false);
            if (party == null || party.isFixed()) {
                sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_FAILED, invitedPartyPlayer);
                return;
            }
        } else {
            sendMessage(sender, partyPlayer, Messages.PARTIES_COMMON_NOTINPARTY);
            return;
        }
    }
    if (invitedPartyPlayer.getIgnoredParties().contains(party.getId())) {
        // Invited player ignoring the party, fake sent
        sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_SENT, invitedPartyPlayer);
        return;
    }
    if (invitedPartyPlayer.isMuted() && ConfigMain.ADDITIONAL_MUTE_ENABLE && ConfigMain.ADDITIONAL_MUTE_BLOCK_INVITE) {
        // Invited player has disabled notifications, fake sent
        sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_SENT, invitedPartyPlayer);
        return;
    }
    boolean isRevoke = false;
    final PartyImpl finalParty = party;
    Optional<PartyInvite> revokeInvite = invitedPartyPlayer.getPendingInvites().stream().filter(pv -> pv.getParty().getId().equals(finalParty.getId())).findAny();
    if (revokeInvite.isPresent()) {
        isRevoke = true;
        if (!ConfigParties.GENERAL_INVITE_REVOKE) {
            sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_ALREADYINVITED, invitedPartyPlayer);
            return;
        }
    }
    boolean mustStartCooldown = false;
    if (!isRevoke && ConfigParties.GENERAL_INVITE_COOLDOWN_ENABLE && !commandData.havePermission(PartiesPermission.ADMIN_COOLDOWN_INVITE_BYPASS)) {
        // Check invited player cooldown
        RequestCooldown inviteAfterLeaveCooldown = getPlugin().getCooldownManager().canMultiAction(CooldownManager.MultiAction.INVITE_AFTER_LEAVE, invitedPlayer.getUUID(), party.getId());
        if (inviteAfterLeaveCooldown != null) {
            sendMessage(sender, partyPlayer, Messages.MAINCMD_INVITE_COOLDOWN_ON_LEAVE.replace("%seconds%", String.valueOf(inviteAfterLeaveCooldown.getWaitTime())));
            return;
        }
        // Check invite cooldown
        mustStartCooldown = true;
        RequestCooldown inviteCooldown = getPlugin().getCooldownManager().canMultiAction(CooldownManager.MultiAction.INVITE, partyPlayer.getPlayerUUID(), invitedPlayer.getUUID());
        if (inviteCooldown != null) {
            sendMessage(sender, partyPlayer, (inviteCooldown.isGlobal() ? Messages.MAINCMD_INVITE_COOLDOWN_GLOBAL : Messages.MAINCMD_INVITE_COOLDOWN_INDIVIDUAL).replace("%seconds%", String.valueOf(inviteCooldown.getCooldown() - inviteCooldown.getDiffTime())));
            return;
        }
    }
    // Command starts
    if (isRevoke) {
        // Revoke invite
        revokeInvite.get().revoke();
    } else {
        // Send invite
        party.invitePlayer(invitedPartyPlayer, partyPlayer);
        if (mustStartCooldown) {
            getPlugin().getCooldownManager().startMultiAction(CooldownManager.MultiAction.INVITE, partyPlayer.getPlayerUUID(), null, ConfigParties.GENERAL_INVITE_COOLDOWN_GLOBAL);
            getPlugin().getCooldownManager().startMultiAction(CooldownManager.MultiAction.INVITE, partyPlayer.getPlayerUUID(), invitedPartyPlayer.getPlayerUUID(), ConfigParties.GENERAL_INVITE_COOLDOWN_INDIVIDUAL);
        }
    }
    plugin.getLoggerManager().logDebug(String.format(PartiesConstants.DEBUG_CMD_INVITE, partyPlayer.getName(), invitedPartyPlayer.getName(), party.getName() != null ? party.getName() : party.getId(), isRevoke), true);
}
Also used : CooldownManager(com.alessiodp.parties.common.parties.CooldownManager) PartiesPlugin(com.alessiodp.parties.common.PartiesPlugin) PartiesPermission(com.alessiodp.parties.common.utils.PartiesPermission) CommandData(com.alessiodp.core.common.commands.utils.CommandData) Messages(com.alessiodp.parties.common.configuration.data.Messages) PartyPlayerImpl(com.alessiodp.parties.common.players.objects.PartyPlayerImpl) ConfigParties(com.alessiodp.parties.common.configuration.data.ConfigParties) CommonCommands(com.alessiodp.parties.common.commands.list.CommonCommands) PartiesCommandData(com.alessiodp.parties.common.commands.utils.PartiesCommandData) List(java.util.List) ConfigMain(com.alessiodp.parties.common.configuration.data.ConfigMain) PartyImpl(com.alessiodp.parties.common.parties.objects.PartyImpl) ADPMainCommand(com.alessiodp.core.common.commands.utils.ADPMainCommand) PartiesConstants(com.alessiodp.parties.common.configuration.PartiesConstants) Optional(java.util.Optional) User(com.alessiodp.core.common.user.User) RequestCooldown(com.alessiodp.parties.common.players.objects.RequestCooldown) NotNull(org.jetbrains.annotations.NotNull) RankPermission(com.alessiodp.parties.common.utils.RankPermission) ADPPlugin(com.alessiodp.core.common.ADPPlugin) PartyInvite(com.alessiodp.parties.api.interfaces.PartyInvite) PartiesSubCommand(com.alessiodp.parties.common.commands.utils.PartiesSubCommand) User(com.alessiodp.core.common.user.User) PartyPlayerImpl(com.alessiodp.parties.common.players.objects.PartyPlayerImpl) PartiesCommandData(com.alessiodp.parties.common.commands.utils.PartiesCommandData) PartiesPlugin(com.alessiodp.parties.common.PartiesPlugin) PartyInvite(com.alessiodp.parties.api.interfaces.PartyInvite) RequestCooldown(com.alessiodp.parties.common.players.objects.RequestCooldown) PartyImpl(com.alessiodp.parties.common.parties.objects.PartyImpl)

Example 2 with PartyInvite

use of com.alessiodp.parties.api.interfaces.PartyInvite in project Parties by AlessioDP.

the class CommandDeny method onCommand.

@Override
public void onCommand(@NotNull CommandData commandData) {
    User sender = commandData.getSender();
    PartyPlayerImpl partyPlayer = ((PartiesCommandData) commandData).getPartyPlayer();
    // Command handling
    if (partyPlayer.isInParty()) {
        boolean noPendingRequests = false;
        if (ConfigParties.ADDITIONAL_ASK_ENABLE) {
            // Deny ask request
            PartyImpl party = ((PartiesCommandData) commandData).getParty();
            HashMap<String, PartyAskRequest> pendingAskRequests = new HashMap<>();
            party.getAskRequests().forEach(pv -> pendingAskRequests.put(CommonUtils.toLowerCase(pv.getAsker().getName()), pv));
            if (commandData.getArgs().length > 1 && !pendingAskRequests.containsKey(CommonUtils.toLowerCase(commandData.getArgs()[1]))) {
                noPendingRequests = true;
            } else {
                PartyAskRequest partyAskRequest = null;
                if (pendingAskRequests.size() > 0) {
                    if (pendingAskRequests.size() == 1) {
                        partyAskRequest = pendingAskRequests.values().iterator().next();
                    } else if (commandData.getArgs().length > 1) {
                        partyAskRequest = pendingAskRequests.get(CommonUtils.toLowerCase(commandData.getArgs()[1]));
                    } else {
                        // Missing player
                        sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_MULTIPLEREQUESTS);
                        for (Map.Entry<String, PartyAskRequest> entry : pendingAskRequests.entrySet()) {
                            sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_MULTIPLEREQUESTS_PLAYER.replace("%player%", entry.getValue().getAsker().getName()), (PartyImpl) entry.getValue().getParty());
                        }
                        return;
                    }
                } else {
                    noPendingRequests = true;
                }
                if (partyAskRequest != null) {
                    // Command starts
                    partyAskRequest.deny(partyPlayer);
                    plugin.getLoggerManager().logDebug(String.format(PartiesConstants.DEBUG_CMD_DENY_ASK, partyPlayer.getName(), partyAskRequest.getAsker().getName(), partyAskRequest.getParty().getName() != null ? partyAskRequest.getParty().getName() : "_"), true);
                    return;
                }
            }
        }
        if (ConfigParties.ADDITIONAL_TELEPORT_ENABLE && ConfigParties.ADDITIONAL_TELEPORT_ACCEPT_REQUEST_ENABLE) {
            // Accept teleport request
            HashMap<String, PartyTeleportRequest> pendingTeleportRequests = new HashMap<>();
            partyPlayer.getPendingTeleportRequests().forEach(pv -> pendingTeleportRequests.put(CommonUtils.toLowerCase(pv.getRequester().getName()), pv));
            if (commandData.getArgs().length > 1 && !pendingTeleportRequests.containsKey(CommonUtils.toLowerCase(commandData.getArgs()[1]))) {
                noPendingRequests = true;
            } else {
                PartyTeleportRequest partyTeleportRequest = null;
                if (pendingTeleportRequests.size() > 0) {
                    if (pendingTeleportRequests.size() == 1) {
                        partyTeleportRequest = pendingTeleportRequests.values().iterator().next();
                    } else if (commandData.getArgs().length > 1) {
                        partyTeleportRequest = pendingTeleportRequests.get(CommonUtils.toLowerCase(commandData.getArgs()[1]));
                    } else {
                        // Missing player
                        sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_MULTIPLEREQUESTS);
                        for (Map.Entry<String, PartyTeleportRequest> entry : pendingTeleportRequests.entrySet()) {
                            sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_MULTIPLEREQUESTS_PLAYER.replace("%player%", entry.getValue().getRequester().getName()));
                        }
                        return;
                    }
                } else {
                    noPendingRequests = true;
                }
                if (partyTeleportRequest != null) {
                    // Command starts
                    partyTeleportRequest.deny();
                    plugin.getLoggerManager().logDebug(String.format(PartiesConstants.DEBUG_CMD_DENY_TELEPORT, partyPlayer.getName(), partyTeleportRequest.getRequester().getName()), true);
                    return;
                }
            }
        }
        if (noPendingRequests) {
            if (commandData.getArgs().length > 1) {
                sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_NOEXISTS);
            } else {
                sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_NOREQUEST);
            }
            return;
        }
        // No ask and no teleport - already in party
        sendMessage(sender, partyPlayer, Messages.PARTIES_COMMON_ALREADYINPARTY);
    } else {
        // Deny invite request
        HashMap<String, PartyInvite> pendingInvites = new HashMap<>();
        partyPlayer.getPendingInvites().stream().filter(pv -> pv.getParty().getName() != null).forEach(pv -> pendingInvites.put(CommonUtils.toLowerCase(pv.getParty().getName()), pv));
        if (commandData.getArgs().length > 1 && !pendingInvites.containsKey(CommonUtils.toLowerCase(commandData.getArgs()[1]))) {
            sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_NOEXISTS);
            return;
        }
        PartyInvite partyInvite;
        if (pendingInvites.size() > 0) {
            if (pendingInvites.size() == 1) {
                partyInvite = pendingInvites.values().iterator().next();
            } else if (commandData.getArgs().length > 1) {
                partyInvite = pendingInvites.get(CommonUtils.toLowerCase(commandData.getArgs()[1]));
            } else {
                // Missing party
                sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_MULTIPLEREQUESTS);
                for (Map.Entry<String, PartyInvite> entry : pendingInvites.entrySet()) {
                    sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_MULTIPLEREQUESTS_PARTY.replace("%party%", entry.getKey()), (PartyImpl) entry.getValue().getParty());
                }
                return;
            }
        } else {
            sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_NOREQUEST);
            return;
        }
        if (partyInvite == null) {
            sendMessage(sender, partyPlayer, Messages.MAINCMD_DENY_NOEXISTS);
            return;
        }
        // Command starts
        partyInvite.deny();
        plugin.getLoggerManager().logDebug(String.format(PartiesConstants.DEBUG_CMD_DENY_INVITE, partyPlayer.getName(), partyInvite.getParty().getName() != null ? partyInvite.getParty().getName() : "_"), true);
    }
}
Also used : CommonUtils(com.alessiodp.core.common.utils.CommonUtils) PartiesPermission(com.alessiodp.parties.common.utils.PartiesPermission) CommandData(com.alessiodp.core.common.commands.utils.CommandData) Messages(com.alessiodp.parties.common.configuration.data.Messages) PartyAskRequest(com.alessiodp.parties.api.interfaces.PartyAskRequest) PartyPlayerImpl(com.alessiodp.parties.common.players.objects.PartyPlayerImpl) HashMap(java.util.HashMap) ConfigParties(com.alessiodp.parties.common.configuration.data.ConfigParties) CommonCommands(com.alessiodp.parties.common.commands.list.CommonCommands) PartyTeleportRequest(com.alessiodp.parties.common.players.objects.PartyTeleportRequest) PartiesCommandData(com.alessiodp.parties.common.commands.utils.PartiesCommandData) ConfigMain(com.alessiodp.parties.common.configuration.data.ConfigMain) PartyImpl(com.alessiodp.parties.common.parties.objects.PartyImpl) Map(java.util.Map) ADPMainCommand(com.alessiodp.core.common.commands.utils.ADPMainCommand) PartiesConstants(com.alessiodp.parties.common.configuration.PartiesConstants) User(com.alessiodp.core.common.user.User) NotNull(org.jetbrains.annotations.NotNull) RankPermission(com.alessiodp.parties.common.utils.RankPermission) ADPPlugin(com.alessiodp.core.common.ADPPlugin) PartyInvite(com.alessiodp.parties.api.interfaces.PartyInvite) PartiesSubCommand(com.alessiodp.parties.common.commands.utils.PartiesSubCommand) User(com.alessiodp.core.common.user.User) PartyPlayerImpl(com.alessiodp.parties.common.players.objects.PartyPlayerImpl) PartiesCommandData(com.alessiodp.parties.common.commands.utils.PartiesCommandData) HashMap(java.util.HashMap) PartyAskRequest(com.alessiodp.parties.api.interfaces.PartyAskRequest) PartyTeleportRequest(com.alessiodp.parties.common.players.objects.PartyTeleportRequest) PartyInvite(com.alessiodp.parties.api.interfaces.PartyInvite) PartyImpl(com.alessiodp.parties.common.parties.objects.PartyImpl)

Example 3 with PartyInvite

use of com.alessiodp.parties.api.interfaces.PartyInvite in project Parties by AlessioDP.

the class CommandAccept method onCommand.

@Override
public void onCommand(CommandData commandData) {
    User sender = commandData.getSender();
    PartyPlayerImpl partyPlayer = ((PartiesCommandData) commandData).getPartyPlayer();
    // Command handling
    if (partyPlayer.isInParty()) {
        boolean noPendingRequests = false;
        if (ConfigParties.ADDITIONAL_ASK_ENABLE) {
            // Accept ask request
            PartyImpl party = ((PartiesCommandData) commandData).getParty();
            HashMap<String, PartyAskRequest> pendingAskRequests = new HashMap<>();
            party.getAskRequests().forEach(pv -> pendingAskRequests.put(CommonUtils.toLowerCase(pv.getAsker().getName()), pv));
            if (commandData.getArgs().length > 1 && !pendingAskRequests.containsKey(CommonUtils.toLowerCase(commandData.getArgs()[1]))) {
                noPendingRequests = true;
            } else {
                PartyAskRequest partyAskRequest = null;
                if (pendingAskRequests.size() > 0) {
                    if (pendingAskRequests.size() == 1) {
                        partyAskRequest = pendingAskRequests.values().iterator().next();
                    } else if (commandData.getArgs().length > 1) {
                        partyAskRequest = pendingAskRequests.get(CommonUtils.toLowerCase(commandData.getArgs()[1]));
                    } else {
                        // Missing player
                        sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_MULTIPLEREQUESTS);
                        for (Map.Entry<String, PartyAskRequest> entry : pendingAskRequests.entrySet()) {
                            sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_MULTIPLEREQUESTS_PLAYER.replace("%player%", entry.getValue().getAsker().getName()), (PartyImpl) entry.getValue().getParty());
                        }
                        return;
                    }
                } else {
                    noPendingRequests = true;
                }
                if (partyAskRequest != null) {
                    // Command starts
                    partyAskRequest.accept(partyPlayer);
                    plugin.getLoggerManager().logDebug(String.format(PartiesConstants.DEBUG_CMD_ACCEPT_ASK, partyPlayer.getName(), partyAskRequest.getAsker().getName(), partyAskRequest.getParty().getName() != null ? partyAskRequest.getParty().getName() : "_"), true);
                    return;
                }
            }
        }
        if (ConfigParties.ADDITIONAL_TELEPORT_ENABLE && ConfigParties.ADDITIONAL_TELEPORT_ACCEPT_REQUEST_ENABLE) {
            // Accept teleport request
            HashMap<String, PartyTeleportRequest> pendingTeleportRequests = new HashMap<>();
            partyPlayer.getPendingTeleportRequests().forEach(pv -> pendingTeleportRequests.put(CommonUtils.toLowerCase(pv.getRequester().getName()), pv));
            if (commandData.getArgs().length > 1 && !pendingTeleportRequests.containsKey(CommonUtils.toLowerCase(commandData.getArgs()[1]))) {
                noPendingRequests = true;
            } else {
                PartyTeleportRequest partyTeleportRequest = null;
                if (pendingTeleportRequests.size() > 0) {
                    if (pendingTeleportRequests.size() == 1) {
                        partyTeleportRequest = pendingTeleportRequests.values().iterator().next();
                    } else if (commandData.getArgs().length > 1) {
                        partyTeleportRequest = pendingTeleportRequests.get(CommonUtils.toLowerCase(commandData.getArgs()[1]));
                    } else {
                        // Missing player
                        sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_MULTIPLEREQUESTS);
                        for (Map.Entry<String, PartyTeleportRequest> entry : pendingTeleportRequests.entrySet()) {
                            sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_MULTIPLEREQUESTS_PLAYER.replace("%player%", entry.getValue().getRequester().getName()));
                        }
                        return;
                    }
                } else {
                    noPendingRequests = true;
                }
                if (partyTeleportRequest != null) {
                    // Command starts
                    partyTeleportRequest.accept();
                    plugin.getLoggerManager().logDebug(String.format(PartiesConstants.DEBUG_CMD_ACCEPT_TELEPORT, partyPlayer.getName(), partyTeleportRequest.getRequester().getName()), true);
                    return;
                }
            }
        }
        if (noPendingRequests) {
            if (commandData.getArgs().length > 1) {
                sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_NOEXISTS);
            } else {
                sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_NOREQUEST);
            }
            return;
        }
        // No ask and no teleport - already in party
        sendMessage(sender, partyPlayer, Messages.PARTIES_COMMON_ALREADYINPARTY);
    } else {
        // Accept invite request
        HashMap<String, PartyInvite> pendingInvites = new HashMap<>();
        partyPlayer.getPendingInvites().stream().filter(pv -> pv.getParty().getName() != null).forEach(pv -> pendingInvites.put(CommonUtils.toLowerCase(pv.getParty().getName()), pv));
        if (commandData.getArgs().length > 1 && !pendingInvites.containsKey(CommonUtils.toLowerCase(commandData.getArgs()[1]))) {
            sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_NOEXISTS);
            return;
        }
        PartyInvite partyInvite;
        if (pendingInvites.size() > 0) {
            if (pendingInvites.size() == 1) {
                partyInvite = pendingInvites.values().iterator().next();
            } else if (commandData.getArgs().length > 1) {
                partyInvite = pendingInvites.get(CommonUtils.toLowerCase(commandData.getArgs()[1]));
            } else {
                // Missing party
                sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_MULTIPLEREQUESTS);
                for (Map.Entry<String, PartyInvite> entry : pendingInvites.entrySet()) {
                    sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_MULTIPLEREQUESTS_PARTY.replace("%party%", entry.getKey()), (PartyImpl) entry.getValue().getParty());
                }
                return;
            }
        } else {
            sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_NOREQUEST);
            return;
        }
        if (partyInvite == null) {
            sendMessage(sender, partyPlayer, Messages.MAINCMD_ACCEPT_NOEXISTS);
            return;
        }
        // Command starts
        partyInvite.accept();
        plugin.getLoggerManager().logDebug(String.format(PartiesConstants.DEBUG_CMD_ACCEPT_INVITE, partyPlayer.getName(), partyInvite.getParty().getName() != null ? partyInvite.getParty().getName() : "_"), true);
    }
}
Also used : CommonUtils(com.alessiodp.core.common.utils.CommonUtils) PartiesPermission(com.alessiodp.parties.common.utils.PartiesPermission) CommandData(com.alessiodp.core.common.commands.utils.CommandData) Messages(com.alessiodp.parties.common.configuration.data.Messages) PartyAskRequest(com.alessiodp.parties.api.interfaces.PartyAskRequest) PartyPlayerImpl(com.alessiodp.parties.common.players.objects.PartyPlayerImpl) HashMap(java.util.HashMap) ConfigParties(com.alessiodp.parties.common.configuration.data.ConfigParties) CommonCommands(com.alessiodp.parties.common.commands.list.CommonCommands) PartyTeleportRequest(com.alessiodp.parties.common.players.objects.PartyTeleportRequest) PartiesCommandData(com.alessiodp.parties.common.commands.utils.PartiesCommandData) ConfigMain(com.alessiodp.parties.common.configuration.data.ConfigMain) PartyImpl(com.alessiodp.parties.common.parties.objects.PartyImpl) Map(java.util.Map) ADPMainCommand(com.alessiodp.core.common.commands.utils.ADPMainCommand) PartiesConstants(com.alessiodp.parties.common.configuration.PartiesConstants) User(com.alessiodp.core.common.user.User) NotNull(org.jetbrains.annotations.NotNull) RankPermission(com.alessiodp.parties.common.utils.RankPermission) ADPPlugin(com.alessiodp.core.common.ADPPlugin) PartyInvite(com.alessiodp.parties.api.interfaces.PartyInvite) PartiesSubCommand(com.alessiodp.parties.common.commands.utils.PartiesSubCommand) User(com.alessiodp.core.common.user.User) PartyPlayerImpl(com.alessiodp.parties.common.players.objects.PartyPlayerImpl) PartiesCommandData(com.alessiodp.parties.common.commands.utils.PartiesCommandData) HashMap(java.util.HashMap) PartyAskRequest(com.alessiodp.parties.api.interfaces.PartyAskRequest) PartyTeleportRequest(com.alessiodp.parties.common.players.objects.PartyTeleportRequest) PartyInvite(com.alessiodp.parties.api.interfaces.PartyInvite) PartyImpl(com.alessiodp.parties.common.parties.objects.PartyImpl)

Aggregations

ADPPlugin (com.alessiodp.core.common.ADPPlugin)3 ADPMainCommand (com.alessiodp.core.common.commands.utils.ADPMainCommand)3 CommandData (com.alessiodp.core.common.commands.utils.CommandData)3 User (com.alessiodp.core.common.user.User)3 PartyInvite (com.alessiodp.parties.api.interfaces.PartyInvite)3 CommonCommands (com.alessiodp.parties.common.commands.list.CommonCommands)3 PartiesCommandData (com.alessiodp.parties.common.commands.utils.PartiesCommandData)3 PartiesSubCommand (com.alessiodp.parties.common.commands.utils.PartiesSubCommand)3 PartiesConstants (com.alessiodp.parties.common.configuration.PartiesConstants)3 ConfigMain (com.alessiodp.parties.common.configuration.data.ConfigMain)3 ConfigParties (com.alessiodp.parties.common.configuration.data.ConfigParties)3 Messages (com.alessiodp.parties.common.configuration.data.Messages)3 PartyImpl (com.alessiodp.parties.common.parties.objects.PartyImpl)3 PartyPlayerImpl (com.alessiodp.parties.common.players.objects.PartyPlayerImpl)3 PartiesPermission (com.alessiodp.parties.common.utils.PartiesPermission)3 RankPermission (com.alessiodp.parties.common.utils.RankPermission)3 NotNull (org.jetbrains.annotations.NotNull)3 CommonUtils (com.alessiodp.core.common.utils.CommonUtils)2 PartyAskRequest (com.alessiodp.parties.api.interfaces.PartyAskRequest)2 PartyTeleportRequest (com.alessiodp.parties.common.players.objects.PartyTeleportRequest)2