package com.gmail.alternejtiw.AreaGuard;import java.io.File;import java.util.ArrayList;import org.bukkit.plugin.java.JavaPlugin;class area{ private int xa; private int ya; private int za; private int xb; private int yb; private int zb; private String owner; private ArrayList<String> citizens; public void defa(int n, int m, int o) { this.xa = n; this.ya = m; this.za = o; } public void defb(int n, int m, int o) { this.xb = n; this.yb = m; this.zb = o; } public void claim(String p, ArrayList<String> q) { this.owner = p; this.citizens = q; } public boolean contains(int x, int y, int z) { return (x <= this.xa && y <= this.ya && z <= this.za && x >= this.xb && y >= this.yb && z >= this.zb)||(x >= this.xa && y >= this.ya && z >= this.za && x <= this.xb && y <= this.yb && z <= this.zb); } public String king() { return this.owner; } public ArrayList<String> guests() { return this.citizens; } public Boolean addguest(String who) { for (int i = 0; i < this.citizens.size(); i++) { if (this.citizens.get(i) == who) { return false; } } this.citizens.add(who); return true; }}public class AreaGuard extends JavaPlugin{ public ArrayList<area> last=new ArrayList<area>(); public void onEnable() { System.out.println("AreaGuard by Filip Ziętkowski has been enabled."); File dir = new File(System.getProperty("user.dir") + "/plugins/AreaGuard"); File[] lista = dir.listFiles(); File pliku = null; for (int i = 0; i < lista.length; i++) { if (lista[i].isFile() && lista[i].getName() != "config.txt") { pliku = new File(lista[i].getName()); if (pliku != null) { } } } } public void onDisable() { System.out.println("AreaGuard by Filip Ziętkowski has been disabled."); }}