Skip to content

Commit

Permalink
Merge pull request #3 from MrKacafirekCZ/fix-missing-static
Browse files Browse the repository at this point in the history
Fixed missing static method modifier
  • Loading branch information
SuperNeon4ik authored Apr 23, 2023
2 parents e984e55 + 28aac2a commit e714164
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private void registerCommands() {
* @param playerConsumer Consumer (Player, Protocol Version). Runs for each Noxesium player.
* @return Number of Noxesium players affected.
*/
public int forNoxesiumPlayers(int minProtocol, BiConsumer<Player, Integer> playerConsumer) {
public static int forNoxesiumPlayers(int minProtocol, BiConsumer<Player, Integer> playerConsumer) {
int amount = 0;
for (Player player : Bukkit.getOnlinePlayers()) {
if (noxesiumPlayers.containsKey(player.getUniqueId())) {
Expand All @@ -196,7 +196,7 @@ public int forNoxesiumPlayers(int minProtocol, BiConsumer<Player, Integer> playe
* @param playerConsumer Consumer (Player, Protocol Version). Runs for each Noxesium player.
* @return Number of Noxesium players affected.
*/
public int forNoxesiumPlayers(Collection<Player> players, int minProtocol, BiConsumer<Player, Integer> playerConsumer) {
public static int forNoxesiumPlayers(Collection<Player> players, int minProtocol, BiConsumer<Player, Integer> playerConsumer) {
int amount = 0;
for (Player player : players) {
if (noxesiumPlayers.containsKey(player.getUniqueId())) {
Expand Down

0 comments on commit e714164

Please sign in to comment.