- Баллы
- 76
- Имя в Minecraft
- AguRChek_TV
Не писать "Иди учи жабу"
Короче, в заголовке всё понятно, вот код, скорее всего проблема в моей голове, прошу помочь и рассказать неведующему
Код:
@EventHandler
public void PIE(PlayerInteractEvent e) {
Player p = e.getPlayer();
Action ac = e.getAction();
if(ac == Action.RIGHT_CLICK_AIR || ac == Action.RIGHT_CLICK_BLOCK) {
int balance;
int index;
char passive;
char active;
char gavno;
String list1;
String list2;
plugin.reloadConfig();
File players = new File(getDataFolder() + File.separator + "config.yml");
FileConfiguration users = YamlConfiguration.loadConfiguration(players);
List<String> list = getConfig().getStringList("users");
index = list.indexOf(p.getName());
index++;
list1 = list.get(index);
balance = Integer.parseInt(list1);
index++;
list2 = list.get(index);
passive = list2.charAt(0);
active = list2.charAt(1);
gavno = list2.charAt(2);
if(p.getItemInHand().equals(sl1)) {
p.openInventory(MainMenu);
}
if(p.getItemInHand().equals(sl2)) {
p.sendMessage("" + balance);
p.sendMessage("" + passive);
p.sendMessage("" + active);
p.sendMessage("" + gavno);
}
if(p.getItemInHand().equals(sl3)) {
p.sendMessage("www.twitch.tv/froman2");
}
e.setCancelled(true);
}
}
Короче, в заголовке всё понятно, вот код, скорее всего проблема в моей голове, прошу помочь и рассказать неведующему