diff --git a/.gitignore b/.gitignore
index 25a67ff..a838742 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,5 @@ dependency-reduced-pom.xml
buildNumber.properties
*.iml
.idea
+.vscode
+heroes-spells
diff --git a/generate.php b/generate.php
index e5dd08a..6e775b8 100644
--- a/generate.php
+++ b/generate.php
@@ -20,8 +20,8 @@
$spellFiles = new DirectoryIterator($spellConfigFolder);
foreach ($spellFiles as $spellFile) {
- if ($spellFile->isDir()) continue;
- if ($spellFile->getExtension() !== 'yml') continue;
+ if ($spellFile->isDir()) {continue;}
+ if ($spellFile->getExtension() !== 'yml') {continue;}
$spellConfigFile = $spellFile->getPathname();
echo "Looking at $spellConfigFile\n";
$spellConfig = spyc_load_file($spellConfigFile);
@@ -50,18 +50,16 @@
mkdir($buildDir);
foreach ($spellConfigs as $spellKey => $spellConfig) {
- if (strpos($spellKey, '|') !== false) continue;
- if ($spellKey == 'default' || $spellKey == 'override') continue;
- if (isset($spellConfig['hidden']) && $spellConfig['hidden']) continue;
- if (isset($spellConfig['category'])) {
- if ($spellConfig['category'] == 'engineering'
- || $spellConfig['category'] == 'automata'
- || $spellConfig['category'] == 'shop'
- || $spellConfig['category'] == 'npc') continue;
- }
- if (isset($spellConfig['inherit']) && (
- $spellConfig['inherit'] == 'buyshop'
- || $spellConfig['inherit'] == 'sellshop')) continue;
+ if (strpos($spellKey, '|') !== false) {continue;}
+ if ($spellKey == 'default' || $spellKey == 'override') {continue;}
+ if (isset($spellConfig['hidden']) && $spellConfig['hidden']) {continue;}
+ if ((isset($spellConfig['category'])) && ($spellConfig['category'] == 'engineering'
+ || $spellConfig['category'] == 'automata'
+ || $spellConfig['category'] == 'shop'
+ || $spellConfig['category'] == 'npc')) {continue;}
+ if (isset($spellConfig['inherit']) && (
+ $spellConfig['inherit'] == 'buyshop'
+ || $spellConfig['inherit'] == 'sellshop')) {continue;}
echo "Generating skill for " . $spellKey . "\n";
$source = 'src';
@@ -97,7 +95,7 @@
chdir($destRoot);
$jarName = "MagicSkill-" . $spellKey;
- system('mvn -Djar.finalName=' . $jarName . ' package');
+ system('mvn -Djar.finalName=' . $jarName . ' clean package');
rename('target/' . $jarName . '.jar', '../../target/' . $jarName . '.jar');
chdir('../..');
}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
old mode 100644
new mode 100755
index eedddf6..4ece640
--- a/pom.xml
+++ b/pom.xml
@@ -26,19 +26,19 @@
org.bukkit
bukkit
- 1.6.4-R2.0
+ 1.15.2-R0.1-SNAPSHOT
provided
com.elmakers.mine.bukkit.plugins
Magic
- 7.9.6
+ 9.4-SNAPSHOT
provided
com.herocraftonline.heroes
Heroes
- 1.9.6
+ 1.9.19-RELEASE
provided