Skip to content

Commit d9ad7eb

Browse files
committed
shade stuff
1 parent 995f80e commit d9ad7eb

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

pom.xml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@
6767
<pattern>org.bstats</pattern>
6868
<shadedPattern>lol.hyper.toolstats.bstats</shadedPattern>
6969
</relocation>
70+
<relocation>
71+
<pattern>net.kyori.adventure</pattern>
72+
<shadedPattern>lol.hyper.toolstats.adventure</shadedPattern>
73+
</relocation>
74+
<relocation>
75+
<pattern>lol.hyper.githubreleaseapi</pattern>
76+
<shadedPattern>lol.hyper.toolstats.updater</shadedPattern>
77+
</relocation>
7078
</relocations>
7179
</configuration>
7280
<executions>
@@ -101,15 +109,9 @@
101109
<dependency>
102110
<groupId>org.spigotmc</groupId>
103111
<artifactId>spigot-api</artifactId>
104-
<version>1.18.2-R0.1-SNAPSHOT</version>
112+
<version>1.19-R0.1-SNAPSHOT</version>
105113
<scope>provided</scope>
106114
</dependency>
107-
<dependency>
108-
<groupId>org.jetbrains</groupId>
109-
<artifactId>annotations</artifactId>
110-
<version>23.0.0</version>
111-
<scope>compile</scope>
112-
</dependency>
113115
<dependency>
114116
<groupId>org.bstats</groupId>
115117
<artifactId>bstats-bukkit</artifactId>
@@ -119,20 +121,26 @@
119121
<dependency>
120122
<groupId>lol.hyper</groupId>
121123
<artifactId>github-release-api</artifactId>
122-
<version>1.0.1</version>
123-
<scope>provided</scope>
124+
<version>1.0.2</version>
125+
<scope>compile</scope>
126+
<exclusions>
127+
<exclusion>
128+
<groupId>org.json</groupId>
129+
<artifactId>json</artifactId>
130+
</exclusion>
131+
</exclusions>
124132
</dependency>
125133
<dependency>
126134
<groupId>net.kyori</groupId>
127135
<artifactId>adventure-text-minimessage</artifactId>
128136
<version>4.11.0</version>
129-
<scope>provided</scope>
137+
<scope>compile</scope>
130138
</dependency>
131139
<dependency>
132140
<groupId>net.kyori</groupId>
133141
<artifactId>adventure-platform-bukkit</artifactId>
134142
<version>4.1.0</version>
135-
<scope>provided</scope>
143+
<scope>compile</scope>
136144
</dependency>
137145
</dependencies>
138146
</project>

src/main/java/lol/hyper/toolstats/events/CraftItem.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ public void onCraft(CraftItemEvent event) {
6464
}
6565
}
6666
// test the item before setting it
67-
if (addLore(itemStack, player) == null) {
67+
ItemStack newItem = addLore(itemStack, player);
68+
if (newItem == null) {
6869
return;
6970
}
7071
// set the result
71-
event.setCurrentItem(addLore(itemStack, player));
72+
event.setCurrentItem(newItem);
7273
}
7374
}
7475
}

src/main/resources/plugin.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,4 @@ permissions:
1515
default: true
1616
toolstats.reload:
1717
description: Allows the usage of /toolstats reload
18-
default: op
19-
libraries:
20-
- lol.hyper:github-release-api:1.0.1
21-
- net.kyori:adventure-text-minimessage:4.11.0
22-
- net.kyori:adventure-platform-bukkit:4.1.0
18+
default: op

0 commit comments

Comments
 (0)