Examples of shareWith()


Examples of com.bergerkiller.bukkit.common.config.ConfigurationNode.shareWith()

      for (Entry<String, Map<String, Object>> commandEntry : commands.entrySet()) {
        ConfigurationNode node = commandsNode.getNode(commandEntry.getKey());

        // Transfer description and usage
        Map<String, Object> data = new HashMap<String, Object>(commandEntry.getValue());
        node.shareWith(data, "description", "No description specified");
        node.shareWith(data, "usage", "/" + commandEntry.getKey());
        commandEntry.setValue(Collections.unmodifiableMap(data));
      }

      // Set the new commands map using reflection
View Full Code Here

Examples of com.bergerkiller.bukkit.common.config.ConfigurationNode.shareWith()

        ConfigurationNode node = commandsNode.getNode(commandEntry.getKey());

        // Transfer description and usage
        Map<String, Object> data = new HashMap<String, Object>(commandEntry.getValue());
        node.shareWith(data, "description", "No description specified");
        node.shareWith(data, "usage", "/" + commandEntry.getKey());
        commandEntry.setValue(Collections.unmodifiableMap(data));
      }

      // Set the new commands map using reflection
      PluginDescriptionFileRef.commands.set(this.getDescription(), Collections.unmodifiableMap(commands));
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.