forked from MagicBane/Server
Power Action Constructor (not finished)
This commit is contained in:
@@ -31,6 +31,8 @@ public class PowerActionParser {
|
||||
private static final Pattern POWER_ACTION_REGEX = Pattern.compile("(?<=POWERACTIONBEGIN)(.+?)(?=POWERACTIONEND)", Pattern.DOTALL);
|
||||
private static final String powerActionPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/PowerActions.cfg";
|
||||
|
||||
public static ArrayList<PowerAction> power_actions= new ArrayList<>();
|
||||
|
||||
public static void parseWpakFile() {
|
||||
|
||||
// Read .wpak file from disk
|
||||
@@ -52,7 +54,7 @@ public class PowerActionParser {
|
||||
while (matcher.find()) {
|
||||
|
||||
PowerAction powerAction = parsePowerActionEntry(matcher.group().trim());
|
||||
|
||||
power_actions.add(powerAction);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user