• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CyclopsMC / IntegratedDynamics / 20210191346

14 Dec 2025 03:32PM UTC coverage: 19.514% (-33.5%) from 53.061%
20210191346

push

github

rubensworks
Remove deprecations

663 of 8728 branches covered (7.6%)

Branch coverage included in aggregate %.

6786 of 29445 relevant lines covered (23.05%)

1.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/org/cyclops/integrateddynamics/command/CommandCrash.java
1
package org.cyclops.integrateddynamics.command;
2

3
import com.mojang.brigadier.Command;
4
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
5
import com.mojang.brigadier.context.CommandContext;
6
import com.mojang.brigadier.exceptions.CommandSyntaxException;
7
import net.minecraft.commands.CommandSourceStack;
8
import net.minecraft.commands.Commands;
9
import org.cyclops.integrateddynamics.IntegratedDynamics;
10
import org.cyclops.integrateddynamics.core.TickHandler;
11

12
/**
13
 * A command to let the server crash.
14
 * @author rubensworks
15
 *
16
 */
17
public class CommandCrash implements Command<CommandSourceStack> {
×
18

19
    @Override
20
    public int run(CommandContext<CommandSourceStack> context) throws CommandSyntaxException {
21
        IntegratedDynamics.clog(org.apache.logging.log4j.Level.WARN, context.getSource().getTextName() + " initialized a server crash.");
×
22
        TickHandler.getInstance().setShouldCrash();
×
23
        return 0;
×
24
    }
25

26
    public static LiteralArgumentBuilder<CommandSourceStack> make() {
27
        return Commands.literal("crash")
×
28
                .requires((commandSource) -> commandSource.hasPermission(2))
×
29
                        .executes(new CommandCrash());
×
30
    }
31

32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc