my time commands more efficient

added function time(Player player, String period, Integer time)
and make checking if perms what command etc. one function calling others
rather than 5 self contained.