Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for protocol #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

ext {
paintbotVersion = '0.2.0'
paintbotVersion = '0.3.0'
}

sourceCompatibility = 11
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/se/cygni/paintbot/SimplePaintbotPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class SimplePaintbotPlayer extends BasePaintbotClient {
private static final boolean AUTO_START_GAME = true;

// Personalise your game ...
private static final String SERVER_PROTOCOL = "wss";
private static final String SERVER_NAME = "server.paintbot.cygni.se";
private static final int SERVER_PORT = 80;

Expand Down Expand Up @@ -176,6 +177,11 @@ public String getName() {
return BOT_NAME;
}

@Override
public String getProtocol() {
return SERVER_PROTOCOL;
}

@Override
public String getServerHost() {
return SERVER_NAME;
Expand Down