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:
@@ -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