mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 19:14:18 +02:00
Allow joinList to understand Collections.
This commit is contained in:
@@ -121,8 +121,8 @@ public class AlternativeCommandsHandler
|
|||||||
executed.add(label);
|
executed.add(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String> disabledCommands()
|
public Set<String> disabledCommands()
|
||||||
{
|
{
|
||||||
return new ArrayList<String>(executed);
|
return executed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -376,9 +376,9 @@ public class Util
|
|||||||
buf.append(seperator);
|
buf.append(seperator);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (each instanceof List)
|
if (each instanceof Collection)
|
||||||
{
|
{
|
||||||
buf.append(joinList(seperator, ((List)each).toArray()));
|
buf.append(joinList(seperator, ((Collection)each).toArray()));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user