Change KickPlayer event to RemovePlayer
This commit is contained in:
parent
aebbdf877e
commit
86acbe62e4
1 changed files with 3 additions and 3 deletions
|
|
@ -92,7 +92,7 @@ export default {
|
|||
});
|
||||
};
|
||||
} else {
|
||||
this.$socket.emit(`KickPlayer`, {
|
||||
this.$socket.emit(`RemovePlayer`, {
|
||||
game_code: this.game_code,
|
||||
target: this.username,
|
||||
user: this.username,
|
||||
|
|
@ -101,7 +101,7 @@ export default {
|
|||
};
|
||||
},
|
||||
kick_player(player) {
|
||||
this.$socket.emit(`KickPlayer`, {
|
||||
this.$socket.emit(`RemovePlayer`, {
|
||||
game_code: this.game_code,
|
||||
user: this.username,
|
||||
target: player,
|
||||
|
|
@ -123,7 +123,7 @@ export default {
|
|||
NewPlayer(data) {
|
||||
this.players.push(data.player);
|
||||
},
|
||||
PlayerKicked(data) {
|
||||
PlayerRemoved(data) {
|
||||
if (data.player === this.username) {
|
||||
this.$emit(`alert`, {
|
||||
message: `You have been removed from the game.`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue