Add /region load and /region save
This commit is contained in:
parent
166f96b1b1
commit
d35203f35f
@ -83,6 +83,12 @@ public class RegionCommand implements CommandExecutor {
|
|||||||
m_plugin.regenRegionPost(r);
|
m_plugin.regenRegionPost(r);
|
||||||
p.sendMessage("Region post regenerated.");
|
p.sendMessage("Region post regenerated.");
|
||||||
}
|
}
|
||||||
|
} else if (subCommand.equals("save") && p.hasPermission("regions.create")) {
|
||||||
|
m_plugin.saveRegions();
|
||||||
|
p.sendMessage("Regions saved.");
|
||||||
|
} else if (subCommand.equals("load") && p.hasPermission("regions.create")) {
|
||||||
|
m_plugin.loadRegions();
|
||||||
|
p.sendMessage("Regions loaded.");
|
||||||
} else {
|
} else {
|
||||||
p.sendMessage("Unknown operation. Options are create, remove, city.");
|
p.sendMessage("Unknown operation. Options are create, remove, city.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user