1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00
This commit is contained in:
Daniel Walsh 2019-12-06 21:47:18 +00:00
parent 5b9e9a4fb7
commit cafc78b3fe

View File

@ -74,12 +74,10 @@ 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(
alias,
key -> new Contributor(alias, profile)
name,
key -> new Contributor(aliases.getOrDefault(name, name), profile)
);
contributor.setContribution(role, commits);
}