mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-25 21:56:06 +00:00
Recovery static method in Residence class...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
@@ -15,7 +15,7 @@ import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
|
||||
import com.bekvon.bukkit.residence.Residence;
|
||||
import com.bekvon.bukkit.residence.ResidenceMain;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -27,9 +27,9 @@ public class HelpEntry {
|
||||
protected String[] lines;
|
||||
protected String name;
|
||||
protected List<HelpEntry> subentrys;
|
||||
Residence plugin;
|
||||
ResidenceMain plugin;
|
||||
|
||||
public HelpEntry(final Residence plugin, final String entryname) {
|
||||
public HelpEntry(final ResidenceMain plugin, final String entryname) {
|
||||
this.plugin = plugin;
|
||||
name = entryname;
|
||||
subentrys = new ArrayList<HelpEntry>();
|
||||
@@ -40,7 +40,7 @@ public class HelpEntry {
|
||||
return linesPerPage;
|
||||
}
|
||||
|
||||
public static HelpEntry parseHelp(final Residence plugin, final FileConfiguration node, final String key) {
|
||||
public static HelpEntry parseHelp(final ResidenceMain plugin, final FileConfiguration node, final String key) {
|
||||
final String split[] = key.split("\\.");
|
||||
final String thisname = split[split.length - 1];
|
||||
final HelpEntry entry = new HelpEntry(plugin, thisname);
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.bekvon.bukkit.residence.Residence;
|
||||
import com.bekvon.bukkit.residence.ResidenceMain;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -25,7 +25,7 @@ public class InformationPager {
|
||||
return linesPerPage;
|
||||
}
|
||||
|
||||
public static void printInfo(final Residence plugin, final CommandSender sender, final String title, final List<String> lines, final int page) {
|
||||
public static void printInfo(final ResidenceMain plugin, final CommandSender sender, final String title, final List<String> lines, final int page) {
|
||||
final int perPage = 6;
|
||||
final int start = (page - 1) * perPage;
|
||||
final int end = start + perPage;
|
||||
@@ -52,7 +52,7 @@ public class InformationPager {
|
||||
}
|
||||
}
|
||||
|
||||
public static void printInfo(final Residence plugin, final CommandSender sender, final String title, final String[] lines, final int page) {
|
||||
public static void printInfo(final ResidenceMain plugin, final CommandSender sender, final String title, final String[] lines, final int page) {
|
||||
InformationPager.printInfo(plugin, sender, title, Arrays.asList(lines), page);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user