Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[NewAPI] Running commands once

Comments in 'Plugin Development' started by iFootball, Jul 3, 2014.

  1. iFootball
    Offline

    iFootball Active Member

    Joined:
    Jun 9, 2014
    Posts:
    84
    Minecraft User:
    iFootball
    Ok I guess you win :rolleyes:. Only found 1
    https://github.com/Comedyman937/AreaProtect/blob/master/AreaProtect/src/AreaProtect/Main.php
    But I'm sure theirs more.
    And I agree its easier to retrieve records in MySQL.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I'm going to improve it by better alignments and trim().
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is pointless to create a MySQL database when you only have several data.
  4. iFootball
    Offline

    iFootball Active Member

    Joined:
    Jun 9, 2014
    Posts:
    84
    Minecraft User:
    iFootball
    So do you propose I switch? Their is 10 coloms of data for every row, which could add up if they created a ton of areas.
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    If you want to let the player edit it, write your own format like the StatsCore table.
    If you just wish to save it in any forms, JSON and YAML are still OK. Look at how they saved tiles in amai beetroot.
    iFootball likes this.
  6. iFootball
    Offline

    iFootball Active Member

    Joined:
    Jun 9, 2014
    Posts:
    84
    Minecraft User:
    iFootball
    I've decided I'll go with YAML since I don't need the player to edt the data. But I have no experience with the new API and configs.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The Config class is not changed except CONFIG_XXX constants were turned into class constants.
    iFootball likes this.
  8. iFootball
    Offline

    iFootball Active Member

    Joined:
    Jun 9, 2014
    Posts:
    84
    Minecraft User:
    iFootball
    Ok that will make it easy [EDIT] if I knew how to make a config using arrays.
    Last edited: Jul 7, 2014
  9. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    Oh thanks! I didn't know mysql had those features.

Share This Page

Advertisement