Skip to content

Commit cb95e08

Browse files
author
Marco (Valandur)
committed
feat(integrations): Update to newest MMCRestrict
1 parent 94a9758 commit cb95e08

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ blossom {
1616
spongestart {
1717
eula true
1818
minecraft project.minecraftVersion
19-
spongeForgeVersion "1.12.2-2705-7.1.0-BETA-3243"
20-
spongeVanillaVersion "1.12.2-7.1.0-BETA-75"
19+
spongeForgeVersion "1.12.2-2705-7.1.0-BETA-3399"
20+
spongeVanillaVersion "1.12.2-7.1.0-BETA-105"
21+
//spongeForgeVersion "1.12.2-2705-8.0.0-BETA-3398"
22+
//spongeVanillaVersion "1.12.2-8.0.0-BETA-444"
2123
}
2224

2325
configurations.all {
@@ -87,7 +89,7 @@ dependencies {
8789
compileOnly name: "GWMLibrary 1.3.2"
8890
compileOnly name: "GWMCrates beta-3.1.2"
8991
compileOnly name: "HuskyCrates-v1.8.0PRE2-API7"
90-
compileOnly name: "MMCRestrict-1.4.2-API-7"
92+
compileOnly name: "MMCRestrict-1.5.1-API-7"
9193
compileOnly name: "MMCTickets-1.4.1-API-7"
9294
compileOnly name: "Nucleus-1.3.3-S7.0-api"
9395
compileOnly name: "RedProtect-7.3.0-b68-Universal"

src/main/java/valandur/webapi/integration/mmcrestrict/CachedItemData.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ public Boolean getDropBanned() {
5959
return dropBanned;
6060
}
6161

62+
private Boolean craftBanned;
63+
@ApiModelProperty(value = "True if crafting this item is banned, false otherwise", required = true)
64+
public Boolean getCraftBanned() {
65+
return craftBanned;
66+
}
67+
6268
private Boolean worldBanned;
6369
@ApiModelProperty(value = "True if this item is banned from the world, false otherwise?", required = true)
6470
public Boolean getWorldBanned() {
@@ -79,6 +85,7 @@ public CachedItemData(ItemData value) {
7985
this.breakingBanned = value.getBreakingbanned();
8086
this.placingBanned = value.getPlacingbanned();
8187
this.dropBanned = value.getDropbanned();
88+
this.craftBanned = value.getCraftbanned();
8289
this.worldBanned = value.getWorldbanned();
8390
}
8491

@@ -93,6 +100,7 @@ public Optional<ItemData> getLive() {
93100
placingBanned != null ? placingBanned : false,
94101
ownershipBanned != null ? ownershipBanned : true,
95102
dropBanned != null ? dropBanned : false,
103+
craftBanned != null ? craftBanned : false,
96104
worldBanned != null ? worldBanned : false));
97105
}
98106

0 commit comments

Comments
 (0)