mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2025-07-10 15:54:22 +00:00
TF customizations because nodes wouldn't work
This commit is contained in:
parent
bc4f234a67
commit
fc73795ae4
8 changed files with 80 additions and 1 deletions
|
@ -6,6 +6,7 @@ import com.lenis0012.bukkit.marriage2.config.Permissions;
|
|||
import com.lenis0012.bukkit.marriage2.config.Settings;
|
||||
import com.lenis0012.bukkit.marriage2.internal.MarriagePlugin;
|
||||
import com.lenis0012.pluginutils.modules.configuration.ConfigurationModule;
|
||||
import org.bukkit.ChatColor;
|
||||
|
||||
public class CommandReload extends Command {
|
||||
|
||||
|
@ -21,6 +22,11 @@ public class CommandReload extends Command {
|
|||
|
||||
@Override
|
||||
public void execute() {
|
||||
if (!marriage.getTFM().isAdmin(player))
|
||||
{
|
||||
sender.sendMessage(ChatColor.RED + "You are not permitted to use this command.");
|
||||
return;
|
||||
}
|
||||
MarriagePlugin plugin = (MarriagePlugin) marriage.getPlugin();
|
||||
ConfigurationModule module = plugin.getModule(ConfigurationModule.class);
|
||||
module.reloadSettings(Settings.class, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue