File tree Expand file tree Collapse file tree 4 files changed +15
-16
lines changed
common/src/main/java/com/loohp/multichatdiscordsrvaddon/utils Expand file tree Collapse file tree 4 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -17,23 +17,22 @@ public static String getResourcePackURL() {
17
17
ProviderType providerType = ProviderType .valueOf (selectedProviderType );
18
18
Debug .debug ("Parsed provider type: " + providerType );
19
19
20
- switch (providerType ) {
21
- case ORAXEN :
20
+ return switch (providerType ) {
21
+ case ORAXEN -> {
22
22
Debug .debug ("Oraxen provider type." );
23
- return OraxenHook .getResourcePackURL ();
24
-
25
- case NEXO :
23
+ yield OraxenHook .getResourcePackURL ();
24
+ }
25
+ case NEXO -> {
26
26
Debug .debug ("Nexo provider type" );
27
- return NexoHook .getResourcePackURL ();
28
-
29
- case ITEMSADDER :
27
+ yield NexoHook .getResourcePackURL ();
28
+ }
29
+ case ITEMSADDER -> {
30
30
Debug .debug ("ItemsAdder provider type." );
31
- return ItemsAdderHook .getResourcePackURL ();
32
- case NONE :
33
- return null ;
34
- }
31
+ yield ItemsAdderHook .getResourcePackURL ();
32
+ }
33
+ case NONE -> null ;
34
+ };
35
35
36
- return null ;
37
36
}
38
37
39
38
}
Original file line number Diff line number Diff line change 24
24
<artifactId >carbonchat</artifactId >
25
25
<version >3.0.0-beta.28</version >
26
26
<scope >system</scope >
27
- <systemPath >${project.build.directory} /../../../lib/CarbonChat.jar</systemPath >
27
+ <systemPath >${project.build.sourceDirectory} /../.. /../../../lib/CarbonChat.jar</systemPath >
28
28
</dependency >
29
29
<dependency >
30
30
<groupId >com.google.inject</groupId >
Original file line number Diff line number Diff line change 24
24
<artifactId >chatcontrolred</artifactId >
25
25
<version >10.28.4</version >
26
26
<scope >system</scope >
27
- <systemPath >${project.build.directory} /../../../lib/ChatControl-Red.jar</systemPath >
27
+ <systemPath >${project.build.sourceDirectory} /../.. /../../../lib/ChatControl-Red.jar</systemPath >
28
28
</dependency >
29
29
</dependencies >
30
30
Original file line number Diff line number Diff line change 24
24
<artifactId >chatcontrol</artifactId >
25
25
<version >11.1.7</version >
26
26
<scope >system</scope >
27
- <systemPath >${project.build.directory} /../../../lib/ChatControl.jar</systemPath >
27
+ <systemPath >${project.build.sourceDirectory} /../.. /../../../lib/ChatControl.jar</systemPath >
28
28
</dependency >
29
29
</dependencies >
30
30
You can’t perform that action at this time.
0 commit comments