Examples of inParty()


Examples of com.gmail.nossr50.datatypes.player.McMMOPlayer.inParty()

            }

            return;
        }

        if (!drop.hasMetadata(mcMMO.droppedItemKey) && mcMMOPlayer.inParty() && ItemUtils.isSharable(dropStack)) {
            event.setCancelled(ShareHandler.handleItemShare(drop, mcMMOPlayer));

            if (event.isCancelled()) {
                player.playSound(player.getLocation(), Sound.ITEM_PICKUP, Misc.POP_VOLUME, Misc.getPopPitch());
                return;
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.McMMOPlayer.inParty()

        BleedTimerTask.bleedOut(player);
        mcMMOPlayer.getProfile().scheduleAsyncSave();
        UserManager.remove(player);
        ScoreboardManager.teardownPlayer(player);

        if (mcMMOPlayer.inParty()) {
            mcMMOPlayer.logoutParty();
        }
    }

    /**
 
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.McMMOPlayer.inParty()

        }

        McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);

        if (args.length < 1) {
            if (!mcMMOPlayer.inParty()) {
                sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
                return printUsage(player);
            }

            return partyInfoCommand.onCommand(sender, command, label, args);
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.McMMOPlayer.inParty()

            default:
                break;
        }

        // Party member commands
        if (!mcMMOPlayer.inParty()) {
            sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
            return printUsage(player);
        }

        switch (subcommand) {
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.McMMOPlayer.inParty()

            return true;
        }

        McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);

        if (!mcMMOPlayer.inParty()) {
            sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
            return true;
        }

        Party party = mcMMOPlayer.getParty();
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.McMMOPlayer.inParty()

                if (matches.size() == 0) {
                    Player player = (Player) sender;
                    McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);

                    if (!mcMMOPlayer.inParty()) {
                        return ImmutableList.of();
                    }

                    List<String> playerNames = mcMMOPlayer.getParty().getOnlinePlayerNames(player);
                    return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.McMMOPlayer.inParty()

                    return true;
                }

                Player target = mcMMOTarget.getPlayer();

                if (!mcMMOTarget.inParty()) {
                    sender.sendMessage(LocaleLoader.getString("Party.PlayerNotInParty", targetName));
                    return true;
                }

                Player player = (Player) sender;
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.McMMOPlayer.inParty()

                Player player = (Player) sender;
                McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
                Party targetParty = mcMMOTarget.getParty();

                if (player.equals(target) || (mcMMOPlayer.inParty() && mcMMOPlayer.getParty().equals(targetParty))) {
                    sender.sendMessage(LocaleLoader.getString("Party.Join.Self"));
                    return true;
                }

                String password = getPassword(args);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.