Skip to content

Commit ea50032

Browse files
committed
Alpha 1.0 RELEASE - Patch 0003
1 parent 057450c commit ea50032

File tree

12 files changed

+13
-1
lines changed

12 files changed

+13
-1
lines changed
0 Bytes
Binary file not shown.
14.2 KB
Binary file not shown.
0 Bytes
Binary file not shown.
500 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
510 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.
605 Bytes
Binary file not shown.

src/main/java/io/github/simplex/luck/LuckCMD.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ public boolean execute(@NotNull CommandSender sender, @NotNull String commandLab
114114
}
115115

116116
if (args.length == 1) {
117+
if (args[0].equalsIgnoreCase("reload") && sender.hasPermission("luck.admin")) {
118+
plugin.getConfigMap().values().forEach(PlayerConfig::reload);
119+
return true;
120+
}
121+
117122
if ((sender instanceof Player player) && player.hasPermission("luck.default")) {
118123
if (args[0].equalsIgnoreCase("info")) {
119124
Luck luck = plugin.handler.getLuckContainer(player);
@@ -127,7 +132,7 @@ public boolean execute(@NotNull CommandSender sender, @NotNull String commandLab
127132
}
128133
}
129134

130-
return true;
135+
return false;
131136
}
132137

133138
@Override
@@ -153,6 +158,7 @@ public boolean execute(@NotNull CommandSender sender, @NotNull String commandLab
153158
switch (args[0]) {
154159
case "info":
155160
case "reset":
161+
case "reload":
156162
return new ArrayList<>();
157163
case "give":
158164
case "take":

0 commit comments

Comments
 (0)