Imports...
Dieser Commit ist enthalten in:
Ursprung
986b53fbf8
Commit
2c026a1d21
@ -22,7 +22,6 @@ package de.steamwar.bungeecore.commands;
|
|||||||
import de.steamwar.bungeecore.BungeeCore;
|
import de.steamwar.bungeecore.BungeeCore;
|
||||||
import de.steamwar.bungeecore.sql.SteamwarUser;
|
import de.steamwar.bungeecore.sql.SteamwarUser;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
|
||||||
|
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
@ -62,7 +61,7 @@ public class BanCommand extends BasicCommand {
|
|||||||
|
|
||||||
public static Timestamp parseTime(CommandSender sender, String arg){
|
public static Timestamp parseTime(CommandSender sender, String arg){
|
||||||
if(arg.equalsIgnoreCase("perma")) {
|
if(arg.equalsIgnoreCase("perma")) {
|
||||||
return Timestamp.from(Instant.ofEpochSecond(946684800));
|
return Timestamp.from(Instant.ofEpochSecond(946674800));
|
||||||
}else{
|
}else{
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy_HH:mm");
|
SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM.yyyy_HH:mm");
|
||||||
try{
|
try{
|
||||||
|
@ -24,7 +24,6 @@ import de.steamwar.bungeecore.sql.SteamwarUser;
|
|||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
|
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.time.Instant;
|
|
||||||
|
|
||||||
public class MuteCommand extends BasicCommand {
|
public class MuteCommand extends BasicCommand {
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren