Skip to content

Commit

Permalink
Merge pull request #166 from Auxilor/develop
Browse files Browse the repository at this point in the history
Fixed manipulating global points via command
  • Loading branch information
WillFP authored Sep 22, 2024
2 parents 0e6a808 + 1e01871 commit 3e8a893
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal class CommandPointsGet(plugin: EcoPlugin): Subcommand(

val player = Bukkit.getPlayer(playerString)

if (player == null && playerString.equals("global", ignoreCase = true)) {
if (player == null && !playerString.equals("global", ignoreCase = true)) {
sender.sendMessage(plugin.langYml.getMessage("invalid-player"))
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal class CommandPointsGive(plugin: EcoPlugin): Subcommand(

val player = Bukkit.getPlayer(playerString)

if (player == null && playerString.equals("global", ignoreCase = true)) {
if (player == null && !playerString.equals("global", ignoreCase = true)) {
sender.sendMessage(plugin.langYml.getMessage("invalid-player"))
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal class CommandPointsSet(plugin: EcoPlugin): Subcommand(

val player = Bukkit.getPlayer(playerString)

if (player == null && playerString.equals("global", ignoreCase = true)) {
if (player == null && !playerString.equals("global", ignoreCase = true)) {
sender.sendMessage(plugin.langYml.getMessage("invalid-player"))
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal class CommandPointsTake(plugin: EcoPlugin): Subcommand(

val player = Bukkit.getPlayer(playerString)

if (player == null && playerString.equals("global", ignoreCase = true)) {
if (player == null && !playerString.equals("global", ignoreCase = true)) {
sender.sendMessage(plugin.langYml.getMessage("invalid-player"))
return
}
Expand Down

0 comments on commit 3e8a893

Please sign in to comment.