9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-27 10:59:13 +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

@@ -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);