Help me

Discussion in 'Plugin Development' started by BuzzSmooth, Aug 25, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    BuzzSmooth

    How do I get that only has a unique set of coins for certain games? What is the code? Each time you kill earn 10 coins and the game ends when 5?
     
  2. Offline

    TheMcScavenger

    I suggest storing the amount of coins in a configuration file, or MySQL database (depending on your preference and requirements). Seeing as you asked this question, I'm guessing you're new to it all, and not experienced enough to use a MySQL Database. Therefor, I suggest using a Configuration YAML.

    You could make it general per player:
    Code:
    <uuid>:
      coins: <amount>
    Or you could store the amount per game you have:
    Code:
    <uuid>:
      <game name>: <amount>
      <game name>: <amount>
      <game name>: <amount>
    If you don't know how to store things to a configuration file, please refer to this tutorial.
     
  3. Offline

    Konkz

    I see this as a plugin request with a note to be able to see the code.

    I don't even see what you want to do? Your main post makes no sense and can only assume what you want?
    My assumption that I guess you meant is that whenever a player kills someone they are rewarded 5 points and when one of the players reach 50 points the game ends?
     
  4. Offline

    ToPoEdiTs

    es facil usted lo que quieres es un systema de puntos no?
    yo te recomiendo la API de playerpoints o prueba algo con esto:
    import org.bukkit.event.entity.EntityDeathEvent;

    TambiƩn si usted quiere conectar ese sistema de puntos por los servidores,
    usa sql pero eso es mas complicado busca por aqui:
    http://jd.bukkit.org/dev/doxygen/ y EntityDeathEvent.
    Suerte :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  5. Offline

    fireblast709

    ToPoEdiTs it is suggested to write English on an English based forum, so people can actually understand you (without the use of translators)
     
    Konkz likes this.
  6. Offline

    ToPoEdiTs

    sry Dr Brightside but buzzSmooth is Spanish
     
  7. Offline

    fireblast709

    ToPoEdiTs but I doubt a lot of forum users are.
     
  8. Offline

    Konkz

    The reason behind writing in English being suggested is so in future anyone with similar error can find the solution, others can learn and we can provide help or correct any errors you may of said by accident.
     
  9. Offline

    ToPoEdiTs

    oks sry ;(
     
Thread Status:
Not open for further replies.

Share This Page