Fix my own shitty formatting

This commit is contained in:
Mafrans 2018-06-02 23:09:58 +02:00
parent d38d780887
commit a6584eaa9d

View File

@ -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");
}