mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-24 10:34:24 +00:00
Fix migration log being sent to the console twice
This commit is contained in:
11 files changed
+39
-10
No files matched your search
+3
-1
@@ -57,7 +57,9 @@ public class MigrationPermissionManager extends SubCommand<Object> {
|
||||
public CommandResult execute(LuckPermsPlugin plugin, Sender sender, Object o, List<String> args, String label) throws CommandException {
|
||||
Consumer<String> log = s -> {
|
||||
Message.MIGRATION_LOG.send(sender, s);
|
||||
Message.MIGRATION_LOG.send(plugin.getConsoleSender(), s);
|
||||
if (!sender.isConsole()) {
|
||||
Message.MIGRATION_LOG.send(plugin.getConsoleSender(), s);
|
||||
}
|
||||
};
|
||||
log.accept("Starting PermissionManager migration.");
|
||||
|
||||
|
||||
+3
-1
@@ -64,7 +64,9 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
|
||||
public CommandResult execute(LuckPermsPlugin plugin, Sender sender, Object o, List<String> args, String label) throws CommandException {
|
||||
Consumer<String> log = s -> {
|
||||
Message.MIGRATION_LOG.send(sender, s);
|
||||
Message.MIGRATION_LOG.send(plugin.getConsoleSender(), s);
|
||||
if (!sender.isConsole()) {
|
||||
Message.MIGRATION_LOG.send(plugin.getConsoleSender(), s);
|
||||
}
|
||||
};
|
||||
log.accept("Starting PermissionsEx migration.");
|
||||
|
||||
|
||||
Reference in new issue
Block a user