forked from alkarinv/BattleArena
-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for storing additional options in Arena config
- Loading branch information
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
plugin/src/main/java/org/battleplugins/arena/config/ConfigHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.battleplugins.arena.config; | ||
|
||
import org.bukkit.configuration.ConfigurationSection; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* A holder for a set of config sections. | ||
* <p> | ||
* This is typically implemented by classes in which | ||
* there are unparsed config sections, typically accessed | ||
* by third parties, that need to be stored and accessed | ||
* in a less verbose manner. | ||
*/ | ||
public interface ConfigHolder { | ||
|
||
/** | ||
* Gets the config sections stored in this holder. | ||
* | ||
* @return the config sections stored in this holder | ||
*/ | ||
Map<String, ConfigurationSection> getConfig(); | ||
} |