diff --git a/PDC-Funkce.md b/PDC-Funkce.md index 4cb737f..e45b69b 100644 --- a/PDC-Funkce.md +++ b/PDC-Funkce.md @@ -9,15 +9,49 @@ S PDC se však nepracuje nejlépe a proto byli vytvořeny tyto funkce, které pr Zapíše údaj do hráče ### Vstupní Parametry -**Player** = hráč, -**String** = klíč, -**PersistentDataType** = Druh Hodnoty, -**Object** = hodnota, +- **Player** = hráč, +- **String** = klíč, +- **PersistentDataType** = Druh Hodnoty, +- **Object** = hodnota, ### Výstupní parametr -Žádné +Žádný ### Příklad použití ```JAVA -PDC.WritePlayerPDC(player, "money", PersistentDataType.STRING, 69) -``` \ No newline at end of file +PDC.WritePlayerPDC(player, "status", PersistentDataType.STRING, "afk") +``` + +## GetPlayerPDC(Player, String, PersistentDataType) +Vezme údaj z hráče + +### Vstupní Parametry + +- **Player** = hráč, +- **String** = klíč, +- **PersistentDataType** = Druh Hodnoty, + + +### Výstupní parametr +- **Object** = Hodnota + +### Příklad použití +```JAVA +String status = (String) PDC.GetPlayerPDC(player, "money", PersistentDataType.STRING) +``` + +## DeletePlayerPDC(Player, String) +Vymaže údaj z hráče + +### Vstupní Parametry + +- **Player** = hráč, +- **String** = klíč, + +### Výstupní parametr +Žádný + +### Příklad použití +```JAVA +PDC.DeletePlayerPDC(player, "status") +```