This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.ryanw.launch.me.ryanw.utils; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
public class RESTful { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static class SignListener implements Listener { | |
@EventHandler() | |
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>"); | |
} | |
} |
NewerOlder