mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 11:04:29 +02:00
Abort update text
This commit is contained in:
@@ -66,7 +66,9 @@ public abstract class AbstractState
|
|||||||
final String trimmedAnswer = answer.trim();
|
final String trimmedAnswer = answer.trim();
|
||||||
if (trimmedAnswer.equalsIgnoreCase("quit")
|
if (trimmedAnswer.equalsIgnoreCase("quit")
|
||||||
|| trimmedAnswer.equalsIgnoreCase("bye")
|
|| trimmedAnswer.equalsIgnoreCase("bye")
|
||||||
|| trimmedAnswer.equalsIgnoreCase("abort"))
|
|| trimmedAnswer.equalsIgnoreCase("abort")
|
||||||
|
|| trimmedAnswer.equalsIgnoreCase("cancel")
|
||||||
|
|| trimmedAnswer.equalsIgnoreCase("exit"))
|
||||||
{
|
{
|
||||||
abort();
|
abort();
|
||||||
return null;
|
return null;
|
||||||
|
@@ -61,11 +61,11 @@ public class Changelog extends AbstractState
|
|||||||
}
|
}
|
||||||
if (pages > 1)
|
if (pages > 1)
|
||||||
{
|
{
|
||||||
sender.sendMessage("Select a page by typing the numbers 1 to " + pages + " to view all changes and then type confirm to update Essentials.");
|
sender.sendMessage("Select a page by typing the numbers 1 to " + pages + " to view all changes and then type confirm or abort.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sender.sendMessage("Type confirm to update Essentials.");
|
sender.sendMessage("Type confirm to update Essentials or abort to cancel the update.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user