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