Package net.citizensnpcs.trait

Examples of net.citizensnpcs.trait.Anchors


                return;
            }
            trait.sit(dLocation.valueOf(argsArray[0] + "," + argsArray[1] + "," + argsArray[2] + "," + argsArray[3]));
        } else if (args.hasValueFlag("anchor")) {
            if (npc.hasTrait(Anchors.class)) {
                Anchors anchors = npc.getTrait(Anchors.class);
                if (anchors.getAnchor(args.getFlag("anchor")) != null)
                    trait.sit(anchors.getAnchor(args.getFlag("anchor")).getLocation());
            }
            Messaging.sendError(sender, "The NPC does not have the specified anchor!");
        } else {
            trait.sit();
        }
View Full Code Here


                return;
            }
            trait.toSleep(dLocation.valueOf(argsArray[0] + "," + argsArray[1] + "," + argsArray[2] + "," + argsArray[3]));
        } else if (args.hasValueFlag("anchor")) {
            if (npc.hasTrait(Anchors.class)) {
                Anchors anchors = npc.getTrait(Anchors.class);
                if (anchors.getAnchor(args.getFlag("anchor")) != null)
                    trait.toSleep(anchors.getAnchor(args.getFlag("anchor")).getLocation());
            }
            Messaging.sendError(sender, "The NPC does not have the specified anchor!");
        } else {
            trait.toSleep();
        }
View Full Code Here

                return;
            }
            trait.startFishing(dLocation.valueOf(argsArray[0] + "," + argsArray[1] + "," + argsArray[2] + "," + argsArray[3]));
        } else if (args.hasValueFlag("anchor")) {
            if (npc.hasTrait(Anchors.class)) {
                Anchors anchors = npc.getTrait(Anchors.class);
                if (anchors.getAnchor(args.getFlag("anchor")) != null)
                    trait.startFishing(anchors.getAnchor(args.getFlag("anchor")).getLocation());
            }
            Messaging.sendError(sender, "The NPC does not have the specified anchor!");
        } else {
            trait.startFishing();
        }
View Full Code Here

TOP

Related Classes of net.citizensnpcs.trait.Anchors

Copyright © 2018 www.massapicom. 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.