mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-11 19:02:02 +01:00
Reverting some changes to /time command
This commit is contained in:
parent
33d37a2f96
commit
858e2a8b89
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user