mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Handle /jainfo -1
This commit is contained in:
@@ -21,6 +21,8 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.UUID;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
@@ -57,6 +59,10 @@ public class InfoCommand extends BaseCommand {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (offset < 0) {
|
||||
player.sendMessage(Component.text("You cannot input a negative number here").color(NamedTextColor.RED));
|
||||
return;
|
||||
}
|
||||
int pageLength = JukeAlert.getInstance().getSettingsManager().getJaInfoLength(player.getUniqueId());
|
||||
sendSnitchLog(player, snitch, offset, pageLength, filterAction, filterPlayer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user