Skip to content

Ensure players are in correct scoreboard team when they join#14

Merged
zefir-git merged 4 commits intomainfrom
11-handle-in-game-nation-teams-on-join
May 18, 2024
Merged

Ensure players are in correct scoreboard team when they join#14
zefir-git merged 4 commits intomainfrom
11-handle-in-game-nation-teams-on-join

Conversation

@zefir-git
Copy link
Member

  • If the player is not a member but in a nation's team, they are removed from it.
  • If the member is not in a nation, but in a nation's team, they are removed from it.
  • If the member is in a nation, ensures they are in that nation's team.

zefir-git added 3 commits May 14, 2024 11:07
```
java.lang.IllegalArgumentException: Entry cannot be null
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143) ~[guava-32.1.2-jre.jar:?]
    at org.bukkit.craftbukkit.v1_20_R3.scoreboard.CraftTeam.addEntry(CraftTeam.java:226) ~[paper-1.20.4.jar:git-Paper-496]
    at org.bukkit.craftbukkit.v1_20_R3.scoreboard.CraftTeam.addPlayer(CraftTeam.java:221) ~[paper-1.20.4.jar:git-Paper-496]
```
@zefir-git zefir-git added the feature A request, idea, or new functionality label May 14, 2024
@zefir-git zefir-git requested a review from kai-gitt May 14, 2024 08:43
@zefir-git zefir-git self-assigned this May 14, 2024
@zefir-git zefir-git linked an issue May 14, 2024 that may be closed by this pull request
@zefir-git zefir-git enabled auto-merge May 14, 2024 08:48
@zefir-git zefir-git disabled auto-merge May 14, 2024 08:52
@zefir-git zefir-git enabled auto-merge May 14, 2024 08:52
@zefir-git zefir-git added this pull request to the merge queue May 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks May 18, 2024
@zefir-git zefir-git added this pull request to the merge queue May 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks May 18, 2024
@zefir-git zefir-git enabled auto-merge May 18, 2024 20:17
@zefir-git zefir-git added this pull request to the merge queue May 18, 2024
Merged via the queue into main with commit dcdc47b May 18, 2024
@zefir-git zefir-git deleted the 11-handle-in-game-nation-teams-on-join branch May 18, 2024 20:20
@zefir-git zefir-git added this to the Release v1.0.0 milestone May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A request, idea, or new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle in-game nation teams on join

2 participants