mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-24 21:46:16 +00:00
@@ -551,6 +551,12 @@ public class ResidenceMain extends JavaPlugin {
|
||||
@Override
|
||||
public void reloadConfig() {
|
||||
config.reload();
|
||||
gmanager = new PermissionManager(this);
|
||||
imanager = new WorldItemManager(this.getConfig());
|
||||
wmanager = new WorldFlagManager(this);
|
||||
entitymanager = new EntityManager(this);
|
||||
chatmanager = new ChatManager(this);
|
||||
rentmanager = new RentManager(this);
|
||||
}
|
||||
|
||||
public void reloadPlugin() {
|
||||
|
||||
@@ -17,7 +17,7 @@ public class CommandResLoad extends BaseCommand {
|
||||
ResidenceMain plugin;
|
||||
|
||||
public CommandResLoad(final ResidenceMain plugin) {
|
||||
super("resreload");
|
||||
super("resload");
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ public class CommandResLoad extends BaseCommand {
|
||||
public void execute(final CommandSender sender, final Command command, final String label, final String[] args) throws CommandException {
|
||||
if (!(sender instanceof Player) || plugin.getPermissionManager().isResidenceAdmin((Player) sender)) {
|
||||
try {
|
||||
plugin.reloadConfig();
|
||||
plugin.loadYml();
|
||||
sender.sendMessage(ChatColor.GREEN + "[Residence] 从配置保存文件重新载入数据...");
|
||||
} catch (final Exception ex) {
|
||||
|
||||
Reference in New Issue
Block a user