Quantcast
Channel: BungeeCord Discussion
Viewing all articles
Browse latest Browse all 3776

Tempban system

$
0
0
Hi,

Im trying to make a bungeecord ban plugin and i was wondering if something was possible :

I have my default command (/ban <player> <time> <reason> and it works like that :

/ban Player 5d cheating (5d = 5 days)

But i save the ban with a System.currentTimeMillis().

I wanted to know if :
  • doing something like /ban Player 5d6h cheating (5d6h = 5 days 6 hours) was possible and how ?
  • get a date from the System.currentTimeMillis(). (1520094006035 into 03-03-2018) with a...

Tempban system

Viewing all articles
Browse latest Browse all 3776

Trending Articles