Skip to content

Commit

Permalink
Added support for multiverse
Browse files Browse the repository at this point in the history
- Added soft-dependency to wait for multiverse plugin to load
- Updated version name

> Related to #1
  • Loading branch information
josemmo committed Apr 3, 2021
1 parent e0b9814 commit 7553620
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.josemmo.bukkit.plugin</groupId>
<artifactId>YamipaPlugin</artifactId>
<version>1.0.3</version>
<version>1.0.4-SNAPSHOT</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ private void loadConfig() {

// Parse each row
for (String[] row : config.getRows()) {
if (row.length != 9) continue;
try {
String filename = row[0];
World world = Objects.requireNonNull(plugin.getServer().getWorld(row[1]));
Expand All @@ -101,7 +100,7 @@ private void loadConfig() {
int height = Math.min(FakeImage.MAX_DIMENSION, Math.abs(Integer.parseInt(row[8])));
addImage(new FakeImage(filename, location, face, rotation, width, height), true);
} catch (Exception e) {
plugin.warning("Invalid fake image properties: " + String.join(";", row));
plugin.log(Level.SEVERE, "Invalid fake image properties: " + String.join(";", row), e);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: ${project.version}
main: io.josemmo.bukkit.plugin.YamipaPlugin
api-version: 1.13
depend: [ProtocolLib]
softdepend: [Multiverse-Core]

permissions:
yamipa.*:
Expand Down

0 comments on commit 7553620

Please sign in to comment.