mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Update meta to include myself as an author
This commit is contained in:
6 files changed
+17
-7
No files matched your search
@@ -0,0 +1 @@
|
||||
github: [Draycia, jpenilla]
|
||||
@@ -18,6 +18,10 @@ indra {
|
||||
id.set("Vicarious")
|
||||
name.set("Josua Parks")
|
||||
}
|
||||
developer {
|
||||
id.set("jmp")
|
||||
name.set("Jason Penilla")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"name": "${name}",
|
||||
"description": "${description}",
|
||||
"authors": [
|
||||
"Draycia"
|
||||
"Draycia",
|
||||
"jmp"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "${github_url}",
|
||||
|
||||
@@ -81,7 +81,7 @@ bukkit {
|
||||
version = project.version as String
|
||||
main = "net.draycia.carbon.libs.io.papermc.papertrail.RequiresPaperPlugins"
|
||||
apiVersion = "1.19"
|
||||
author = "Draycia"
|
||||
authors = listOf("Draycia", "jmp")
|
||||
website = GITHUB_REPO_URL
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.checkerframework.framework.qual.DefaultQualifier;
|
||||
@@ -36,26 +37,28 @@ import org.checkerframework.framework.qual.DefaultQualifier;
|
||||
public class CarbonPAPIPlaceholders extends PlaceholderExpansion {
|
||||
|
||||
private final UserManager<?> userManager;
|
||||
private final JavaPlugin plugin;
|
||||
|
||||
@Inject
|
||||
public CarbonPAPIPlaceholders(final UserManager<?> userManager) {
|
||||
public CarbonPAPIPlaceholders(final UserManager<?> userManager, final JavaPlugin plugin) {
|
||||
this.userManager = userManager;
|
||||
this.plugin = plugin;
|
||||
this.register();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdentifier() {
|
||||
return "carbonchat";
|
||||
return this.plugin.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAuthor() {
|
||||
return "Draycia";
|
||||
return "[" + String.join(", ", this.plugin.getPluginMeta().getAuthors()) + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getVersion() {
|
||||
return "1.0.0";
|
||||
return this.plugin.getPluginMeta().getVersion();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"description": "${description}",
|
||||
"url": "${url}",
|
||||
"authors": [
|
||||
"Draycia"
|
||||
"Draycia",
|
||||
"jmp"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user