forked from funniray/minimap-control
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
properly voxel map support + config rework (1.1.0)
- Loading branch information
1 parent
cbfedaa
commit 0e5f3a7
Showing
17 changed files
with
360 additions
and
187 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package net.edenor.minimap; | ||
|
||
import net.edenor.minimap.jm.data.JMWorldConfig; | ||
import net.edenor.minimap.voxel.data.VoxelWorldConfig; | ||
import net.edenor.minimap.xaeros.XaerosWorldConfig; | ||
import org.bukkit.configuration.file.FileConfiguration; | ||
|
||
public class DefaultWorldConfig { | ||
|
||
public DefaultWorldConfig(){ | ||
defaultXaerosWorldConfig = new XaerosWorldConfig(); | ||
defaultVoxelWorldConfig = new VoxelWorldConfig(); | ||
defaultJMWorldConfig = new JMWorldConfig(); | ||
} | ||
XaerosWorldConfig defaultXaerosWorldConfig; | ||
VoxelWorldConfig defaultVoxelWorldConfig; | ||
public JMWorldConfig defaultJMWorldConfig; | ||
|
||
public void addDefaultsToConfig(FileConfiguration cfg){ | ||
cfg.createSection("default-world-config"); | ||
cfg.createSection("default-world-config.xaeros", defaultXaerosWorldConfig.toMap()); | ||
cfg.createSection("default-world-config.jm", defaultJMWorldConfig.toMap()); | ||
cfg.createSection("default-world-config.voxel", defaultVoxelWorldConfig.toMap()); | ||
} | ||
} |
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
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
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
Oops, something went wrong.