TF customizations because nodes wouldn't work

This commit is contained in:
Seth 2020-07-08 04:35:08 -07:00
parent bc4f234a67
commit fc73795ae4
No known key found for this signature in database
GPG key ID: A7BAB4E14F089CF3
8 changed files with 80 additions and 1 deletions

View file

@ -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);