This commit is contained in:
rockyhawk64 2021-11-24 10:33:50 +11:00
parent d27becbc10
commit b51fc7740d
4 changed files with 7 additions and 4 deletions
resource
src/me/rockyhawk/commandpanels

View File

@ -1,4 +1,4 @@
version: 3.17.1.5
version: 3.17.2.0
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk

View File

@ -68,6 +68,7 @@ import java.io.InputStream;
import java.io.Reader;
import java.util.*;
import java.util.concurrent.Callable;
import java.util.stream.Collectors;
public class CommandPanels extends JavaPlugin{
public YamlConfiguration config;
@ -361,7 +362,7 @@ public class CommandPanels extends JavaPlugin{
//check for duplicate panel names
public boolean checkDuplicatePanel(CommandSender sender){
ArrayList<String> apanels = new ArrayList<>();
List<String> apanels = new ArrayList<>();
for(Panel panel : panelList){
apanels.add(panel.getName());
}

View File

@ -12,7 +12,7 @@ import java.io.IOException;
import java.util.List;
public class CommandPanelsAPI {
CommandPanels plugin;
public CommandPanels plugin;
public CommandPanelsAPI(CommandPanels pl) {
this.plugin = pl;
}

View File

@ -136,8 +136,10 @@ public class CommandTags {
}
@SuppressWarnings("deprecation")
public PaywallOutput commandPayWall(Panel panel, Player p, String command) { //return 0 means no funds, 1 is they passed and 2 means paywall is not this command
public PaywallOutput commandPayWall(Panel panel, Player p, String rawCommand) { //return 0 means no funds, 1 is they passed and 2 means paywall is not this command
String tag = plugin.config.getString("config.format.tag") + " ";
//create new instance of command but with placeholders parsed
String command = plugin.tex.placeholders(panel,PanelPosition.Top,p,rawCommand);
switch(command.split("\\s")[0]){
case "paywall=": {
//if player uses paywall= [price]