frage kann mir jemand helfen ich möchte eigene rollen coden habe jetzt aber das problem das mein placeholder also mein eigener placeholder im chat nicht funktioniert package de.felix.glitchWorldPlugin.Rollen_RollenSystem;
public class GlitchRoleExpansion extends PlaceholderExpansion {
@Override public @NotNull String getIdentifier() { return "glitchrole"; }
@Override public @NotNull String getAuthor() { return "GlitchWorld Team"; }
@Override public @NotNull String getVersion() { return "1.0"; }
@Override public String onPlaceholderRequest(Player player, @NotNull String identifier) { if (player == null) return ""; RoleType role = PlayerRoleManager.getRole(player.getUniqueId()); if (role == null) return ""; if (identifier.equalsIgnoreCase("prefix")) { return role.getDisplayName(); } return ""; } } das ist der code kannst du es dir anschauen und mir sagen was falsch ist oder fehlt
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
B
BL4CKLIST・CODING
🔥 ~ LERNE PROGRAMMIEREN! Egal ob Anfänger oder Fortgeschritten: Wir bieten Coding-Hilfe, verständliche Tutorials & eine nette Community 💖