package me.yonatanx.FreezePlus.cmds;

import me.yonatanx.FreezePlus.FreezePlus;
import me.yonatanx.FreezePlus.freeze.FreezeManager;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;

/**
 * Created by Yonatan.
 */

public class FreezeServerCmd implements CommandExecutor {
    @Override
    public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
        if (commandSender.hasPermission("freezeplus.freezeserver")) {
            FreezeManager fm = FreezePlus.get().getFreezeManager();
            if (fm.isServerFrozen())
                fm.unfreezeServer();
            else
                fm.freezeServer();
        }
        else commandSender.sendMessage(ChatColor.RED + "No permission.");
        return true;
    }
}

@@ -511,16 +511,17 @@
     if (
+!
 commandS
@@ -567,24 +567,132 @@
 erver%22))
- 
 %7B%0D%0A    
+        commandSender.sendMessage(ChatColor.RED + %22No permission.%22);%0D%0A            return true;%0D%0A        %7D%0D%0A%0D%0A
         
@@ -752,28 +752,24 @@
 );%0D%0A        
-    
 if (fm.isSer
@@ -780,33 +780,16 @@
 rozen())
-%0D%0A               
  fm.unfr
@@ -815,33 +815,12 @@
     
-  
-  
 else
-%0D%0A               
  fm.
@@ -840,92 +840,8 @@
 );%0D%0A
-        %7D%0D%0A        else commandSender.sendMessage(ChatColor.RED + %22No permission.%22);
 %0D%0A  

Update FreezeServerCmd.java