=Bug Fixes on Poll
This commit is contained in:
@@ -47,6 +47,7 @@ import commands.general.CommandTweet;
|
||||
import commands.general.CommandWolfram;
|
||||
import commands.general.CommandYeet;
|
||||
import commands.guildrole.CommandGuildRoleMain;
|
||||
import commands.poll.CommandPollMain;
|
||||
import commands.raffle.CommandRaffleMain;
|
||||
import dataStructures.KittyChannel;
|
||||
import dataStructures.KittyGuild;
|
||||
@@ -148,6 +149,8 @@ public class CommandManager
|
||||
this.register(LocCommands.stub("role"), new CommandGuildRoleMain(KittyRole.General, KittyRating.Safe));
|
||||
this.register(LocCommands.stub("character"), new CommandCharacterMain(KittyRole.General, KittyRating.Safe));
|
||||
this.register(LocCommands.stub("raffle"), new CommandRaffleMain(KittyRole.General, KittyRating.Safe));
|
||||
this.register(LocCommands.stub("poll"), new CommandPollMain(KittyRole.General, KittyRating.Safe));
|
||||
|
||||
}
|
||||
|
||||
// Allows the command manager to keep track of a command. Takes a pair (the un-localized and localzied commands)
|
||||
|
||||
@@ -23,7 +23,6 @@ public abstract class SubCommand
|
||||
|
||||
private boolean CanCall(KittyGuild guild, KittyChannel channel, KittyUser user)
|
||||
{
|
||||
System.out.println("TESTING CAN CALL");
|
||||
if(guild.contentRating.getValue() < contentRating.getValue())
|
||||
{
|
||||
Reject(user, "content rating");
|
||||
@@ -46,7 +45,7 @@ public abstract class SubCommand
|
||||
protected final SubCommandFormattable Invoke(KittyGuild guild, KittyChannel channel, KittyUser user, String input)
|
||||
{
|
||||
if(!CanCall(guild, channel, user))
|
||||
return new SubCommandFormattable("Can't run that!");
|
||||
return null;
|
||||
|
||||
return OnRun(guild, channel, user, input);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ public class SubCommandFramework
|
||||
|
||||
public SubCommandFormattable run(KittyGuild guild, KittyChannel channel, KittyUser user, String input)
|
||||
{
|
||||
System.out.println(input);
|
||||
SubCommandFormattable res = null;
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user