mirror of
				https://github.com/PlaceholderAPI/PlaceholderAPI
				synced 2025-10-31 06:12:28 +01:00 
			
		
		
		
	Merge pull request #454 from PlaceholderAPI/feature/add-getBoolean
Add missing getBoolean method
This commit is contained in:
		| @@ -200,6 +200,12 @@ public abstract class PlaceholderExpansion extends PlaceholderHook { | |||||||
|     return section == null ? Collections.emptyList() : section.getStringList(path); |     return section == null ? Collections.emptyList() : section.getStringList(path); | ||||||
|   } |   } | ||||||
|    |    | ||||||
|  |   @NotNull | ||||||
|  |   public final boolean getBoolean(@NotNull final String path, final boolean def) { | ||||||
|  |     final ConfigurationSection section = getConfigSection(); | ||||||
|  |     return section == null ? def : section.getBoolean(path, def); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   public final boolean configurationContains(@NotNull final String path) { |   public final boolean configurationContains(@NotNull final String path) { | ||||||
|     final ConfigurationSection section = getConfigSection(); |     final ConfigurationSection section = getConfigSection(); | ||||||
|     return section != null && section.contains(path); |     return section != null && section.contains(path); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user