Skip to content

Commit

Permalink
Merge pull request #82 from Sven65/feat/R3
Browse files Browse the repository at this point in the history
Fix issue with worldguard flags not loading
  • Loading branch information
Sven65 authored Jan 23, 2024
2 parents 84b05a6 + 414b642 commit e7f4ab6
Show file tree
Hide file tree
Showing 31 changed files with 39 additions and 33 deletions.
2 changes: 1 addition & 1 deletion modules/1_10_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_11_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_12_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_13_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_13_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_14_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_15_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_16_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_16_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_16_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_17_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_18_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_18_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_19_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_19_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_19_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_20_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_20_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_20_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_8_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_8_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_8_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_9_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_9_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/Dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
6 changes: 3 additions & 3 deletions modules/Plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
<parent>
<artifactId>Slabbo-parent</artifactId>
<groupId>xyz.mackan</groupId>
<version>1.0.50</version>
<version>1.0.51</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-plugin</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<packaging>jar</packaging>

<description>Slab shops for spigot</description>

<build>
<plugins>
<plugin>
<version>3.7.0</version>
<version>3.7.0</version>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
Expand Down
6 changes: 3 additions & 3 deletions modules/Plugin/src/main/java/xyz/mackan/Slabbo/Slabbo.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public class Slabbo extends JavaPlugin {

@Override
public void onLoad () {
setupPluginSupport();

if (PluginSupport.isPluginEnabled("WorldGuard")) {
WorldguardSupport.registerFlags();
}
Expand All @@ -69,7 +71,6 @@ public void onEnable () {
}

loadAPI();
setupPluginSupport();

new File(getDataPath()).mkdirs();

Expand All @@ -86,10 +87,9 @@ public void onEnable () {
setupCommands();
setupListeners();


checkUpdates();

getLogger().info("Slabbo enabled.");
getLogger().info("Slabbo fully enabled.");

ShopManager.loadShops();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ public static boolean isPluginEnabled (String pluginName) {
}

public static void checkPlugin(String pluginName) {
Slabbo.log.info(String.format("Checking for plugin %s", pluginName));

if (getServer().getPluginManager().getPlugin(pluginName) == null) return;

Slabbo.log.info(String.format("Plugin %s found. Enabling support.", pluginName));

pluginStatus.put(pluginName, true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import xyz.mackan.Slabbo.Slabbo;
import xyz.mackan.Slabbo.manager.LocaleManager;
import xyz.mackan.Slabbo.manager.ShopManager;
import xyz.mackan.Slabbo.types.Shop;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void getVersion (final Consumer<String> consumer) {
consumer.accept(scanner.next());
}
} catch (IOException exception) {
Slabbo.getInstance().getLogger().info("Cannot look for updates: " + exception.getMessage());
Slabbo.log.info("Cannot look for updates: " + exception.getMessage());
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.50</version>
<version>1.0.51</version>
<packaging>pom</packaging>
<name>Slabbo</name>

Expand Down

0 comments on commit e7f4ab6

Please sign in to comment.