Skip to content

Commit

Permalink
feat: adds a message for explaining the game's objective
Browse files Browse the repository at this point in the history
Closes #68
  • Loading branch information
RoinujNosde committed Jun 12, 2022
1 parent df2d04b commit 24039b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/me/roinujnosde/titansbattle/BaseGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public void onJoin(@NotNull Warrior warrior) {
participants.add(warrior);
setKit(warrior);
broadcastKey("player_joined", player.getName());
player.sendMessage(getLang("objective"));
if (participants.size() == getConfig().getMaximumPlayers() && lobbyTask != null) {
lobbyTask.processEnd();
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/language-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ command.description.challenge.create: "Creates a challenge config file"
command.description.challenge.setdestination: "Sets a destination for a challenge"
command.description.challenge.setkit: "Sets your inventory as the kit for a challenge"
command.description.setwinner: "Sets a player as the winner"
objective: "&a» Objective: &cKill all your opponents to win!"
item_not_allowed: "&c» You can't join the game with this item: {0}"
challenge_item_not_allowed: "&c» You can't join the challenge with this item: {0}"
changed-field-value: "&a» Successfully changed the field's value!"
Expand Down

0 comments on commit 24039b5

Please sign in to comment.