mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Fix my own shitty formatting
This commit is contained in:
parent
d38d780887
commit
a6584eaa9d
@ -10,16 +10,20 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class Command_links extends FreedomCommand {
|
||||
public class Command_links extends FreedomCommand
|
||||
{
|
||||
@Override
|
||||
protected boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) {
|
||||
protected boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
||||
{
|
||||
ConfigurationSection section = plugin.getConfig().getConfigurationSection("social_links");
|
||||
Map<String,Object> values = section.getValues(false);
|
||||
|
||||
List<String> lines = new ArrayList<>();
|
||||
|
||||
for(String key : values.keySet()) {
|
||||
if(!(values.get(key) instanceof String)) {
|
||||
for(String key : values.keySet())
|
||||
{
|
||||
if(!(values.get(key) instanceof String))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -27,7 +31,8 @@ public class Command_links extends FreedomCommand {
|
||||
|
||||
lines.add(ChatColor.GOLD + "- " + key + ": " + ChatColor.AQUA + link);
|
||||
}
|
||||
if(lines.size() == 0) {
|
||||
if(lines.size() == 0)
|
||||
{
|
||||
lines.add(ChatColor.GOLD + "- There are no links currently added in the config");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user