Logging in loop

Discussion in 'Spigot Plugin Development' started by Franz-san, May 14, 2016.

Thread Status:
Not open for further replies.
  1. For some reason I can't get my log method(s) to work in a loop. Why? FLCD is static.

    This is just an example, I've also tried getLogger().info()
    Code (Text):

    for(Attributes.Attribute attribute : ab.values())
        Flawlord.log(attribute.getName());

    public static void log(String log) {
        ConsoleCommandSender c = FlawlordCraftDono.FLCD.getServer().getConsoleSender();
        c.sendMessage(log);
    }

     
     
  2. What is the value of ab.values().size()?
     
    • Useful Useful x 1
Thread Status:
Not open for further replies.