Skip to content

Commit

Permalink
fix(msg): Fixed a param parse error.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Aug 30, 2023
1 parent 073688c commit c92ea5f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
</parent>
<properties>
<maven.compiler.source>${project.jdk.version}</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
</parent>
<properties>
<maven.compiler.source>${project.jdk.version}</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion game/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion game/plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;

import java.util.Optional;

public class UserListCommand extends SubCommand<MainCommand> {

public UserListCommand(@NotNull MainCommand parent, String identifier, String... aliases) {
Expand All @@ -18,7 +20,11 @@ public UserListCommand(@NotNull MainCommand parent, String identifier, String...
public Void execute(JavaPlugin plugin, CommandSender sender, String[] args) throws Exception {
var list = Main.getInstance().getUserManager().getWhitelists();
PluginMessages.USERS.LIST.send(sender, list.size());
list.forEach(user -> PluginMessages.USERS.USER.send(sender, user.getKey().getDisplayName(), user.getKey().uuid(), user.getPassedTimeString()));
list.forEach(user -> PluginMessages.USERS.USER.send(sender,
user.getKey().getDisplayName(), user.getKey().uuid(),
Optional.ofNullable(user.getLinkedRequestID()).map(Object::toString).orElse("?"),
user.getPassedTimeString())
);
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion lobby/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion lobby/plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</properties>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<modules>
<module>api</module>
<module>lobby/api</module>
Expand Down

0 comments on commit c92ea5f

Please sign in to comment.