mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +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.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class Command_links extends FreedomCommand {
|
public class Command_links extends FreedomCommand
|
||||||
|
{
|
||||||
@Override
|
@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");
|
ConfigurationSection section = plugin.getConfig().getConfigurationSection("social_links");
|
||||||
Map<String,Object> values = section.getValues(false);
|
Map<String,Object> values = section.getValues(false);
|
||||||
|
|
||||||
List<String> lines = new ArrayList<>();
|
List<String> lines = new ArrayList<>();
|
||||||
|
|
||||||
for(String key : values.keySet()) {
|
for(String key : values.keySet())
|
||||||
if(!(values.get(key) instanceof String)) {
|
{
|
||||||
|
if(!(values.get(key) instanceof String))
|
||||||
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,7 +31,8 @@ public class Command_links extends FreedomCommand {
|
|||||||
|
|
||||||
lines.add(ChatColor.GOLD + "- " + key + ": " + ChatColor.AQUA + link);
|
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");
|
lines.add(ChatColor.GOLD + "- There are no links currently added in the config");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user