Skip to content
Permalink
Branch: master
Commits on Nov 12, 2019
  1. Update README.md

    LlmDl committed Nov 12, 2019
  2. Update README.md

    LlmDl committed Nov 12, 2019
  3. 0.95.1.0:

    LlmDl committed Nov 12, 2019
      - Bump version number for release.
  4. Update FUNDING.yml

    LlmDl committed Nov 12, 2019
Commits on Nov 9, 2019
Commits on Nov 7, 2019
  1. - Bump version number to 0.95.0.7.

    LlmDl committed Nov 7, 2019
      - Add permission plugin information to Towny startup's Using section.
      - Make changelog on updates more readable from the console, hello.
Commits on Nov 6, 2019
  1. Merge pull request #3388 from benjads/master

    LlmDl committed Nov 6, 2019
    Fix outlaw not getting removed if hermit found by benjads
Commits on Nov 5, 2019
  1. Merge pull request #3490 from Sprungente/patch-8

    LlmDl committed Nov 5, 2019
    Update german.yml
  2. Update german.yml

    Sprungente committed Nov 5, 2019
  3. - Fix alliances not persisting across server restarts when nothing

    LlmDl committed Nov 5, 2019
    else causes the nation to save.
  4. New language strings.

    LlmDl committed Nov 5, 2019
Commits on Nov 4, 2019
  1. - Fix /plot set outpost failing due to your own town's townblocks

    LlmDl committed Nov 4, 2019
    being too close.
        - Closes ticket #3489
  2. - Tidying/Fixing things.

    LlmDl committed Nov 4, 2019
    - Swap out old website for new in the plugin.yml
    - Add prefix to plugin.yml
    - Change over a couple more startup sequence lines.
    - Fix loading towns/townblocks with no metadata.
Commits on Nov 3, 2019
  1. - Swap out HashTables for ConcurrentHashMaps, courtesy of

    LlmDl committed Nov 3, 2019
    Silverwolfg11
        - Should increase performance.
  2. Merge pull request #3488 from silverwolfg11/concurrenthashmaps

    LlmDl committed Nov 3, 2019
    This PR simply changes the hashtables within the TownyUniverse class and the hashtable for townblocks within the TownyWorld class to ConcurrentHashMaps.
    Regarding ABI changes, with the latest Towny API most of the previous hashtables were only for internal use and not directly accessible by external plugins anyway. Thus the change should not break any external plugins.
    I have tested this PR, but non-extensively; I really doubt anything will break anyway.
  3. Replace hashtables with concurrenthashmaps

    silverwolfg11 authored and S committed Nov 3, 2019
  4. - New Feature: Town and TownBlock Metadata, courtesy of Siris.

    LlmDl committed Nov 3, 2019
        - Plugins or townyadmins can now place metadata onto Towns and
    TownBlocks.
        - Metadata keys must already be registered by a plugin.
        - These metadata will be saved and loaded to/from the Towny database
    by Towny.
        - Until the github wiki is updated for 0.95.1.0 please reference:
    #3482
      - New Command: /ta town [townname] meta, courtesy of Siris.
        - Used to view a town's metadata.
      - New Command: /ta town [townname] meta set [key] [value], courtesy of
    Siris
        - Sets a metadata value
        - Used by admins to manipulate metadata
      - New Command: /ta town [townname] meta [add|remove] [key], courtesy
    of Siris
        - Adds or removes a metadata
        - Used by admins to manipulate metadata
      - New Command: /ta plot meta, courtesy of Siris.
        - Used to view a townblock's metadata.
      - New Command: /ta plot meta set [key] [value], courtesy of Siris
        - Sets a metadata value
        - Used by admins to manipulate metadata
      - New Command: /ta plot meta [add|remove] [key], courtesy of Siris
        - Adds or removes a metadata
  5. Add custom Metadata to Towns and Townblocks (#3482)

    suneettipirneni authored and LlmDl committed Nov 3, 2019
    ## This pull request aims to add custom metadata to towny.
    
    ### Metadata implementation
    Each metadata object is a subclass of the abstract generic class `CustomFieldData<T>`
    These subclasses include:
    - `IntegerDataField` - `CustomFieldData<Integer>`
    - `StringDataField`- `CustomFieldData<String>`
    - `BooleanDataField` - `CustomFieldData<Boolean>`
    - `DecimalDataField`- `CustomFieldData<Double>`
    
    Metadata is hooked up to both `Town` objects and `TownBlock` objects, and they are lazy loaded so they don't effect memory usage if never used.
    Metadata is stored in the text file or sql with the new `metadata` attribute. This attribute contains the key, value, and type in order to perform proper loading of the object.
    
    ### Metadata will be registered by a plugin developer preferably in the onLoad() function.
    ```
    IntegerDataField minLevel = new IntegerDataField("min-level", 30); // Sets the default value for this field to 30 
    TownyAPI.getInstance().registerCustomMetaData(minLevel);
    ```
    
    These objects will be stored in the TownyUniverse singleton, in order to check for duplication.
    
    Metadata can then be accessed through the `Town` or `Townblock`'s new getMetadata() getter, which returns a hash set of all of the meta data associated with the object. From there it is up to the developer to save the object when any changes are made.
    
    ### In-Game Metadata manipulation
    When working with other admins it's nice to be able to rapidly make changes dynamically without relying on the parent plugin. So in-game commands to modify metadata for Towns and TownBlocks are available:
    
    - `/ta (town {town} or plot) meta add {keyname}`
    - `/ta (town {town} or plot) meta set {keyname} {value}`
    - `/ta (town {town} or plot) meta remove {keyname}`
    
    #### Note that keyname must be the name of a key registered by a plugin
Commits on Nov 2, 2019
  1. - New Config Option: global_town_settings.display_town_list_randomly

    LlmDl committed Nov 2, 2019
        - Default: false
        - If set to true the /town list command will list randomly, rather
    than by whichever comparator is used, hiding resident counts.
        - Closes ticket #3456
      - Added /town list ? & /nation list ? pages
  2. - Make /res screen display title and surname if they are present,

    LlmDl committed Nov 2, 2019
    falling back to the king/mayor prefix/postfix.
Older
You can’t perform that action at this time.