use of io.github.spugn.Sargo.Objects.WarningMessage in project S-argo by Expugn.
the class Normal method run.
@Override
protected void run() {
switch(CHOICE.toLowerCase()) {
case "s":
case "si":
if (userMemoryDiamonds < singleScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + singleScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("si") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= singleScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doSinglePull();
break;
case "m":
case "mi":
if (userMemoryDiamonds < multiScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + multiScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("mi") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= multiScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doMultiPull();
break;
default:
CHANNEL.sendMessage(new WarningMessage("UNKNOWN/UNAVAILABLE SCOUT TYPE", "Only `single` and `multi` scouts are available.").get().build());
return;
}
if (stopScout)
return;
displayAndSave();
}
use of io.github.spugn.Sargo.Objects.WarningMessage in project S-argo by Expugn.
the class RecordCrystalv2 method run.
@Override
protected void run() {
switch(CHOICE.toLowerCase()) {
case "s":
case "si":
if (userMemoryDiamonds < singleScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + singleScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("si") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= singleScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doSinglePull();
break;
case "m":
case "mi":
if (userMemoryDiamonds < multiScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + multiScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("mi") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= multiScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doMultiPull();
updateBannerData();
break;
case "rc":
case "rci":
if (CHOICE.equalsIgnoreCase("rci") && !IMAGE_DISABLED) {
generateImage = true;
}
userRecordCrystals = USER.getBannerData(SELECTED_BANNER.getBannerName());
if (userRecordCrystals < 10) {
CHANNEL.sendMessage(new WarningMessage("INSUFFICIENT RECORD CRYSTALS", "You need 10 record crystals to do a record crystal scout.").get().build());
return;
}
userRecordCrystals -= 10;
USER.changeValue(SELECTED_BANNER.getBannerName(), userRecordCrystals);
guaranteedScout = true;
doSinglePull();
break;
default:
CHANNEL.sendMessage(new WarningMessage("UNKNOWN/UNAVAILABLE SCOUT TYPE", "Only `single`, `multi`, and `record crystal` scouts are available.").get().build());
return;
}
if (stopScout)
return;
displayAndSave();
}
use of io.github.spugn.Sargo.Objects.WarningMessage in project S-argo by Expugn.
the class RecordCrystalv3 method run.
@Override
protected void run() {
switch(CHOICE.toLowerCase()) {
case "s":
case "si":
if (userMemoryDiamonds < singleScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + singleScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("si") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= singleScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doSinglePull();
break;
case "m":
case "mi":
if (userMemoryDiamonds < multiScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + multiScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("mi") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= multiScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doMultiPull();
updateBannerData();
break;
case "rc":
case "rci":
if (CHOICE.equalsIgnoreCase("rci") && !IMAGE_DISABLED) {
generateImage = true;
}
userRecordCrystals = USER.getBannerData(SELECTED_BANNER.getBannerName());
if (userRecordCrystals < 10) {
CHANNEL.sendMessage(new WarningMessage("INSUFFICIENT RECORD CRYSTALS", "You need 10 record crystals to do a record crystal scout.").get().build());
return;
}
circluatedRecordCrystals = getCirculatedRecordCrystals();
userRecordCrystals -= 10;
userRecordCrystals += circluatedRecordCrystals;
USER.changeValue(SELECTED_BANNER.getBannerName(), userRecordCrystals);
guaranteedScout = true;
doSinglePull();
break;
default:
CHANNEL.sendMessage(new WarningMessage("UNKNOWN/UNAVAILABLE SCOUT TYPE", "Only `single`, `multi`, and `record crystal` scouts are available.").get().build());
return;
}
if (stopScout)
return;
displayAndSave();
}
use of io.github.spugn.Sargo.Objects.WarningMessage in project S-argo by Expugn.
the class RecordCrystalv4 method run.
@Override
protected void run() {
switch(CHOICE.toLowerCase()) {
case "s":
case "si":
if (userMemoryDiamonds < singleScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + singleScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("si") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= singleScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doSinglePull();
break;
case "m":
case "mi":
if (userMemoryDiamonds < multiScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + multiScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("mi") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= multiScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doMultiPull();
updateBannerData();
break;
case "rc":
case "rci":
if (CHOICE.equalsIgnoreCase("rci") && !IMAGE_DISABLED) {
generateImage = true;
}
userRecordCrystals = USER.getBannerData(SELECTED_BANNER.getBannerName());
if (userRecordCrystals < 10) {
CHANNEL.sendMessage(new WarningMessage("INSUFFICIENT RECORD CRYSTALS", "You need 10 record crystals to do a record crystal scout.").get().build());
return;
}
circluatedRecordCrystals = getCirculatedRecordCrystals();
userRecordCrystals -= 10;
userRecordCrystals += circluatedRecordCrystals;
USER.changeValue(SELECTED_BANNER.getBannerName(), userRecordCrystals);
guaranteedScout = true;
doSinglePull();
break;
default:
CHANNEL.sendMessage(new WarningMessage("UNKNOWN/UNAVAILABLE SCOUT TYPE", "Only `single`, `multi`, and `record crystal` scouts are available.").get().build());
return;
}
if (stopScout)
return;
displayAndSave();
}
use of io.github.spugn.Sargo.Objects.WarningMessage in project S-argo by Expugn.
the class SAOGameFifthAnniversaryStepUp method run.
@Override
protected void run() {
switch(CHOICE.toLowerCase()) {
case "s":
case "si":
if (userMemoryDiamonds < singleScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + singleScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("si") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= singleScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doSinglePull();
break;
case "m":
case "mi":
if (userMemoryDiamonds < multiScoutPrice) {
CHANNEL.sendMessage(new WarningMessage("NOT ENOUGH MEMORY DIAMONDS", "You need **" + multiScoutPrice + "** Memory Diamonds to scout.\nUse '" + CommandManager.getCommandPrefix() + "**shop**' to get more Memory Diamonds.").get().build());
return;
}
if (CHOICE.equalsIgnoreCase("mi") && !IMAGE_DISABLED) {
generateImage = true;
}
userMemoryDiamonds -= multiScoutPrice;
USER.setMemoryDiamonds(userMemoryDiamonds);
doMultiPull();
updateBannerData();
break;
default:
CHANNEL.sendMessage(new WarningMessage("UNKNOWN/UNAVAILABLE SCOUT TYPE", "Only `single` and `multi` scouts are available.").get().build());
return;
}
if (stopScout)
return;
displayAndSave();
}
Aggregations