32 lines
805 B
Java
32 lines
805 B
Java
package commands.general;
|
|
|
|
import core.Command;
|
|
import core.LocStrings;
|
|
import dataStructures.KittyChannel;
|
|
import dataStructures.KittyGuild;
|
|
import dataStructures.KittyRating;
|
|
import dataStructures.KittyRole;
|
|
import dataStructures.KittyUser;
|
|
import dataStructures.Response;
|
|
import dataStructures.UserInput;
|
|
|
|
public class CommandRaffleEnd extends Command
|
|
{
|
|
public CommandRaffleEnd(KittyRole level, KittyRating rating) { super(level, rating); }
|
|
|
|
@Override
|
|
public String getHelpText() { return LocStrings.stub("RaffleEndInfo"); }
|
|
|
|
@Override
|
|
public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
|
{
|
|
if(guild.endRaffle())
|
|
{
|
|
res.send(LocStrings.stub("RaffleEndSuccess"));
|
|
}
|
|
else
|
|
{
|
|
res.send(LocStrings.stub("RaffleEndFailure"));
|
|
}
|
|
}
|
|
} |