Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private static class SignListener implements Listener {
public void onSignWrite(SignChangeEvent sign) {
Player player = sign.getPlayer();
for(int x = 1; x < 5; x = x+1) {
if(sign.getLine(x).equalsIgnoreCase("<3")) {
sign.setLine(x, "<heart>");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment