mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Codacy is incredibly picky and I hope it burns in hell
This commit is contained in:
parent
cb642eba08
commit
c9adb0c5a8
@ -15,7 +15,6 @@ import net.kyori.adventure.text.event.ClickEvent;
|
|||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
import net.kyori.adventure.text.format.TextDecoration;
|
import net.kyori.adventure.text.format.TextDecoration;
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -169,8 +168,6 @@ public class CoreProtectBridge extends FreedomService
|
|||||||
|
|
||||||
public void showPageToPlayer(Player player, FUtil.PaginationList<CoreProtectAPI.ParseResult> results, int pageNum)
|
public void showPageToPlayer(Player player, FUtil.PaginationList<CoreProtectAPI.ParseResult> results, int pageNum)
|
||||||
{
|
{
|
||||||
// No funny business allowed here
|
|
||||||
pageNum = Math.abs(pageNum);
|
|
||||||
if (player == null || !player.isOnline())
|
if (player == null || !player.isOnline())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@ -219,17 +216,11 @@ public class CoreProtectBridge extends FreedomService
|
|||||||
// Do nothing (shuts Codacy up)
|
// Do nothing (shuts Codacy up)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
line.append(symbol);
|
// Symbol, player, action, block
|
||||||
|
line.append(symbol).append(Component.text(entry.getPlayer()).color(TextColor.color(0x30ade4)))
|
||||||
// Player
|
.append(action.color(NamedTextColor.WHITE)).append(
|
||||||
line.append(Component.text(entry.getPlayer()).color(TextColor.color(0x30ade4)));
|
Component.text(entry.getBlockData().getMaterial().name().toLowerCase())
|
||||||
|
.color(TextColor.color(0x30ade4)));
|
||||||
// Action, Part 2
|
|
||||||
line.append(action.color(NamedTextColor.WHITE));
|
|
||||||
|
|
||||||
// Block
|
|
||||||
line.append(Component.text(entry.getBlockData().getMaterial().name().toLowerCase())
|
|
||||||
.color(TextColor.color(0x30ade4)));
|
|
||||||
|
|
||||||
// Rolled back?
|
// Rolled back?
|
||||||
if (entry.isRolledBack())
|
if (entry.isRolledBack())
|
||||||
|
Loading…
Reference in New Issue
Block a user