From 541f107c97b8361e31a57a3f05cb2c1bdc661808 Mon Sep 17 00:00:00 2001 From: jakub Date: Thu, 17 Oct 2024 10:00:44 +0200 Subject: [PATCH] Update 'PDC Funkce' --- PDC-Funkce.md | 48 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 41 insertions(+), 7 deletions(-) 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") +```