-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from EvoEsports/dev
Version 0.3.8
- Loading branch information
Showing
23 changed files
with
3,407 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker build -t minicontrol:test -f docker/Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
import Confirm from 'core/ui/confirm'; | ||
import ListWindow from 'core/ui/listwindow'; | ||
|
||
export default class PlayerWindow extends ListWindow { | ||
|
||
async onAction(login: string, action: string, item: any): Promise<void> { | ||
if (action == "Kick") { | ||
await tmc.chatCmd.execute(login, "//kick " + item.login); | ||
} else if (action == "Ban") { | ||
await tmc.chatCmd.execute(login, "//ban " + item.login); | ||
const confirm = new Confirm(login, `Kick ${item.nickname}`, this.applyCommand.bind(this), [login, "//kick " + item.login]); | ||
await confirm.display(); | ||
} | ||
if (action == "Ban") { | ||
const confirm = new Confirm(login, `Ban ${item.nickname}`, this.applyCommand.bind(this), [login, "//ban " + item.login]); | ||
await confirm.display(); | ||
} | ||
if (action == "Mute") { | ||
await tmc.chatCmd.execute(login, "//togglemute " + item.login); | ||
} | ||
} | ||
|
||
async applyCommand(login: string, action: string) { | ||
await tmc.chatCmd.execute(login, action); | ||
await tmc.chatCmd.execute(login, "/players"); | ||
} | ||
|
||
} |
Oops, something went wrong.