This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { collection, doc, getDoc, getDocs, limit, orderBy, query } from "firebase/firestore"; | |
import { db } from "./firebase"; | |
const documentExists = async (collectionName: string, documentId: string) => { | |
const collectionRef = doc(db, collectionName, documentId); | |
const docSnap = await getDoc(collectionRef); | |
if (docSnap.exists()) { | |
return true; | |
} else { | |
return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package package; | |
import base.util.SessionChanger; | |
import net.minecraft.client.gui.*; | |
import net.minecraft.client.resources.I18n; | |
import net.minecraft.util.ResourceLocation; | |
import org.lwjgl.input.Keyboard; | |
import org.lwjgl.input.Mouse; | |
import java.io.IOException; |