mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-25 17:41:37 +01:00
Allow joinList to understand Collections.
This commit is contained in:
parent
e5435f24db
commit
57a0ec9912
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user