forked from Swofty-Developments/HypixelSkyBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomWorlds.java
More file actions
27 lines (23 loc) · 772 Bytes
/
CustomWorlds.java
File metadata and controls
27 lines (23 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package net.swofty.commons;
public enum CustomWorlds {
SKYBLOCK_ISLAND_TEMPLATE("hypixel_skyblock_island_template"),
SKYBLOCK_HUB("hypixel_skyblock_hub"),
SKYBLOCK_GOLD_MINE("hypixel_skyblock_gold_mine"),
SKYBLOCK_DEEP_CAVERNS("hypixel_skyblock_deep_caverns"),
SKYBLOCK_DWARVEN_MINES("hypixel_skyblock_dwarven_mines"),
SKYBLOCK_DUNGEON_HUB("hypixel_skyblock_dungeon_hub"),
PROTOTYPE_LOBBY("hypixel_prototype_lobby"),
BEDWARS_LOBBY("hypixel_bedwars_lobby"),
;
private final String folderName;
CustomWorlds(String folderName) {
this.folderName = folderName;
}
public String getFolderName() {
if (name().startsWith("SKYBLOCK_")) {
return "./configuration/skyblock/islands/" + folderName;
} else {
return "./configuration/" + folderName;
}
}
}