Commit 91e4d44 1 parent e2a477e commit 91e4d44 Copy full SHA for 91e4d44
File tree 1 file changed +0
-16
lines changed
src/main/java/me/creepermaxcz/mcbots
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 31
31
32
32
public class Bot extends Thread {
33
33
34
- MinecraftProtocol protocol = null ;
35
-
36
34
private String nickname ;
37
35
private ProxyInfo proxy ;
38
36
private InetSocketAddress address ;
@@ -45,20 +43,6 @@ public class Bot extends Thread {
45
43
46
44
private boolean manualDisconnecting = false ;
47
45
48
- public Bot (String nickname , InetSocketAddress address , ProxyInfo proxy ) {
49
- this .nickname = nickname ;
50
- this .address = address ;
51
- this .proxy = proxy ;
52
-
53
- Log .info ("Creating bot" , nickname );
54
- protocol = new MinecraftProtocol (nickname );
55
- client = ClientNetworkSessionFactory .factory ()
56
- .setAddress (address .getHostString (), address .getPort ())
57
- .setProtocol (protocol )
58
- .setProxy (proxy )
59
- .create ();
60
- }
61
-
62
46
public Bot (MinecraftProtocol protocol , InetSocketAddress address , ProxyInfo proxy ) {
63
47
this .nickname = protocol .getProfile ().getName ();
64
48
this .address = address ;
You can’t perform that action at this time.
0 commit comments