Advertisement
Guest User

Untitled

a guest
Feb 7th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. if (hashMap.containsKey(uuid)) {
  2. final long cd = hashMap.get(uuid);
  3. final long estimatedTime = System.nanoTime() - cd;
  4. hashMap.remove(uuid);
  5. if(estimatedTime < 1_000_000) {
  6. System.out.println(TimeUnit.SECONDS.convert(estimatedTime, TimeUnit.NANOSECONDS));
  7. player.sendMessage(q("&c&mDouble kill!&f DoubleShift!"));
  8. }
  9. } else {
  10. final long startTime = System.nanoTime();
  11. hashMap.put(uuid, startTime);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement