Added messages for commands that had no output

This commit is contained in:
2022-02-19 16:58:22 +01:00
committed by destro174
parent e5e174d363
commit 83d1ae933d
3 changed files with 7 additions and 0 deletions
@@ -4,6 +4,7 @@ import com.alttd.chat.config.Config;
import com.alttd.chat.managers.PartyManager;
import com.alttd.chat.objects.Party;
import com.alttd.chat.util.Utility;
import com.alttd.velocitychat.VelocityChat;
import com.alttd.velocitychat.commands.SubCommand;
import com.velocitypowered.api.command.CommandSource;
import com.velocitypowered.api.proxy.Player;
@@ -49,6 +50,7 @@ public class Name implements SubCommand {
return;
}
party.setPartyName(args[1]);
VelocityChat.getPlugin().getChatHandler().sendPartyMessage(party, Utility.parseMiniMessage(Config.RENAMED_PARTY), null);
}
@Override
@@ -41,6 +41,7 @@ public class Password implements SubCommand {
return;
}
party.setPartyPassword(args[1]);
source.sendMessage(Utility.parseMiniMessage(Config.CHANGED_PASSWORD));
}
@Override