forked from Upstream/CommandPanels
3.17.2.0
This commit is contained in:
parent
d27becbc10
commit
b51fc7740d
resource
src/me/rockyhawk/commandpanels
@ -1,4 +1,4 @@
|
||||
version: 3.17.1.5
|
||||
version: 3.17.2.0
|
||||
main: me.rockyhawk.commandpanels.CommandPanels
|
||||
name: CommandPanels
|
||||
author: RockyHawk
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user