forked from Upstream/CommandPanels
3.8.2 Fixes
This commit is contained in:
parent
84d195c45e
commit
bcf1734b76
@ -1,4 +1,4 @@
|
|||||||
version: 3.8.1
|
version: 3.8.2
|
||||||
main: me.rockyhawk.commandPanels.commandpanels
|
main: me.rockyhawk.commandPanels.commandpanels
|
||||||
name: CommandPanels
|
name: CommandPanels
|
||||||
author: RockyHawk
|
author: RockyHawk
|
||||||
|
@ -438,6 +438,11 @@ public class commandpanels extends JavaPlugin {
|
|||||||
public List<String> papi(Player p, List<String> setpapi, boolean placeholders) {
|
public List<String> papi(Player p, List<String> setpapi, boolean placeholders) {
|
||||||
try {
|
try {
|
||||||
if (this.getServer().getPluginManager().isPluginEnabled("PlaceholderAPI") && placeholders) {
|
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());
|
OfflinePlayer offp = getServer().getOfflinePlayer(p.getUniqueId());
|
||||||
setpapi = PlaceholderAPI.setPlaceholders(offp, setpapi);
|
setpapi = PlaceholderAPI.setPlaceholders(offp, setpapi);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user