Relational placeholders #1827
Unanswered
Florens11
asked this question in
Pending Feature Requests
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice to have a placeholder which returns yes or no depending if someone is on your team or not. (Or green color for yes and red for no)
This would be helpful in pvp and other chaotic events.
I had this code before which worked fine for a while but i then updated my server from 1.8 go 1.20 and it stopped working... The owner of the code said i could give it to the developers of this plugin.
Java
package me.MrGraycat.IslandPlaceholder;
import org.bukkit.entity.Player;
import com.bgsoftware.superiorskyblock.api.SuperiorSkyblockAPI;
import com.bgsoftware.superiorskyblock.api.island.Island;
import com.bgsoftware.superiorskyblock.api.wrappers.SuperiorPlayer;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import me.clip.placeholderapi.expansion.Relational;
public class RelIslandPlaceholder extends PlaceholderExpansion implements Relational {
@OverRide
public String getAuthor() {
return "Mr_Graycat";
}
}
This way you could just put a specific placeholder in front of a nametag or tablist name and it would color the name red or green.
Code above was a placeholderapi addon for the plugin TAB: https://github.com/NEZNAMY/TAB
Beta Was this translation helpful? Give feedback.
All reactions