Package net.canarymod.api.entity.living.humanoid

Examples of net.canarymod.api.entity.living.humanoid.Player.message()


                }
            }

            if (warpList.length() > 0) {
                warpList.deleteCharAt(warpList.length() - 1);
                player.message(warpList.toString().trim());
            }
            else {
                player.notice(Translator.translate("no warps"));
            }
        }
View Full Code Here


        if (caller instanceof Player) {
            prefix = ((Player) caller).getPrefix();
        }
        if (target != null) {
            caller.message(Colors.LIGHT_GRAY + "-> " + target.getPrefix() + target.getName() + Colors.WHITE + ": " + StringUtils.joinString(parameters, " ", 2));
            target.message(Colors.LIGHT_GRAY + "(MSG) " + prefix + caller.getName() + Colors.WHITE + ": " + StringUtils.joinString(parameters, " ", 2));
        }
        else {
            caller.notice(Translator.translateAndFormat("unknown player", parameters[1]));
        }
    }
View Full Code Here

                if (recipient != null) {
                    Kit kit = Canary.kits().getKit(args[2]);

                    if (kit != null) {
                        if (kit.giveKit(recipient, override)) {
                            recipient.message(Colors.YELLOW + Translator.translateAndFormat("kit given other", caller.getName()));
                            return;
                        }
                        else {
                            caller.notice(Translator.translateAndFormat("kit unavailable other", recipient.getName()));
                            return;
View Full Code Here

                if (recipient != null) {
                    Kit kit = Canary.kits().getKit(args[2]);

                    if (kit != null) {
                        if (kit.giveKit(recipient, false)) {
                            recipient.message(Colors.YELLOW + Translator.translateAndFormat("kit given other", player.getName()));
                            return;
                        }
                        else {
                            player.notice(Translator.translateAndFormat("kit unavailable other", recipient.getName()));
                            return;
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.