=Config file bug fixes

This commit is contained in:
Alex
2019-08-09 23:23:43 -04:00
parent 81d3bd13b0
commit 2c486d7da1
12 changed files with 43 additions and 50 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
package commands.guildrole;
import core.LocStrings;
import core.SubCommand;
import core.SubCommandFormattable;
import dataStructures.KittyChannel;
@@ -26,16 +27,16 @@ public class SubCommandAdd extends SubCommand
{
if(guild.control.addRole(user.discordID, role))
{
formatted += "Addded " + role + "!";
formatted += String.format(LocStrings.stub("GuildRoleAddSuccess"), role, user.name);
}
else
{
formatted += "Failed to add " + role + "!";
formatted += String.format(LocStrings.stub("GuildRoleAddFailure"), role, user.name);
}
}
else
{
formatted += "You're not allowed to add " + role + "!";
formatted += String.format(LocStrings.stub("GuildRoleAddNotAllowed"), role);
}
}
return new SubCommandFormattable(formatted);