= Data Structures formatting update
This commit is contained in:
@@ -15,13 +15,13 @@ public class CommandBeansShow extends Command
|
||||
public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
{
|
||||
if(input.mentions == null)
|
||||
res.send(String.format(LocStrings.stub("BeansShowDisplay"), user.GetBeans()));
|
||||
res.send(String.format(LocStrings.stub("BeansShowDisplay"), user.getBeans()));
|
||||
else
|
||||
{
|
||||
String mentionedBeans = "";
|
||||
for(KittyUser mentioned:input.mentions)
|
||||
{
|
||||
mentionedBeans += mentioned.name + " has " + mentioned.GetBeans() + " ";
|
||||
mentionedBeans += mentioned.name + " has " + mentioned.getBeans() + " ";
|
||||
}
|
||||
res.send(String.format(LocStrings.stub("BeansShowMentioned"), mentionedBeans));
|
||||
}
|
||||
|
||||
@@ -34,13 +34,13 @@ public class CommandBetBeans extends Command
|
||||
return;
|
||||
}
|
||||
|
||||
if(user.GetBeans() < bet)
|
||||
if(user.getBeans() < bet)
|
||||
{
|
||||
res.send(LocStrings.stub("BetBeansNotEnough"));
|
||||
return;
|
||||
}
|
||||
|
||||
user.ChangeBeans(-bet);
|
||||
user.changeBeans(-bet);
|
||||
int [] slots = getSlots();
|
||||
call += slotString(slots);
|
||||
slots = sort(slots);
|
||||
@@ -52,12 +52,12 @@ public class CommandBetBeans extends Command
|
||||
if(win == 0)
|
||||
{
|
||||
res.send(LocStrings.stub("BetBeansLose"));
|
||||
guild.beans.Add(bet);
|
||||
guild.beans.add(bet);
|
||||
return;
|
||||
}
|
||||
|
||||
user.ChangeBeans(bet*win);
|
||||
guild.beans.Subtract(bet*win);
|
||||
user.changeBeans(bet*win);
|
||||
guild.beans.subtract(bet*win);
|
||||
res.send(String.format(LocStrings.stub("BetBeansWin"), "" + (bet*win)));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ public class CommandBetHistory extends Command
|
||||
@Override
|
||||
public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
{
|
||||
res.send(String.format(LocStrings.stub("BetHistoryOutput"), guild.beans.Get()));
|
||||
res.send(String.format(LocStrings.stub("BetHistoryOutput"), guild.beans.get()));
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class CommandGiveBeans extends Command
|
||||
// Go through all the mentions and make sure every user is given beans!
|
||||
for(int i = 0; i < input.mentions.length; i++)
|
||||
{
|
||||
input.mentions[i].ChangeBeans(beans);
|
||||
input.mentions[i].changeBeans(beans);
|
||||
res.send(String.format(LocStrings.stub("GiveBeansSuccess"), input.mentions[i].name, "" + beans));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ public class CommandRole extends Command
|
||||
{
|
||||
if(input.args.isEmpty())
|
||||
{
|
||||
res.send(LocStrings.stub("RoleStandardResponse") + " " + user.GetRole().name() + "!");
|
||||
res.send(LocStrings.stub("RoleStandardResponse") + " " + user.getRole().name() + "!");
|
||||
return;
|
||||
}
|
||||
|
||||
if(user.GetRole().getValue() < KittyRole.Admin.getValue())
|
||||
if(user.getRole().getValue() < KittyRole.Admin.getValue())
|
||||
{
|
||||
res.send(String.format(LocStrings.stub("RoleError"), KittyRole.Admin.toString()));
|
||||
return;
|
||||
@@ -52,7 +52,7 @@ public class CommandRole extends Command
|
||||
String users = "";
|
||||
for(int i = 0; i < input.mentions.length; i++)
|
||||
{
|
||||
input.mentions[i].ChangeRole(newRole);
|
||||
input.mentions[i].changeRole(newRole);
|
||||
users += input.mentions[i].name + " ";
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ public class CommandTradeBeans extends Command
|
||||
return;
|
||||
}
|
||||
|
||||
if(user.GetBeans() < beans)
|
||||
if(user.getBeans() < beans)
|
||||
{
|
||||
res.send(LocStrings.stub("TradeBeansNotEnoughError"));
|
||||
return;
|
||||
@@ -45,12 +45,12 @@ public class CommandTradeBeans extends Command
|
||||
if(beans < 0)
|
||||
{
|
||||
res.send(String.format(LocStrings.stub("TradeBeansStealingBeans"), user.name));
|
||||
user.ChangeBeans(-10);
|
||||
user.changeBeans(-10);
|
||||
return;
|
||||
}
|
||||
|
||||
input.mentions[0].ChangeBeans(beans);
|
||||
user.ChangeBeans(-beans);
|
||||
input.mentions[0].changeBeans(beans);
|
||||
user.changeBeans(-beans);
|
||||
res.send(String.format(LocStrings.stub("TradeBeansSuccess"), user.name, input.mentions[0].name, beans));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user