Examples of checkSpecificTriggerScriptRequirementsFor()


Examples of net.aufdemrand.denizen.scripts.containers.core.InteractScriptContainer.checkSpecificTriggerScriptRequirementsFor()

                        // Tag the entry value to account for replaceables
                        String entry_value = TagManager.tag(dplayer, npc, entry.getValue());
                        // Check if the item specified in the specified id's 'trigger:' key
                        // matches the item that the player is holding.
                        if (dItem.valueOf(entry_value).comparesTo(dplayer.getPlayerEntity().getItemInHand()) >= 0
                                && script.checkSpecificTriggerScriptRequirementsFor(this.getClass(),
                                dplayer, npc, entry.getKey()))
                            id = entry.getKey();
                    }
            }
View Full Code Here

Examples of net.aufdemrand.denizen.scripts.containers.core.InteractScriptContainer.checkSpecificTriggerScriptRequirementsFor()

                    dItem item = dItem.valueOf(entry_value);
                    if (item == null) {
                        dB.echoError("Invalid click trigger in script '" + script.getName() + "' (null trigger item)!");
                    }
                    if (item != null && item.comparesTo(player.getPlayerEntity().getItemInHand()) >= 0
                            && script.checkSpecificTriggerScriptRequirementsFor(this.getClass(),
                            player, npc, entry.getKey()))
                        id = entry.getKey();
                }
        }
View Full Code Here

Examples of net.aufdemrand.denizen.scripts.containers.core.InteractScriptContainer.checkSpecificTriggerScriptRequirementsFor()

                // Check if the chat trigger specified in the specified id's 'trigger:' key
                // matches the text the player has said
                String triggerText = TagManager.tag(denizenPlayer, npc, entry.getValue());
                Matcher matcher = triggerPattern.matcher(triggerText);
                while (matcher.find ()) {
                    if (!script.checkSpecificTriggerScriptRequirementsFor(ChatTrigger.class,
                            denizenPlayer, npc, entry.getKey())) continue;
                    String keyword = TagManager.tag(denizenPlayer, npc, matcher.group().replace("/", ""));
                    String[] split = keyword.split("\\\\\\+REPLACE:", 2);
                    String replace = null;
                    if (split.length == 2) {
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.