Skip to content

Commit 5303630

Browse files
committed
Fix wrong shading process, Fix wrong sync event calls
1 parent 34949b1 commit 5303630

File tree

2 files changed

+38
-40
lines changed

2 files changed

+38
-40
lines changed

pom.xml

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.example</groupId>
88
<artifactId>ForestRedisAPI</artifactId>
9-
<version>1.0.8</version>
9+
<version>1.0.9</version>
1010

1111
<properties>
1212
<maven.compiler.source>11</maven.compiler.source>
@@ -32,44 +32,42 @@
3232
</excludes>
3333
</resource>
3434
</resources>
35-
<pluginManagement>
36-
<plugins>
37-
<plugin>
38-
<groupId>org.apache.maven.plugins</groupId>
39-
<artifactId>maven-compiler-plugin</artifactId>
40-
<configuration>
41-
<source>${maven.compiler.source}</source>
42-
<target>${maven.compiler.target}</target>
43-
</configuration>
44-
</plugin>
45-
<plugin>
46-
<groupId>org.apache.maven.plugins</groupId>
47-
<artifactId>maven-shade-plugin</artifactId>
48-
<version>3.2.2</version>
49-
<configuration>
50-
<createDependencyReducedPom>false</createDependencyReducedPom>
51-
<shadedArtifactAttached>false</shadedArtifactAttached>
52-
<relocations>
53-
<relocation>
54-
<pattern>com.google.code.gson</pattern>
55-
<shadedPattern>shaded.com.google.code.gson</shadedPattern>
56-
</relocation>
57-
</relocations>
58-
</configuration>
59-
<executions>
60-
<execution>
61-
<phase>package</phase>
62-
<goals>
63-
<goal>shade</goal>
64-
</goals>
65-
<configuration>
66-
<minimizeJar>true</minimizeJar>
67-
</configuration>
68-
</execution>
69-
</executions>
70-
</plugin>
71-
</plugins>
72-
</pluginManagement>
35+
<plugins>
36+
<plugin>
37+
<groupId>org.apache.maven.plugins</groupId>
38+
<artifactId>maven-compiler-plugin</artifactId>
39+
<configuration>
40+
<source>${maven.compiler.source}</source>
41+
<target>${maven.compiler.target}</target>
42+
</configuration>
43+
</plugin>
44+
<plugin>
45+
<groupId>org.apache.maven.plugins</groupId>
46+
<artifactId>maven-shade-plugin</artifactId>
47+
<version>3.2.2</version>
48+
<configuration>
49+
<createDependencyReducedPom>false</createDependencyReducedPom>
50+
<shadedArtifactAttached>false</shadedArtifactAttached>
51+
<relocations>
52+
<relocation>
53+
<pattern>com.google.code.gson</pattern>
54+
<shadedPattern>shaded.com.google.code.gson</shadedPattern>
55+
</relocation>
56+
</relocations>
57+
</configuration>
58+
<executions>
59+
<execution>
60+
<phase>package</phase>
61+
<goals>
62+
<goal>shade</goal>
63+
</goals>
64+
<configuration>
65+
<minimizeJar>true</minimizeJar>
66+
</configuration>
67+
</execution>
68+
</executions>
69+
</plugin>
70+
</plugins>
7371
</build>
7472

7573
<repositories>

src/main/java/cz/foresttech/forestredis/spigot/ForestRedisSpigot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void onMessageReceived(String channel, MessageTransferObject messageTrans
4545
AsyncRedisMessageReceivedEvent asyncRedisMessageReceivedEvent = new AsyncRedisMessageReceivedEvent(channel, messageTransferObject);
4646
Bukkit.getPluginManager().callEvent(asyncRedisMessageReceivedEvent);
4747

48-
if (asyncRedisMessageReceivedEvent.isCancelled()) {
48+
if (!asyncRedisMessageReceivedEvent.isCancelled()) {
4949
Bukkit.getScheduler().runTask(this, () -> Bukkit.getPluginManager().callEvent(new RedisMessageReceivedEvent(asyncRedisMessageReceivedEvent.getChannel(), asyncRedisMessageReceivedEvent.getMessageTransferObject())));
5050
}
5151
}

0 commit comments

Comments
 (0)