Reverting some changes to /time command

This commit is contained in:
snowleo 2011-08-08 18:21:38 +02:00
parent 33d37a2f96
commit 858e2a8b89
2 changed files with 2 additions and 10 deletions

View File

@ -37,10 +37,6 @@ public class Commandptime extends EssentialsCommand
{
userSelector = args[1];
}
if (args.length == 3)
{
userSelector = args[2];
}
Set<User> users = getUsers(server, sender, userSelector);
// If no arguments we are reading the time
@ -59,7 +55,7 @@ public class Commandptime extends EssentialsCommand
Long ticks;
// Parse the target time int ticks from args[0]
String timeParam = args.length == 2 ? args[0] : args[0] + args[1];
String timeParam = args[0];
if (DescParseTickFormat.meansReset(timeParam))
{
ticks = null;

View File

@ -32,10 +32,6 @@ public class Commandtime extends EssentialsCommand
{
worldSelector = args[1];
}
if (args.length == 3)
{
worldSelector = args[2];
}
Set<World> worlds = getWorlds(server, sender, worldSelector);
// If no arguments we are reading the time
@ -56,7 +52,7 @@ public class Commandtime extends EssentialsCommand
long ticks;
try
{
ticks = DescParseTickFormat.parse(args.length == 2 ? args[0] : args[0] + args[1]);
ticks = DescParseTickFormat.parse(args[0]);
}
catch (NumberFormatException e)
{