Skip to content

Commit

Permalink
防止在烟花燃放时修改间隔时间
Browse files Browse the repository at this point in the history
  • Loading branch information
SugarMGP committed Jan 8, 2023
1 parent 34d3b73 commit a920ba7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ public boolean onCommand(CommandSender commandSender, Command command, String s,
commandSender.sendMessage(msgHead + ChatColor.DARK_RED + "语法错误");
}
} else if (message0.equals("interval") && message1.equals("set")) {
if (FireworkUtil.getStatus()) {
commandSender.sendMessage(msgHead + ChatColor.DARK_RED + "请先停止烟花燃放");
return false;
}
int num;
try {
num = Integer.parseInt(message2);
Expand Down

0 comments on commit a920ba7

Please sign in to comment.