title: Can't use "this" due to static method but I have to
body: <p>My main class starts with this:</p>
  
  <pre><code>public class ranks extends JavaPlugin implements Listener{
  </code></pre>
  
  <p>within that class, I have:</p>
  
  <pre><code>public static boolean isAdmin(String playerName){
  
      File adminFile = new File(this.getDataFolder() + File.separator + "admins.txt");
  </code></pre>
  
  <p>The problem is that I can't use "this". isAdmin MUST be static because in another class:</p>
  
  <pre><code>public class customInventory implements Listener{
  </code></pre>
  
  <p>I need to access it using:</p>
  
  <pre><code>if(!ranks.isAdmin(e.getPlayer().getName())){
  </code></pre>
  
  <p>As an overview, ranks uses methods from customInventory and vice-versa. Googling static methods and not being able to use "this" hasn't helped whatsoever.</p>