-
Notifications
You must be signed in to change notification settings - Fork 63
PlaceholderAPI
Apehum edited this page Mar 6, 2022
·
2 revisions
PlaceholderAPI is a plugin for Spigot servers that allows server owners to display information from various plugins with a uniform format.
%plasmovoice_installed% — Returns true or false, if the player has the mod installed or not
%plasmovoice_players% — The number of players with the mod installed
Credit to anomouse on Plasmo R&D Discord for making the tutorial, and KPidS for translating and editing.
/papi ecloud download Javascript
/papi reload
Go to /plugins/PlaceholderAPI/javascripts/
and create a file called check_voice.js
.
Paste this code into the file. You can also customize the icons.
var placeholder = "%plasmovoice_installed%";
var voice = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, placeholder);
var checkVoice = function (voice) {
return voice === "true" ? " &a●&f | " : " &c●&f | ";
};
checkVoice(voice);
Go to /plugins/PlaceholderAPI/
folder and open javascript_placeholders.yml
file
Scroll to the bottom of the file and add these lines:
check_voice:
file: check_voice.js
/papi reload
%javascript_check_voice%