Decompile fixes
This commit is contained in:
parent
1e1298c647
commit
e9b13e085e
|
|
@ -44,7 +44,7 @@ public class AuthTimer<taskID> {
|
|||
|
||||
public static void endTask(Player player) {
|
||||
if (taskID.containsKey(player.getUniqueId())) {
|
||||
int tid = (Integer)taskID.get(player.getUniqueId());
|
||||
int tid = taskID.get(player.getUniqueId());
|
||||
LiteFlags.getInstance().getServer().getScheduler().cancelTask(tid);
|
||||
taskID.remove(player.getUniqueId());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ public class FlagCMD implements CommandExecutor {
|
|||
public void sendFlagMessage(CommandSender sender, OfflinePlayer targetPlayer) {
|
||||
List<String> body = LiteFlags.getInstance().getConfig().getStringList("Messages.PlayerFlagsBody");
|
||||
int i = 0;
|
||||
int id = false;
|
||||
//int id = false;
|
||||
boolean headerMessage = false;
|
||||
if (Database.hasFlags(targetPlayer.getUniqueId())) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public class ChatEvent implements Listener {
|
|||
public void onPlayerChat(AsyncPlayerChatEvent e) {
|
||||
final Player player = e.getPlayer();
|
||||
if (MapCache.reauthedPlayers.containsKey(player.getUniqueId().toString())) {
|
||||
String value = (String)MapCache.reauthedPlayers.get(player.getUniqueId().toString());
|
||||
String value = MapCache.reauthedPlayers.get(player.getUniqueId().toString());
|
||||
if (e.getMessage().equals(value)) {
|
||||
e.setCancelled(true);
|
||||
player.sendMessage(Utilities.format(LiteFlags.getInstance().getConfig().getString("Messages.Authenticate_Success")));
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ import org.bukkit.entity.Player;
|
|||
|
||||
public class Utilities {
|
||||
public static String convertTime(int time) {
|
||||
int days = (int)TimeUnit.MINUTES.toDays((long)time);
|
||||
int hours = (int)(TimeUnit.MINUTES.toHours((long)time) - TimeUnit.DAYS.toHours((long)days));
|
||||
int minutes = (int)(TimeUnit.MINUTES.toMinutes((long)time) - TimeUnit.HOURS.toMinutes((long)hours) - TimeUnit.DAYS.toMinutes((long)days));
|
||||
int days = (int) TimeUnit.MINUTES.toDays(time);
|
||||
int hours = (int)(TimeUnit.MINUTES.toHours(time) - TimeUnit.DAYS.toHours(days));
|
||||
int minutes = (int)(TimeUnit.MINUTES.toMinutes(time) - TimeUnit.HOURS.toMinutes(hours) - TimeUnit.DAYS.toMinutes(days));
|
||||
String d = days + " day";
|
||||
String h = hours + " hour";
|
||||
String m = minutes + " minute";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user