mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
*screams internally*
This commit is contained in:
parent
9156d478ef
commit
5b9e9a4fb7
@ -74,10 +74,12 @@ public class ContributionsConnector extends GitHubConnector {
|
||||
int commits = object.get("contributions").getAsInt();
|
||||
String profile = object.get("html_url").getAsString();
|
||||
|
||||
final String alias = aliases.getOrDefault(name, name);
|
||||
|
||||
if (nameFormat.matcher(name).matches() && !blacklist.contains(name)) {
|
||||
Contributor contributor = SlimefunPlugin.getUtilities().contributors.computeIfAbsent(
|
||||
name,
|
||||
key -> new Contributor(aliases.getOrDefault(name, name), profile)
|
||||
alias,
|
||||
key -> new Contributor(alias, profile)
|
||||
);
|
||||
contributor.setContribution(role, commits);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user