My main class starts with this:

```
public class ranks extends JavaPlugin implements Listener{

```

within that class, I have:

```
public static boolean isAdmin(String playerName){

    File adminFile = new File(this.getDataFolder() + File.separator + "admins.txt");

```

The problem is that I can't use "this". isAdmin MUST be static because in another class:

```
public class customInventory implements Listener{

```

I need to access it using:

```
if(!ranks.isAdmin(e.getPlayer().getName())){

```

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.