9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-26 10:29:16 +00:00

use new CustomCrops api

This commit is contained in:
XiaoMoMi
2023-10-26 22:17:00 +08:00
parent 7ee17c0cc9
commit fbf040573b
4 changed files with 6 additions and 6 deletions

View File

@@ -45,12 +45,12 @@ dependencies {
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("org.betonquest:betonquest:2.0.0-SNAPSHOT")
compileOnly("xyz.xenondevs.invui:invui:1.19")
compileOnly("com.github.Xiao-MoMi:Custom-Crops:3.3.1.8")
// local jars
compileOnly(files("libs/AdvancedEnchantments-api.jar"))
compileOnly(files("libs/BattlePass-4.0.6-api.jar"))
compileOnly(files("libs/RealisticSeasons-api.jar"))
compileOnly(files("libs/CustomCrops-api.jar"))
compileOnly(files("libs/mcMMO-api.jar"))
compileOnly(files("libs/ClueScrolls-4.8.7-api.jar"))
compileOnly(files("libs/notquests-5.17.1.jar"))

Binary file not shown.

Binary file not shown.

View File

@@ -284,12 +284,12 @@ public class CompetitionManagerImpl implements CompetitionManager {
int players = Bukkit.getOnlinePlayers().size();
if (players < config.getMinPlayersToStart()) {
var actions = config.getSkipActions();
if (actions != null)
for (Player player : Bukkit.getOnlinePlayers()) {
for (Action action : actions) {
action.trigger(new Condition(player));
}
if (actions != null) {
Condition condition = new Condition(null, null, new HashMap<>());
for (Action action : actions) {
action.trigger(condition);
}
}
return false;
}
start(config);