Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
etianl authored Jan 21, 2024
1 parent 7d00f3f commit 650e641
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,40 @@ public void onTick(TickEvent.Pre event) {
if (ticks == 3*tickdelay.get()){ //kill server
ChatUtils.sendPlayerMsg("/gamerule randomTickSpeed "+killvalue.get());
}
if (ticks > 3*tickdelay.get()){ //kill server
toggle();
error("Server Killed.");
}
} else if (!sendCommandFeedback.get() && logAdminCommands.get()){
if (ticks == 1*tickdelay.get()){
ChatUtils.sendPlayerMsg("/gamerule logAdminCommands false");
}
if (ticks == 2*tickdelay.get()){
ChatUtils.sendPlayerMsg("/gamerule randomTickSpeed "+killvalue.get());
}
if (ticks > 2*tickdelay.get()){ //kill server
toggle();
error("Server Killed.");
}
} else if (sendCommandFeedback.get() && !logAdminCommands.get()){
if (ticks == 1*tickdelay.get()){
ChatUtils.sendPlayerMsg("/gamerule sendCommandFeedback false");
}
if (ticks == 2*tickdelay.get()){
ChatUtils.sendPlayerMsg("/gamerule randomTickSpeed "+killvalue.get());
}
if (ticks > 2*tickdelay.get()){ //kill server
toggle();
error("Server Killed.");
}
} else if (!sendCommandFeedback.get() && !logAdminCommands.get()){
if (ticks == 1*tickdelay.get()){
ChatUtils.sendPlayerMsg("/gamerule randomTickSpeed "+killvalue.get());
}
if (ticks > 1*tickdelay.get()){ //kill server
toggle();
error("Server Killed.");
}
}
}
}

0 comments on commit 650e641

Please sign in to comment.