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