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:
@@ -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.
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user