mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fixes #1047
This commit is contained in:
parent
9ba3b06854
commit
588f5d7ebc
@ -134,7 +134,7 @@ public class MainCommand extends Command {
|
|||||||
@Override
|
@Override
|
||||||
public void run(final Command cmd, final Runnable success, final Runnable failure) {
|
public void run(final Command cmd, final Runnable success, final Runnable failure) {
|
||||||
if (cmd.hasConfirmation(player) ) {
|
if (cmd.hasConfirmation(player) ) {
|
||||||
CmdConfirm.addPending(player, "/plot area create pos2 (Creates world)", new Runnable() {
|
CmdConfirm.addPending(player, cmd.getUsage(), new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (EconHandler.manager != null) {
|
if (EconHandler.manager != null) {
|
||||||
|
@ -290,7 +290,6 @@ public enum C {
|
|||||||
TASK_START("Starting task...", "Core"),
|
TASK_START("Starting task...", "Core"),
|
||||||
PREFIX("$3[$1P2$3] $2", "Core"),
|
PREFIX("$3[$1P2$3] $2", "Core"),
|
||||||
ENABLED("$1PlotSquared is now enabled", "Core"),
|
ENABLED("$1PlotSquared is now enabled", "Core"),
|
||||||
EXAMPLE_MESSAGE("$2This is an example message &k!!!", "Core"),
|
|
||||||
/*
|
/*
|
||||||
* Reload
|
* Reload
|
||||||
*/
|
*/
|
||||||
|
@ -721,7 +721,7 @@ public class MainUtil {
|
|||||||
expires = String.format("%d days", TimeUnit.MILLISECONDS.toDays(l));
|
expires = String.format("%d days", TimeUnit.MILLISECONDS.toDays(l));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if (ExpireManager.IMP != null) {
|
||||||
long timestamp = ExpireManager.IMP.getTimestamp(plot.owner);
|
long timestamp = ExpireManager.IMP.getTimestamp(plot.owner);
|
||||||
long compared = System.currentTimeMillis() - timestamp;
|
long compared = System.currentTimeMillis() - timestamp;
|
||||||
long l = Settings.AUTO_CLEAR_DAYS - TimeUnit.MILLISECONDS.toDays(compared);
|
long l = Settings.AUTO_CLEAR_DAYS - TimeUnit.MILLISECONDS.toDays(compared);
|
||||||
|
Loading…
Reference in New Issue
Block a user