File tree 3 files changed +24
-8
lines changed
java/net/bghddevelopment/punishmentgui/utils
3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 55
55
</build >
56
56
57
57
<repositories >
58
+ <repository >
59
+ <id >placeholderapi</id >
60
+ <url >https://repo.extendedclip.com/content/repositories/placeholderapi/</url >
61
+ </repository >
58
62
<repository >
59
63
<id >spigotmc-repo</id >
60
64
<url >https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url >
67
71
<id >sonatype</id >
68
72
<url >https://oss.sonatype.org/content/groups/public/</url >
69
73
</repository >
70
- <repository >
71
- <id >placeholderapi</id >
72
- <url >http://repo.extendedclip.com/content/repositories/placeholderapi/</url >
73
- </repository >
74
74
<repository >
75
75
<id >localrepository</id >
76
76
<url >file://${project.basedir} /lib</url >
108
108
<scope >system</scope >
109
109
<systemPath >${project.basedir} /lib/Skulls-2.4.1.jar</systemPath >
110
110
</dependency >
111
+ <dependency >
112
+ <groupId >com.github.cryptomorin</groupId >
113
+ <artifactId >XSeries</artifactId >
114
+ <version >8.7.1</version >
115
+ </dependency >
111
116
</dependencies >
112
117
</project >
Original file line number Diff line number Diff line change 1
1
package net .bghddevelopment .punishmentgui .utils ;
2
2
3
+ import com .cryptomorin .xseries .XMaterial ;
4
+ import org .bukkit .Bukkit ;
3
5
import org .bukkit .ChatColor ;
4
6
import org .bukkit .DyeColor ;
5
7
import org .bukkit .Material ;
@@ -26,11 +28,19 @@ public ItemBuilder(ItemStack is) {
26
28
}
27
29
28
30
public ItemBuilder (Material m , int amount ) {
29
- is = new ItemStack (m , amount );
31
+ if (Bukkit .getVersion ().contains ("1.7" )) {
32
+ is = new ItemStack (m , amount );
33
+ } else {
34
+ this .is = new ItemStack (XMaterial .matchXMaterial (m ).parseMaterial (), amount );
35
+ }
30
36
}
31
37
32
38
public ItemBuilder (Material m , int amount , byte durability ) {
33
- is = new ItemStack (m , amount , durability );
39
+ if (Bukkit .getVersion ().contains ("1.7" )) {
40
+ is = new ItemStack (m , amount , durability );
41
+ } else {
42
+ this .is = new ItemStack (XMaterial .matchXMaterial (m ).parseMaterial (), amount , (short ) durability );
43
+ }
34
44
}
35
45
36
46
public ItemBuilder clone () {
Original file line number Diff line number Diff line change 1
1
name : PunishGUI
2
- version : 1.1.1
2
+ version : 1.1.2
3
3
main : net.bghddevelopment.punishmentgui.PunishGUI
4
- authors : [BGHDDevelopment LLC]
4
+ authors : [BGHDDevelopmentLLC]
5
+ api-version : 1.13
5
6
softdepend :
6
7
- PlaceholderAPI
7
8
- HeadDatabase
You can’t perform that action at this time.
0 commit comments