42 lines
803 B
Java
42 lines
803 B
Java
package com.yaohun.order.data;
|
|
|
|
import org.bukkit.Bukkit;
|
|
|
|
import java.util.List;
|
|
|
|
public class OrderContent {
|
|
|
|
private String key;
|
|
|
|
public int twPreic;
|
|
|
|
public int cnPrice;
|
|
|
|
private List<String> stringList;
|
|
|
|
public OrderContent(String key, int tw, int cn, List<String> stringList) {
|
|
this.key = key;
|
|
this.twPreic = tw;
|
|
this.cnPrice = cn;
|
|
this.stringList = stringList;
|
|
}
|
|
|
|
public String getKey() {
|
|
return key;
|
|
}
|
|
|
|
public int getCn() {
|
|
return cnPrice;
|
|
}
|
|
|
|
public int getTw() {
|
|
return twPreic;
|
|
}
|
|
|
|
public void carryOut(String playerName){
|
|
for(String command : stringList){
|
|
Bukkit.dispatchCommand(Bukkit.getConsoleSender(),command.replace("{player}", playerName));
|
|
}
|
|
}
|
|
}
|