Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Auto join team #1245

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open

Auto join team #1245

wants to merge 11 commits into from

Conversation

niqore
Copy link

@niqore niqore commented Aug 27, 2016

No description provided.

@jacc
Copy link
Contributor

jacc commented Aug 27, 2016

This would actually be a great idea to add this.

@@ -111,5 +117,26 @@ class UpdateProfile : Task {
} catch (e: Exception) {
Log.red("Failed to update profile and inventories")
}
if(ctx.api.playerProfile.playerData.team==TeamColor.NEUTRAL && ctx.api.playerProfile.stats.level>=5) {
if(settings.autoTeam.toUpperCase().equals("RED") || settings.autoTeam.toUpperCase().equals("BLUE") || settings.autoTeam.toUpperCase().equals("YELLOW")) {
val msg = SetPlayerTeamMessage.newBuilder().setTeam(TeamColor.valueOf(settings.autoTeam.toUpperCase())).build()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Little stylecheck: can you replace the tabs with spaces, put a space between the if<->('s and remove the ; at the end of some lines?

@niqore
Copy link
Author

niqore commented Aug 28, 2016

Oops I'm used to program in Java, I will fix that.

@showei
Copy link

showei commented Sep 6, 2016

Anyone can merge these wonderful new functions to dev branch?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants