Java Code Examples for org.bukkit.configuration.Configuration#getString()
The following examples show how to use
org.bukkit.configuration.Configuration#getString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Config.java From ProjectAres with GNU Affero General Public License v3.0 | 4 votes |
public void load(Configuration config) throws InvalidConfigurationException { this.enabled = config.getBoolean("player-list.enabled", true); this.playersSeeObservers = config.getBoolean("player-list.players-see-observers", true); this.datacenter = config.getString("player-list.datacenter", null); this.server = config.getString("player-list.server", null); }
Example 2
Source File: NameConfigParser.java From EliteMobs with GNU General Public License v3.0 | 4 votes |
public static String parseName(Configuration configuration, String previousPath) { String path = automatedStringBuilder(previousPath, "Name"); return configuration.getString(path); }
Example 3
Source File: DropWeightConfigParser.java From EliteMobs with GNU General Public License v3.0 | 3 votes |
public static String getDropType(Configuration configuration, String previousPath) { String dropType = automatedStringBuilder(previousPath, "Drop Weight"); return configuration.getString(dropType); }
Example 4
Source File: ScalabilityConfigParser.java From EliteMobs with GNU General Public License v3.0 | 3 votes |
public static String parseItemScalability(Configuration configuration, String previousPath) { String path = automatedStringBuilder(previousPath, "Scalability"); return configuration.getString(path); }