Guest User

mongo

a guest
May 23rd, 2021
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Document document = coll.find(eq("uuid",event.getPlayer().getUniqueId().toString())).first();
  2.  
  3.             if (document == null) {
  4.                 Document doc = new Document("name", event.getPlayer().getDisplayName())
  5.                         .append("uuid", event.getPlayer().getUniqueId())
  6.                         .append("kills", 0)
  7.                         .append("deaths", 0)
  8.                         .append("killstreak", 0)
  9.                         .append(event.getPlayer().getUniqueId().toString(), null);
  10.                 coll.insertOne(doc);
  11.             }
RAW Paste Data