3.8.2 Fixes

This commit is contained in:
rockyhawk64 2020-08-11 21:54:24 +10:00
parent 84d195c45e
commit bcf1734b76
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
version: 3.8.1
version: 3.8.2
main: me.rockyhawk.commandPanels.commandpanels
name: CommandPanels
author: RockyHawk

View File

@ -438,6 +438,11 @@ public class commandpanels extends JavaPlugin {
public List<String> papi(Player p, List<String> setpapi, boolean placeholders) {
try {
if (this.getServer().getPluginManager().isPluginEnabled("PlaceholderAPI") && placeholders) {
int tempInt = 0;
for(String temp : setpapi){
setpapi.set(tempInt,setCpPlaceholders(p,temp));
tempInt += 1;
}
OfflinePlayer offp = getServer().getOfflinePlayer(p.getUniqueId());
setpapi = PlaceholderAPI.setPlaceholders(offp, setpapi);
}