Skip to content

Commit

Permalink
feat: Add MULTIPLICATION variable to calculate players multiplied by …
Browse files Browse the repository at this point in the history
…fakePlayersAmount
  • Loading branch information
Kykzuu committed Aug 4, 2024
1 parent 2d0e04a commit a68ef33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ public int getFakePlayersAmount(int players) {
return (int) (Math.floor(Math.random() * fakePlayersAmount) + 1);
case "DIVISION":
return players / fakePlayersAmount;
case "MULTIPLICATION":
return players * fakePlayersAmount;
default:
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ fakeplayers:
# "STATIC": Adds the value of fakeplayers to the amount of players online.
# "RANDOM": Adds a random amount of players between 1 and the fakeplayers value.
# "DIVISION": Adds the amount of players online divided by the fakeplayers value.
# "MULTIPLICATION": Adds the amount of players online multiplied by the fakeplayers value.
mode: "DIVISION"

0 comments on commit a68ef33

Please sign in to comment.