Skip to content

Commit 22cbf58

Browse files
committed
4.18
1 parent 2150ee6 commit 22cbf58

File tree

16 files changed

+46
-43
lines changed

16 files changed

+46
-43
lines changed

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ plugins {
2626
`java-library`
2727
`maven-publish`
2828
id("io.github.goooler.shadow") version "8.1.7"
29-
id("com.wolfyscript.devtools.docker.minecraft_servers") version "2.0-SNAPSHOT"
29+
//id("com.wolfyscript.devtools.docker.minecraft_servers") version "2.0-SNAPSHOT"
3030
id("com.jfrog.artifactory") version "5.2.0"
3131
}
3232

@@ -71,14 +71,17 @@ tasks.withType<Javadoc> {
7171

7272
val debugPort: String = "5006"
7373

74+
/*
7475
minecraftDockerRun {
7576
val customEnv = env.get().toMutableMap()
7677
customEnv["MEMORY"] = "2G"
7778
customEnv["JVM_OPTS"] = "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:${debugPort}"
7879
env.set(customEnv)
7980
arguments("--cpus", "2", "-it") // Constrain to only use 2 cpus, and allow for console interactivity with 'docker attach'
8081
}
82+
*/
8183

84+
/*
8285
minecraftServers {
8386
serversDir.set(file("${System.getProperty("user.home")}${File.separator}minecraft${File.separator}test_servers_v4"))
8487
libName.set("${project.name}-${version}.jar")
@@ -138,6 +141,7 @@ minecraftServers {
138141
}
139142
}
140143
}
144+
*/
141145

142146
artifactory {
143147
publish {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
#
2222

2323
group = com.wolfyscript.customcrafting
24-
version = 4.17-beta.5
24+
version = 4.18-petu

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
distributionBase=GRADLE_USER_HOME
2424
distributionPath=wrapper/dists
25-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
25+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
2626
networkTimeout=10000
2727
validateDistributionUrl=true
2828
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spigot/build.gradle.kts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ plugins {
2626
`java-library`
2727
`maven-publish`
2828
id("io.github.goooler.shadow") version "8.1.7"
29-
id("com.wolfyscript.devtools.docker.minecraft_servers") version "2.0-SNAPSHOT"
29+
// id("com.wolfyscript.devtools.docker.minecraft_servers") version "2.0-SNAPSHOT"
3030
id("com.jfrog.artifactory") version "5.2.0"
3131
}
3232

@@ -43,19 +43,19 @@ repositories {
4343
}
4444

4545
dependencies {
46-
api("com.comphenix.protocol:ProtocolLib:5.0.0-SNAPSHOT")
47-
api("org.bstats:bstats-bukkit:3.0.0")
46+
//api("com.comphenix.protocol:ProtocolLib:5.0.0-SNAPSHOT")
47+
api("org.bstats:bstats-bukkit:3.0.2")
4848
compileOnly("io.lumine:Mythic-Dist:5.3.5")
49-
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
49+
compileOnly("io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT")
5050
compileOnly("com.mojang:authlib:3.11.50")
51-
compileOnly("org.jetbrains:annotations:23.0.0")
52-
compileOnly("io.netty:netty-all:4.1.85.Final")
53-
compileOnly("me.clip:placeholderapi:2.10.4")
51+
compileOnly("org.jetbrains:annotations:24.1.0")
52+
compileOnly("io.netty:netty-all:4.1.111.Final")
53+
compileOnly("me.clip:placeholderapi:2.11.1")
5454
compileOnly("io.th0rgal:oraxen:1.170.0")
55-
compileOnly("com.wolfyscript.wolfyutils.spigot:wolfyutils-spigot:4.17-beta.2-SNAPSHOT")
55+
compileOnly("com.wolfyscript.wolfyutils.spigot:wolfyutils-spigot:4.18-petu")
5656
}
5757

58-
java.sourceCompatibility = JavaVersion.VERSION_17
58+
java.sourceCompatibility = JavaVersion.VERSION_21
5959

6060
tasks.named<ProcessResources>("processResources") {
6161
duplicatesStrategy = DuplicatesStrategy.INCLUDE

spigot/src/main/java/me/wolfyscript/customcrafting/compatibility/PluginCompatibility.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
package me.wolfyscript.customcrafting.compatibility;
2424

2525
import me.wolfyscript.customcrafting.CustomCrafting;
26-
import me.wolfyscript.customcrafting.compatibility.protocollib.ProtocolLib;
26+
//import me.wolfyscript.customcrafting.compatibility.protocollib.ProtocolLib;
2727
import me.wolfyscript.customcrafting.placeholderapi.PlaceHolder;
2828
import me.wolfyscript.utilities.api.WolfyUtilities;
2929
import me.wolfyscript.utilities.util.version.WUVersion;
@@ -34,14 +34,14 @@ public class PluginCompatibility {
3434

3535
private final CustomCrafting plugin;
3636

37-
private ProtocolLib protocolLib = null;
37+
//private ProtocolLib protocolLib = null;
3838

3939
public PluginCompatibility(CustomCrafting plugin) {
4040
this.plugin = plugin;
4141
}
4242

4343
public void init() {
44-
Plugin protocolLibPlugin = Bukkit.getPluginManager().getPlugin("ProtocolLib");
44+
/*Plugin protocolLibPlugin = Bukkit.getPluginManager().getPlugin("ProtocolLib");
4545
if (protocolLibPlugin != null) {
4646
String verString = protocolLibPlugin.getDescription().getVersion();
4747
WUVersion version = WUVersion.parse(verString);
@@ -59,7 +59,7 @@ public void init() {
5959
}
6060
plugin.getLogger().info("Detected ProtocolLib... initiating additional features.");
6161
this.protocolLib = new ProtocolLib(plugin);
62-
}
62+
}*/
6363
if (WolfyUtilities.hasPlugin("PlaceholderAPI")) {
6464
plugin.getApi().getConsole().info("$msg.startup.placeholder$");
6565
new PlaceHolder(plugin).register();

spigot/src/main/java/me/wolfyscript/customcrafting/compatibility/protocollib/ProtocolLib.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2121
*/
2222

23+
/*
24+
2325
package me.wolfyscript.customcrafting.compatibility.protocollib;
2426
2527
import com.comphenix.protocol.PacketType;
@@ -30,13 +32,7 @@
3032
import com.comphenix.protocol.events.PacketContainer;
3133
import com.comphenix.protocol.events.PacketEvent;
3234
import com.comphenix.protocol.reflect.EquivalentConverter;
33-
import com.comphenix.protocol.reflect.FuzzyReflection;
3435
import com.comphenix.protocol.reflect.StructureModifier;
35-
import com.comphenix.protocol.reflect.accessors.Accessors;
36-
import com.comphenix.protocol.reflect.accessors.MethodAccessor;
37-
import com.comphenix.protocol.reflect.fuzzy.FuzzyMethodContract;
38-
import com.comphenix.protocol.utility.MinecraftReflection;
39-
import com.comphenix.protocol.wrappers.Converters;
4036
import com.comphenix.protocol.wrappers.MinecraftKey;
4137
import java.util.HashMap;
4238
import java.util.List;
@@ -173,10 +169,12 @@ public Class<RecipeWrapper> getSpecificType() {
173169
});
174170
}
175171
176-
/**
172+
*/
173+
/**
177174
* This wrapper contains data read from a packet using the {@link EquivalentConverter} from {@link #getRecipeKeyConverter()}.
178175
* It will cache the handle of the recipe, and will be reapplied to the packet.
179-
*/
176+
*//*
177+
180178
private record RecipeWrapper(MinecraftKey key, Object recipe) {
181179
182180
public MinecraftKey getKey() {
@@ -189,3 +187,4 @@ public Object getRecipe() {
189187
}
190188
191189
}
190+
*/

spigot/src/main/java/me/wolfyscript/customcrafting/data/persistent/CauldronBlockData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public void tick() {
199199

200200
if (recipe.checkRecipeStatus(status)) {
201201
spawnBubbles(world, loc, level);
202-
world.spawnParticle(Particle.REDSTONE, loc.add(particleLevel(level)), 1, 0.17, 0.2, 0.17, 4.0, new Particle.DustOptions(Color.fromBGR(random.nextInt(255), random.nextInt(255), random.nextInt(255)), random.nextInt(2)));
202+
world.spawnParticle(Particle.DUST, loc.add(particleLevel(level)), 1, 0.17, 0.2, 0.17, 4.0, new Particle.DustOptions(Color.fromBGR(random.nextInt(255), random.nextInt(255), random.nextInt(255)), random.nextInt(2)));
203203
passedTicks++;
204204
} else {
205205
//The cauldron doesn't fulfill the requirements of the recipe. Perhaps water level changed or the campfire was extinguished.

spigot/src/main/java/me/wolfyscript/customcrafting/gui/item_creator/ButtonArmorSlotToggle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public ButtonArmorSlotToggle(EquipmentSlot slot, Material material) {
4646
super(key(slot), (cache, guiHandler, player, guiInventory, i) -> {
4747
CustomItem item = cache.getItems().getItem();
4848
return !ItemUtils.isAirOrNull(item) && item.hasEquipmentSlot(slot);
49-
}, new ButtonState<>(key(slot) + ".enabled", new ItemBuilder(material).addEnchantment(Enchantment.DURABILITY, 1).addItemFlags(ItemFlag.HIDE_ENCHANTS).create(), (ItemsButtonAction) (cache, items, guiHandler, player, inventory, i, event) -> {
49+
}, new ButtonState<>(key(slot) + ".enabled", new ItemBuilder(material).addEnchantment(Enchantment.UNBREAKING, 1).addItemFlags(ItemFlag.HIDE_ENCHANTS).create(), (ItemsButtonAction) (cache, items, guiHandler, player, inventory, i, event) -> {
5050
items.getItem().removeEquipmentSlots(slot);
5151
return true;
5252
}), new ButtonState<>(key(slot) + ".disabled", material, (ItemsButtonAction) (cache, items, guiHandler, player, inventory, i, event) -> {

spigot/src/main/java/me/wolfyscript/customcrafting/gui/item_creator/ButtonAttributeSlot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public ButtonAttributeSlot(EquipmentSlot equipmentSlot, Material material) {
4242
return true;
4343
}, (hashMap, cache, guiHandler, player, inventory, itemStack, slot, help) -> {
4444
if (guiHandler.getCustomCache().getItems().isAttributeSlot(equipmentSlot)) {
45-
return new ItemBuilder(itemStack).addEnchantment(Enchantment.DURABILITY, 1).addItemFlags(ItemFlag.HIDE_ENCHANTS).create();
45+
return new ItemBuilder(itemStack).addEnchantment(Enchantment.UNBREAKING, 1).addItemFlags(ItemFlag.HIDE_ENCHANTS).create();
4646
}
4747
return itemStack;
4848
});

0 commit comments

Comments
 (0)