Basically this is a mix of some of the things in kraken and other sources I found, but my interpretation of it.
So it's a kraken/other source adaptation.
It works (kind of) except on 1.8 it doesn't put the string in the order you want it to and it also doesn't put the string in the order you want it to. I will be working to fix these in the next few days so be on the look out for any updates, but if you want to contribute just feel free to.
(A lot of this isn't FULLY my code)
https://github.com/kamerondev/Evangelion
Credits to Kraken & other found sources
Known Bugs:
So it's a kraken/other source adaptation.
It works (kind of) except on 1.8 it doesn't put the string in the order you want it to and it also doesn't put the string in the order you want it to. I will be working to fix these in the next few days so be on the look out for any updates, but if you want to contribute just feel free to.
(A lot of this isn't FULLY my code)
https://github.com/kamerondev/Evangelion
Credits to Kraken & other found sources
Known Bugs:
- On 1.8 it doesn't correctly put your strings in the correct place.
- When players join it may mess with the tab on 1.8 (not tested just guessing)
- String longer then 16 wont work (not tested just guessing)
Code:
public void onEnable() {
Evangelion evan = new Evangelion(this, true);
Bukkit.getPluginManager().registerEvents(this, this);
}
@EventHandler
public void onMove(PlayerMoveEvent event) {
if (event.getTo().getBlockX() != event.getFrom().getBlockX()
|| event.getTo().getBlockY() != event.getFrom().getBlockY()) {
AsukaTab tab = AsukaTab.getAsukaTab(event.getPlayer());
if(tab != null) {
tab.put1_8(0, String.valueOf(event.getTo().getBlockX()) + " X");
//tab.put(1, 1, String.valueOf(event.getTo().getBlockY()) + " Y");
}
}
}
}
Last edited:
