Added messages for commands that had no output

This commit is contained in:
Teriuihi 2022-01-30 20:20:42 +01:00
parent aed1885a59
commit 787927672a
3 changed files with 7 additions and 0 deletions

View File

@ -273,6 +273,8 @@ public final class Config {
"<dark_aqua>You received an invite to join <party> click this message to accept.</dark_aqua></click>";
public static String PARTY_MEMBER_LOGGED_ON = "<dark_aqua>[ChatParty] <player> joined Altitude...</dark_aqua>";
public static String PARTY_MEMBER_LOGGED_OFF = "<dark_aqua>[ChatParty] <player> left Altitude...</dark_aqua>";
public static String RENAMED_PARTY = "<dark_aqua>[ChatParty] <owner> changed the party name from <old_name> to <new_name>!</dark_aqua>";
public static String CHANGED_PASSWORD = "<green>Password was set to <password></green>";
public static String PARTY_INFO = """
<gold><bold>Chat party info</bold>:
</gold><green>Name: <dark_aqua><party></dark_aqua>
@ -302,6 +304,8 @@ public final class Config {
SENT_PARTY_INV = getString("party.messages.sent-party-invite", SENT_PARTY_INV);
PARTY_MEMBER_LOGGED_ON = getString("party.messages.party-member-logged-on", PARTY_MEMBER_LOGGED_ON);
PARTY_MEMBER_LOGGED_OFF = getString("party.messages.party-member-logged-off", PARTY_MEMBER_LOGGED_OFF);
RENAMED_PARTY = getString("party.messages.renamed-party", RENAMED_PARTY);
CHANGED_PASSWORD = getString("party.messages.changed-password", CHANGED_PASSWORD);
PARTY_INFO = getString("party.messages.party-info", PARTY_INFO);
}

View File

@ -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

View File

@ -41,6 +41,7 @@ public class Password implements SubCommand {
return;
}
party.setPartyPassword(args[1]);
source.sendMessage(Utility.parseMiniMessage(Config.CHANGED_PASSWORD));
}
@Override