| Total Complexity | 2 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package de.kleiner3.lasertag.command.lasertag.game; |
||
| 18 | public class StopLasertagGameCommand extends ServerFeedbackCommand { |
||
| 19 | protected Optional<CommandFeedback> execute(CommandContext<ServerCommandSource> context) { |
||
| 20 | context.getSource().getServer().stopLasertagGame(); |
||
| 21 | |||
| 22 | return Optional.empty(); |
||
| 23 | } |
||
| 24 | |||
| 25 | static void register(LiteralArgumentBuilder<ServerCommandSource> lab) { |
||
| 26 | lab.then(literal("stopLasertagGame") |
||
| 27 | .requires(s -> s.hasPermissionLevel(1)) |
||
| 28 | .executes(new StopLasertagGameCommand())); |
||
| 29 | } |
||
| 31 |