DataTchat

DataTchat

24 Downloads

It's a plugin that permit to save some personal data for players and save global or personal admin data (convenient to send a message)

You can save some coordinates or use it as a reminder. Moreover your message is displayed automatically when you join the game, changed world, leave a bed and when you respawn (It's configurable in game). 

-> Example :

==========MyData==========

 -> [Admin] A admin add a new personal admin data !

 - [Admin] Use commande /addData <NewData> !

 - I add a new data

==========================

--> The first line (-> [Admin]) represented a personal admin data (visible by only this player)

--> The second line (- [Admin]) represented a global admin data (visible by all players)

--> The last line ( - ) represented a player data (visible by only this player)

Commands :

For more information use /DTInfo <command> in game.

   Commands Help :

---> /DTHelp <page>  ==>help message

---> /DTInfo <command>  ==>show advanced help message for a command

---> /setLangage <langage>  ==>set the user langage

   Commands User :

---> /addData <newData>  ==>add a new data for player

---> /removeData <lastData>  ==>remove a data for player

---> /showDataInTchat [toggle | true | false]  ==>enable or disable the automatic showing custom data in chat

---> /showDataWhen [join | worldChanged | leaveBed | respawn] [toggle | true | false]  ==>enable or disable the showing custom data in chat when chosen event

---> /showMyData  ==>show custom data in chat

---> /restorAdminData <AdminData> (or nothing for view list)  ==>restor deleted admin data

   Administrator Commands :

---> /addDataForAll <newAdminData>  ==>add a new data for all players

---> /removeDataForAll <lastAdminData | all(AdminData)> (or nothing for view list)  ==>remove a data for all players

---> /addDataFor <playerName> <NewData>  ==>add a new data for one player

---> /removeDataFor <playerName> <LastData>  ==>remove a data for one player

---> /allowRemoveAdminData [all | playerName] [toggle | true | false]  ==>allow to remove admin data for user

---> /showData <playerName>  ==>show player custom data in chat

---> /setDefaultLangage <langage>  ==>set default langage

---> /setMaxData <newValue>  ==>set limit data per player

---> /saveConfig  ==>save config file

Configuration :

The default langages are English and French but you can add as much as you want in the config file.

    Add langage :

If you want add the langage German, you must add in the list and add ALL messages. 

  ---> Tips: don't add langage in the list before having translated all the messages.

setting:
  defaultAllowRemoveAdminData: true
  # 0=null
  limitDataPerPlayer: 0
  defaultLangage: fr
  # NO MAJ !!
  langageList:
  - fr
  - en
  - all
message:
  fr:
    savedData: "&aDonnée enregistrée !"
  en:
    savedData: "&aRecorded data !"
  all:
    savedData: "&aAufgezeichnete Daten ! "
helpPage:
  fr:
    1:
    - "&r/DTHelp <page> &bpour afficher cette page"
  en:
    1:
    - "&r/DTHelp <page> &bfor display this page"
  all:
    1:
    - "&r/DTHelp <page> &bum diese Seite anzuzeigen"
infoPage:
  fr:
    adddata:
    - "&r/addData <newData> &bpour ajouter une nouvelle donnée"
    - "&a -> exemple :"
    - "&r /addData j'aime le chocolat !"
  en:
    adddata:
    - "&r/addData <newData> &bfor add a new data"
    - "&r example :"
    - "&a /addData I like chocolate !"
  all:
    adddata:
    - "&r/addData <newData> &bneue Daten hinzufügen"
    - "&r beispiel:"
    - "&a /addData Ich liebe Schokolade !"
    Default Configuration : 

link to last config: https://github.com/Synol14/DataTchat/blob/master/config.yml

link to an example of data.yml: https://github.com/Synol14/DataTchat/blob/master/data.yml

Problems and Contact me :

-> If you have any problems or find any error you can leave a comment or contact me on my discord: Synol_#9327