Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a0aa341
Bump br.net.fabiozumbi12.RedProtect:RedProtect-Spigot
dependabot[bot] Dec 9, 2024
3e3f838
Bump org.bstats:bstats-bukkit from 3.0.3 to 3.1.0
dependabot[bot] Dec 18, 2024
b6a3aaa
probably some bugfix
MagicTeaMC Dec 27, 2024
1e863f6
Merge remote-tracking branch 'origin/dev' into dev
MagicTeaMC Dec 27, 2024
07decd6
Merge branch 'release' into dev
MagicTeaMC Dec 27, 2024
da3568e
Bump com.github.Xyness:SimpleClaimSystem from 1.10.0.4 to 1.12.0.10
dependabot[bot] Feb 17, 2025
088b88a
Bump com.sk89q.worldguard:worldguard-bukkit from 7.0.10 to 7.0.13
dependabot[bot] Feb 17, 2025
b6f56a7
Merge pull request #23 from MagicTeaMC/dependabot/gradle/dev/com.sk89…
MagicTeaMC Mar 15, 2025
ae08107
Merge pull request #22 from MagicTeaMC/dependabot/gradle/dev/com.gith…
MagicTeaMC Mar 15, 2025
dbb4121
Merge pull request #10 from MagicTeaMC/dependabot/gradle/dev/org.bsta…
MagicTeaMC Mar 15, 2025
e957b13
Merge pull request #15 from MagicTeaMC/dependabot/gradle/dev/br.net.f…
MagicTeaMC Mar 15, 2025
2ca22cc
Bump de.tr7zw:item-nbt-api from 2.13.3-SNAPSHOT to 2.14.2-SNAPSHOT
dependabot[bot] Mar 15, 2025
648c380
Merge pull request #17 from MagicTeaMC/dependabot/gradle/dev/de.tr7zw…
MagicTeaMC Mar 15, 2025
44d1513
Add support for CustomModelData
MagicTeaMC Mar 15, 2025
867ebff
Bump com.github.angeschossen:LandsAPI from 7.8.5 to 7.12.7
dependabot[bot] Mar 17, 2025
cf16d69
Bump jvm from 1.8.0 to 2.1.20
dependabot[bot] Mar 24, 2025
69db8b9
1.21.5 support
MagicTeaMC Mar 26, 2025
12c5311
Bump io.lumine:Mythic-Dist from 5.7.1 to 5.8.1
dependabot[bot] Mar 26, 2025
ca59094
Merge pull request #24 from MagicTeaMC/dependabot/gradle/dev/io.lumin…
MagicTeaMC Mar 26, 2025
b94a732
Merge pull request #28 from MagicTeaMC/dependabot/gradle/dev/com.gith…
MagicTeaMC Mar 26, 2025
e2af9a0
Bump com.github.angeschossen:LandsAPI from 7.12.7 to 7.13.1
dependabot[bot] Mar 31, 2025
dda5b65
Bump io.lumine:Mythic-Dist from 5.8.1 to 5.8.2
dependabot[bot] Mar 31, 2025
9df0991
Merge pull request #29 from MagicTeaMC/dependabot/gradle/dev/jvm-2.1.20
MagicTeaMC Apr 4, 2025
3e24a9a
Bump io.lumine:Mythic-Dist from 5.8.1 to 5.8.2 (#33)
MagicTeaMC Apr 4, 2025
6987b84
Bump com.github.angeschossen:LandsAPI from 7.12.7 to 7.13.1 (#32)
MagicTeaMC Apr 4, 2025
c006392
update nbt-api
Apr 4, 2025
ddc3980
[ci skip] Update README.md
MagicTeaMC Apr 16, 2025
2fd1124
update nbt api to latest stable release
MagicTeaMC Apr 18, 2025
870826b
Merge remote-tracking branch 'origin/dev' into dev
MagicTeaMC Apr 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ You can download a copy at [Modrinth](https://modrinth.com/plugin/catchball)
- GriefPrevention
- Lands
- RedProtect
- SimpleClaimSystem
- MythicMobs
- PlaceholderAPI

Expand Down
25 changes: 11 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ plugins {
java
`java-library`
`maven-publish`
kotlin("jvm") version "1.8.0"
kotlin("jvm") version "2.1.20"
id("com.gradleup.shadow") version "8.3.5"
id("xyz.jpenilla.run-paper") version "2.3.1"
}

group = "com.github.nutt1101"
version = "2.0.3"
version = "2.0.4"
description = "CatchBall"
java.sourceCompatibility = JavaVersion.VERSION_21

Expand Down Expand Up @@ -56,19 +56,15 @@ repositories {

dependencies {
api("org.bstats:bstats-bukkit:3.1.0")
api("com.github.Paulem79:Spigot-UpdateChecker:3cfb265fb8")
api("de.tr7zw:item-nbt-api:2.14.1")
api("com.jeff_media:SpigotUpdateChecker:3.0.4")
api("de.tr7zw:item-nbt-api:2.15.0")
api("cn.handyplus.lib.adapter:FoliaLib:1.1.5")
compileOnly("org.spigotmc:spigot-api:1.20.5-R0.1-SNAPSHOT")
compileOnly("io.lumine:Mythic-Dist:5.7.1")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.12")
compileOnly("io.lumine:Mythic-Dist:5.8.2")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.13")
compileOnly("com.github.TechFortress:GriefPrevention:17.0.0")
compileOnly("com.github.angeschossen:LandsAPI:7.8.5")
implementation("com.github.Xyness:SimpleClaimSystem:1.11") {
attributes {
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 22)
}
}
compileOnly("com.github.angeschossen:LandsAPI:7.13.1")
compileOnly(files("./libs/SimpleClaimSystem-1.11.6.2.jar"))
compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly ("io.github.fabiozumbi12.RedProtect:RedProtect-Core:8.1.2"){ exclude(group = "*")} // Core is not needed but allow access to all region methods
compileOnly ("io.github.fabiozumbi12.RedProtect:RedProtect-Spigot:8.1.2"){ exclude(group = "*")}
Expand Down Expand Up @@ -105,7 +101,8 @@ tasks {

minimize()

relocate("com.jeff_media.updatechecker", "org.milkteamc.autotreechop.libs.updatechecker")
relocate("com.jeff_media.updatechecker", "tw.maoyue.catchball.libs.updatechecker")
relocate("de.tr7zw.changeme.nbtapi", "tw.maoyue.catchball.libs.nbtapi")

}
}
Expand All @@ -115,7 +112,7 @@ tasks.jar {
}

tasks.runServer {
minecraftVersion("1.21.3")
minecraftVersion("1.21.4")
}

runPaper.folia.registerTask()
14 changes: 7 additions & 7 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

[versions]
br-net-fabiozumbi12-redprotect-redprotect-core = "7.7.3"
br-net-fabiozumbi12-redprotect-redprotect-spigot = "LATEST"
com-github-angeschossen-landsapi = "7.8.5"
br-net-fabiozumbi12-redprotect-redprotect-spigot = "7.7.3"
com-github-angeschossen-landsapi = "7.13.1"
com-github-techfortress-griefprevention = "17.0.0"
com-github-xyness-simpleclaimsystem = "1.10.0.4"
com-github-xyness-simpleclaimsystem = "1.12.0.10"
com-jeff-media-spigotupdatechecker = "3.0.3"
com-sk89q-worldguard-worldguard-bukkit = "7.0.10"
de-tr7zw-item-nbt-api = "2.13.3-SNAPSHOT"
io-lumine-mythic-dist = "5.7.1"
com-sk89q-worldguard-worldguard-bukkit = "7.0.13"
de-tr7zw-item-nbt-api = "2.14.2-SNAPSHOT"
io-lumine-mythic-dist = "5.8.2"
me-clip-placeholderapi = "2.11.6"
org-bstats-bstats-bukkit = "3.0.3"
org-bstats-bstats-bukkit = "3.1.0"
org-spigotmc-spigot-api = "1.20.5-R0.1-SNAPSHOT"
res-residence = "5.1.4.3"

Expand Down
8 changes: 3 additions & 5 deletions src/main/java/com/github/nutt1101/CatchBall.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.github.nutt1101;

import java.util.logging.Level;

import cn.handyplus.lib.adapter.HandySchedulerUtil;
import com.github.nutt1101.command.Command;
import com.github.nutt1101.command.TabComplete;
Expand All @@ -17,10 +15,10 @@
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.Arrays;
import java.util.List;

public class CatchBall extends JavaPlugin{
import java.util.logging.Level;

public class CatchBall extends JavaPlugin {
private FileConfiguration config = this.getConfig();

public static Plugin plugin;
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/github/nutt1101/ConfigSetting.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public class ConfigSetting {
public static boolean ShowParticles;
public static String CustomParticles;
public static double catchFailRate;
public static int customModelData;
public static int ballCustomModelData;
public static boolean UseRes;
public static boolean UseGF;
public static boolean UseLands;
Expand Down Expand Up @@ -93,6 +95,12 @@ public static void checkConfig() {
CustomParticles = config.isSet("CustomParticles") ? config.getString("CustomParticles") : "CLOUD";
catchFailRate = !config.isSet("catchFailRate") ? config.getDouble("catchFailRate")
: 0.1;
customModelData = !config.isSet("customModelData") ? config.getInt("customModelData")
: 0;

ballCustomModelData = !config.isSet("ballCustomModelData") ? config.getInt("ballCustomModelData")
: 0;


try {
TranslationFileReader.init();
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/github/nutt1101/items/Ball.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import org.bukkit.inventory.meta.ItemMeta;
import net.md_5.bungee.api.ChatColor;

import static com.github.nutt1101.ConfigSetting.customModelData;

public class Ball {

public static ItemStack makeBall() {
Expand All @@ -26,6 +28,10 @@ public static ItemStack makeBall() {
translateAlternateColorCodes('&', lore)).
collect(Collectors.toList()));

if(customModelData != 0) {
meta.setCustomModelData(customModelData);
}

catchball.setItemMeta(meta);

return catchball;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/github/nutt1101/items/GoldEgg.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

import net.md_5.bungee.api.ChatColor;

import static com.github.nutt1101.ConfigSetting.ballCustomModelData;
import static com.github.nutt1101.ConfigSetting.customModelData;

public class GoldEgg {

public static ItemStack makeGoldEgg() {
Expand All @@ -27,6 +30,10 @@ public static ItemStack makeGoldEgg() {
translateAlternateColorCodes('&', lore).replace("{PERCENT}", String.valueOf(ConfigSetting.
chickenDropGoldEggChance))).collect(Collectors.toList()));

if(ballCustomModelData != 0) {
meta.setCustomModelData(ballCustomModelData);
}

goldEgg.setItemMeta(meta);

return goldEgg;
Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Some of the content has been relocated to the locale folder within the configuration file.
# Discord: https://discord.gg/uQ4UXANnP2
# GitHub: https://github.com/MagicTeaMC/CatchBall
# Modrinth: https://modrinth.com/plugin/catchball
# Latest config.yml: https://github.com/MagicTeaMC/CatchBall2/blob/release/src/main/resources/config.yml

# Locale, Current support:
# en(English), zh_tw(繁體中文_臺灣)
Expand Down Expand Up @@ -78,3 +80,9 @@ UseMM: true

CatchableEntity:
- SHEEP

# If you have to custom item, you can change this to your want.
# Set to 0 can disable it.
# Never change it if you don't know what is this.
customModelData: 0
ballCustomModelData: 0