LocalClient.java 530 B

1234567891011121314151617181920212223
  1. package server;
  2. import java.io.BufferedReader;
  3. import java.io.InputStreamReader;
  4. public class LocalClient extends Client {
  5. public LocalClient() { //Constructor for local client, the server, with full permissions
  6. in = new BufferedReader(new InputStreamReader(System.in));
  7. username = "SERVER";
  8. permissions = new String[] {"*"};
  9. readuser = new Thread(this, username);
  10. readuser.start();
  11. }
  12. @Override
  13. public void send(Object message) {
  14. System.out.println(message);
  15. Server.log.log(message.toString());
  16. }
  17. }