Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make spawn types' cooldowns separate and configurable. #6225

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

LlmDl
Copy link
Member

@LlmDl LlmDl commented Oct 12, 2022

  - Allow for all nation spawn and town spawn types to have individual spawn cooldowns.
    - Your previous global_town_settings.spawn_cooldown_time setting will be migrated to the new settings.
    - Closes #6224.
  - New Config Nodes: 
    - global_town_settings.spawning_cooldowns.town_spawn_cooldown_time
      - Default: 30 
      - Number of seconds that must pass before a player can use /t spawn or /res spawn.
    - global_town_settings.spawning_cooldowns.outpost_cooldown_time 
      - Default: 30 
      - Number of seconds that must pass before a player can use /t outpost.
    - global_town_settings.spawning_cooldowns.nation_member_town_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player of the same nation can use /t spawn.
    - global_town_settings.spawning_cooldowns.nation_ally_town_spawn_cooldown_time 
      - Default: 30 
      - Number of seconds that must pass before a player in an allied nation can use /t spawn.
    - global_town_settings.spawning_cooldowns.unaffiliated_town_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player who is not a member or ally of town can use /t spawn.
    - global_nation_settings.spawning_cooldowns.nation_member_nation_spawn_cooldown_time 
      - Default: 30 
      - Number of seconds that must pass before a player of the same nation can use /n spawn.
    - global_nation_settings.spawning_cooldowns.nation_ally_nation_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player allied with the nation can use /n spawn.
    - global_nation_settings.spawning_cooldowns.unaffiliated_nation_spawn_cooldown_time 
      - Default: 30 
      - Number of seconds that must pass before a player who is not a member or ally can use /n spawn.
  - Removed Config Option: global_town_settings.spawn_cooldown_time

Description:


New Nodes/Commands/ConfigOptions:

See above


Relevant Towny Issue ticket:

Closes #6224


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.

  - Allow for all nation spawn and town spawn types to have individual
spawn cooldowns.
    - Closes #6224.
  - New Config Nodes:
    - global_town_settings.cooldowns.town_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player can use /t
spawn or /res spawn.
    - global_town_settings.cooldowns.outpost_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player can use /t
outpost.
    - global_town_settings.cooldowns.nation_member_town_spawn_cooldown_time",
      - Default: 30
      - Number of seconds that must pass before a player of the same
nation can use /t spawn.
    - global_town_settings.cooldowns.nation_ally_town_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player in an allied
nation can use /t spawn.
    - global_town_settings.cooldowns.unaffiliated_town_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player who is not a
member or ally of town can use /t spawn.
    - global_nation_settings.cooldowns.nation_member_nation_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player of the same
nation can use /n spawn.
    - global_nation_settings.cooldowns.nation_ally_nation_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player allied with the
nation can use /n spawn.
    - global_nation_settings.cooldowns.unaffiliated_nation_spawn_cooldown_time
      - Default: 30
      - Number of seconds that must pass before a player who is not a
member or ally can use /n spawn.

Initial commit, todo: ConfigNodes and populate the town/nationspawnlevel
Populate the ConfigNodes and make use of them.
@LlmDl LlmDl merged commit 30b4246 into master Oct 13, 2022
@LlmDl LlmDl deleted the feature/multiple_teleport_cooldown_times branch October 13, 2022 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: Different cooldowns in town spawn travel
2 participants