title: When i load my minecraft i get the error java.lang.NullPointerExeption how can i fix this?
body: <p>Hello so i am making a minecraft plugin here is the code</p>
  <pre><code>
  import org.bukkit.command.Command;
  import org.bukkit.command.CommandExecutor;
  import org.bukkit.command.CommandSender;
  import org.bukkit.entity.Player;
  
  import me.EpicGamese.CustomEssentials.Main;
  import me.EpicGamese.CustomEssentials.utils.Utils;
  
  public class FlyCommand implements CommandExecutor {
  
      private Main plugin;
  
      public FlyCommand(Main plguin) {
          this.plugin = plugin;
  
          plugin.getCommand(&quot;fly&quot;).setExecutor(this);
      }
  
      public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  
          if (!(sender instanceof Player)) {
              sender.sendMessage(Utils.chat(plugin.getConfig().getString(&quot;Hello&quot;)));
              return true;
          }
  
          Player p = (Player) sender;
  
          if (p.hasPermission(&quot;SubgGame.fly&quot;)) {
              if (p.isFlying()) {
                  p.setAllowFlight(false);
                  p.setFlying(false);
                  p.sendMessage(Utils.chat(plugin.getConfig().getString(&quot;Hello&quot;)));
                  return true;
              } else {
                  p.setAllowFlight(true);
                  p.setFlying(true);
                  p.sendMessage(Utils.chat(plugin.getConfig().getString(&quot;Hello&quot;)));
              }
          } else {
              p.sendMessage(Utils.chat(&quot;Hello&quot;));
          }
  
          return false;
      }
  
  }
  </code></pre>
  <p>and when i try and load it into my server i get the error java.lang.NullPointerExeption can some one help and i am coding the plugin for 1.8.8 minecraft</p>