=Fixed Bug#7 Tagging multiple people using !trade results in wrong error

Fixed, added check for multiple users being tagged.
This commit is contained in:
Alex Stewart
2020-03-27 03:08:44 -04:00
parent 39abf08b35
commit b917a3b4ee
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -247,6 +247,7 @@
"Localized Strings","TeeyInfo","Teey yourself back into existance, or teey a friend with @!"
"Localized Strings","TradeBeansInfo","Give your friends some of your beans! Just don't forget to @ them!"
"Localized Strings","TradeBeansIntParseError","That's not a real number! D:"
"Localized Strings","TradeBeansMultipleUsersTagged",""
"Localized Strings","TradeBeansNoTargetError","Don't forget to tag who you want to give the beans to!"
"Localized Strings","TradeBeansNotEnoughError","You can't give more beans than you have!"
"Localized Strings","TradeBeansStealingBeans","Hey %s! Stealing is wrong! Let's see how you like it! *steals 10 beans*"
1 Type Key Value
247 Localized Strings TeeyInfo Teey yourself back into existance, or teey a friend with @!
248 Localized Strings TradeBeansInfo Give your friends some of your beans! Just don't forget to @ them!
249 Localized Strings TradeBeansIntParseError That's not a real number! D:
250 Localized Strings TradeBeansMultipleUsersTagged
251 Localized Strings TradeBeansNoTargetError Don't forget to tag who you want to give the beans to!
252 Localized Strings TradeBeansNotEnoughError You can't give more beans than you have!
253 Localized Strings TradeBeansStealingBeans Hey %s! Stealing is wrong! Let's see how you like it! *steals 10 beans*
@@ -25,6 +25,11 @@ public class CommandTradeBeans extends Command
res.send(LocStrings.stub("TradeBeansNoTargetError"));
return;
}
if(input.mentions.length > 1)
{
res.send(LocStrings.stub("TradeBeansMultipleUsersTagged"));
return;
}
int beans = 0;