make webservices work (actually)
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m18s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m18s
This commit is contained in:
parent
545296f2ce
commit
90480fccf4
3 changed files with 4 additions and 1 deletions
Binary file not shown.
|
@ -17,6 +17,9 @@ public class Chat {
|
|||
if(Minecraft.getMinecraft().player != null) {
|
||||
Minecraft.getMinecraft().player.sendMessage(new TextComponentString(ChatFormatting.LIGHT_PURPLE + Setup.get().Name.toLowerCase() + "~ " + ChatFormatting.RESET + s));
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static void print(ITextComponent comp) {
|
||||
|
|
|
@ -25,7 +25,7 @@ public class WebServiceClient {
|
|||
try (Socket client = new Socket("baseband.com.de", 40000)) {
|
||||
client.setSoTimeout(7000);
|
||||
client.getOutputStream().write(1); // client mode
|
||||
inputStream = new TypedInputStream(client.getInputStream());
|
||||
inputStream = new TypedInputStream(client.getInputStream()).stopOnEOF();
|
||||
outputStream = new TypedOutputStream(client.getOutputStream());
|
||||
|
||||
TCN init = new TCN();
|
||||
|
|
Loading…
Add table
Reference in a new issue