I need to keep a string from resetting each time the class is called, but haven't found any good way of doing it ...
Every time if (block != LastC){} evaluates to true. ( which shouldn't happen very often )
--- code snip ---
public class Player_Move implements Listener {
String LastC;
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerMove(PlayerMoveEvent event){
String block = event.getPlayer().getLocation().getChunk().getX() + " " + event.getPlayer().getLocation().getChunk().getZ();
if (block != LastC){
LastC = block;
event.getPlayer().sendMessage(ChatColor.GOLD + LastC);
}}}
--- code snip ---