Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (hashMap.containsKey(uuid)) {
- final long cd = hashMap.get(uuid);
- final long estimatedTime = System.nanoTime() - cd;
- hashMap.remove(uuid);
- if(estimatedTime < 1_000_000) {
- System.out.println(TimeUnit.SECONDS.convert(estimatedTime, TimeUnit.NANOSECONDS));
- player.sendMessage(q("&c&mDouble kill!&f DoubleShift!"));
- }
- } else {
- final long startTime = System.nanoTime();
- hashMap.put(uuid, startTime);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement