Skip to content

spanish translation #61

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

Open
wants to merge 76 commits into
base: 1.20.1/dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
2d44aa4
Merge branch '1.18/dev' into 1.18/main
MichaelHillcox Mar 31, 2022
2a0941e
Merge branch '1.19/dev' into 1.19/main
MichaelHillcox Jun 13, 2022
e4f3ff9
Merge branch '1.19/dev' into 1.19/main
MichaelHillcox Jul 21, 2022
0cc6b57
Merge branch '1.19/dev' into 1.19/main
MichaelHillcox Sep 2, 2022
9b92def
Merge pull request #26 from FTBTeam/1.19/dev
desht Nov 29, 2022
4fc7015
Merge pull request #29 from FTBTeam/1.19/dev
MichaelHillcox Dec 21, 2022
291087f
Merge pull request #31 from FTBTeam/1.19/dev
MaxNeedsSnacks Jan 27, 2023
0ca22a3
Merge pull request #39 from FTBTeam/dev
desht Jun 16, 2023
029609b
Merge pull request #40 from FTBTeam/dev
MichaelHillcox Jun 19, 2023
77fbfab
Merge pull request #42 from FTBTeam/dev
desht Jun 29, 2023
24f2e45
Merge pull request #43 from FTBTeam/dev
desht Jul 3, 2023
1f6f185
feat: port to 1.20.2
MichaelHillcox Nov 14, 2023
b3765e0
fix: bump gradle
MichaelHillcox Nov 14, 2023
eb3899f
fix: correct project name and updated gitignores
MichaelHillcox Nov 14, 2023
60648d6
Merge pull request #44 from FTBTeam/feature/1.20.2-port
desht Nov 14, 2023
1dd6a18
fix: GameProfile no longer accepts null names (or ids)
desht Nov 14, 2023
c03bfad
chore: ported to 1.20.4, add neoforge support
desht Dec 12, 2023
cbf61f9
chore: bumped ftb-lib dep version, updated neoforge naming
desht Dec 13, 2023
726c56f
fix: couple of neoforge build fixups
desht Dec 14, 2023
13d4e5f
build: bump ftb lib & neoforge versions, mods.toml change
desht Dec 20, 2023
74b96b7
feat: add api to create a party team for a player
desht Jan 15, 2024
f3d0b53
feat: rework team creation, and general cleanup
desht Jan 16, 2024
e6e6eae
feat: bump to latest dependencies
Jake-E Mar 9, 2024
c18820b
chore: a couple of minor GUI updates
desht Mar 13, 2024
f4447d7
build: depend on FTB Library 2004.2.0, updated changelog
desht Mar 13, 2024
6f13a96
build: bump arch dep version
desht Mar 13, 2024
f13e823
feat: now using the new FTB Library color selector
desht Mar 15, 2024
9f93a53
fix: correct version number in changelog
desht Mar 15, 2024
747c9c8
fix: neoforge CF should depend on ftb-library-forge
desht Mar 22, 2024
4760989
build: depend on non-snapshot ftb-library
desht Mar 22, 2024
41c6ced
Merge pull request #46 from FTBTeam/dev
desht Mar 22, 2024
e5fe59e
Create uk_ua.json
GIGABAIT93 Apr 22, 2024
b8dbc82
chore: ported to 1.20.6
desht May 10, 2024
86d3950
ci: update java 17 -> 21
desht May 10, 2024
84861c0
build: bumped arch/neo/fabric versions
desht May 21, 2024
d523451
build: bumped arch/neo/ftb-library versions
desht Jun 4, 2024
6815c70
chore: a bit of code cleanup
desht Jun 4, 2024
a3a556c
Merge pull request #51 from FTBTeam/dev
desht Jun 4, 2024
8d62b8b
chore: changelog updated [ciskip]
desht Jun 4, 2024
2bc924a
feat: port to 1.21 and move to mpp
MichaelHillcox Jun 16, 2024
5785607
fix: use correct release task
MichaelHillcox Jun 16, 2024
2e01428
fix: process resource the mc version for fabric
MichaelHillcox Jun 17, 2024
7248847
Merge pull request #52 from FTBTeam/dev
desht Jun 17, 2024
5612392
build: non-snapshot ftb lib dep
desht Jun 19, 2024
81b644f
Merge remote-tracking branch 'origin/dev' into dev
desht Jun 19, 2024
c3d35bb
Merge pull request #53 from FTBTeam/dev
desht Jun 19, 2024
f1ded29
fix: release type checking for build.gradle
desht Jul 1, 2024
6f40129
chore: updated for neoforge/fabric version ranges
desht Aug 6, 2024
ef6ab0a
Update sidebar json
UnRealDinnerbone Aug 8, 2024
f1fa947
Merge pull request #54 from FTBTeam/feature/1.21/sidebar-changes
desht Aug 9, 2024
6986026
build: update ftb lib dep to 2001.1.5-SNAPSHOT
desht Aug 9, 2024
6523f17
build: updated to MC 1.21.1, gradle 8.8, arch loom 1.7
desht Aug 14, 2024
8ed2e58
build: non-snapshot ftb lib
desht Aug 15, 2024
7e5475e
build: changelog updated
desht Aug 15, 2024
a14b7f6
Merge pull request #55 from FTBTeam/dev
desht Aug 15, 2024
78bf877
tr_tr.json Turkish Localization
RuyaSavascisi Sep 1, 2024
535ec42
fix: settings_for command not working
desht Oct 1, 2024
97b7c6c
build: version -> 2101.1.1, changelog updated
desht Oct 1, 2024
82671ea
build: switch to tag-based publishing
desht Oct 30, 2024
fd2fe24
[1.21.1] Update Icons (#57)
UnRealDinnerbone Nov 4, 2024
6d6cb1c
Merge pull request #56 from RuyaSavascisi/dev
desht Nov 4, 2024
c18ec78
chore: changelog updated
desht Nov 4, 2024
2f5a725
Merge pull request #58 from FTBTeam/dev
desht Nov 6, 2024
571af3c
fix: notify clients immediately of team display name change
desht Jan 22, 2025
3542855
build: updated some dep versions
desht Jan 22, 2025
7eea6ef
chore: move away from some deprecated icon references
desht Jan 22, 2025
187336c
chore: improved command line team completion behaviour
desht Jan 22, 2025
cfc333e
build: version -> 2101.1.2, changelog updated
desht Jan 22, 2025
5ce4e1f
chore: code cleanup
desht Jan 22, 2025
651c8a4
chore: a better implementation of properties syncing
desht Jan 22, 2025
64c2204
chore: changelog update
desht Jan 22, 2025
9fe0da0
Merge pull request #49 from GIGABAIT93/patch-1
desht Jan 23, 2025
c864b00
Merge pull request #59 from FTBTeam/dev
desht Jan 24, 2025
1a26061
Create es_es.json
SrNadien Mar 2, 2025
d867afc
Create es_mx.json
SrNadien Mar 2, 2025
cf4d356
Create es_ar.json
SrNadien Mar 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
curse-publish-task: ""
maven-snapshots: true
java-version: 21
secrets:
ftb-maven-token: ${{ secrets.FTB_MAVEN_TOKEN }}
saps-token: ${{ secrets.SAPS_TOKEN }}
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: Java CI - Build Release

on:
release:
types: [ published ]
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-[a-z]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-[a-z]+\.[0-9]+'

jobs:
build:
if: |
!contains(github.event.head_commit.message, '[ciskip]')
uses: FTBTeam/mods-meta/.github/workflows/standard-release.yml@main
with:
curse-publish-task: curseforge
curse-publish-task: publishMods
java-version: 21
secrets:
ftb-maven-token: ${{ secrets.FTB_MAVEN_TOKEN }}
saps-token: ${{ secrets.SAPS_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ build
eclipse
run
/classes

.DS_Store
.architectury-transformer
52 changes: 51 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,62 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2001.1.5]
## [2101.1.2]

### Changed
* FTB Teams commands which provide command completion for known teams are now smarter about suggesting only relevant teams
* e.g. `/ftbteams server settings ...` now only lists known server teams, not other team types

### Fixed
* Fixed bug where renaming a team's display name didn't sync change to clients immediately, causing command completion to provide the previous name
* This also means any team names and colors will now be immediately visible on client display (e.g. FTB Chunks) if changed by command

## [2101.1.1]

### Added
* Added a `tr_tr` translation, thanks @RuyaSavascisi

### Changed
* Overhauled and cleaned up many icon textures

### Fixed
* Fixed the `/ftbteams party settings_for ...` command not functioning correctly

## [2101.1.0]

### Changed
* Ported to MC 1.21.1
* Will not run on MC 1.21

### Added
* Sidebar buttons for this and other FTB mods can now be enabled/disabled/rearranged (new functionality in FTB Library 2101.1.0)

## [2100.1.0]

### Changed
* Ported to MC 1.21

## [2006.1.0]

### Changed
* Ported to Minecraft 1.20.6. Support for Fabric and NeoForge.
* Forge support may be re-added if/when Architectury adds support for Forge

## [2004.1.2]

### Changed
* Ported to Minecraft 1.20.4. Support for Fabric, Forge and NeoForge.

## [2001.2.0]

### Changed
* Technical addition: property defaults are now initialised lazily, via supplier
* No player-visible change to this right now, but it makes it easier for mods to define config-based defaults, e.g. FTB Chunks team properties
* Technically there is an API break, but only if you were trying to construct property objects yourself using the from-network constructor (and there was no good reason to do that!)
* Deprecated the `CustomPartyCreationHandler` object and related API methods
* Replaced with simpler `FTBTeamsAPI#setPartyCreationFromAPIOnly(boolean)` method
* Intended for use in custom modpacks where players shouldn't create teams directly themselves (either via CLI or GUI)
* Updated party team creation API to work without requiring the party-owning player to be online

### Added
* Added fr_fr translation (thanks @HollishKid and @K0LALA)
Expand Down
81 changes: 78 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.2-SNAPSHOT" apply false
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
}

apply from: 'https://raw.githubusercontent.com/FTBTeam/mods-meta/main/gradle/changelog.gradle'

architectury {
minecraft = rootProject.minecraft_version
}
Expand Down Expand Up @@ -33,7 +36,7 @@ allprojects {
// needs to be done AFTER version is set
apply from: "https://raw.githubusercontent.com/FTBTeam/mods-meta/main/gradle/publishing.gradle"

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = 17
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = 21

compileJava {
options.encoding = "UTF-8"
Expand Down Expand Up @@ -72,6 +75,78 @@ allprojects {
java {
withSourcesJar()
}

publishing {
repositories {
if (ftbPublishing.ftbToken) {
maven {
url ftbPublishing.ftbURL
credentials {
username = ftbPublishing.ftbUser
password = ftbPublishing.ftbToken
}
}
}

if (ftbPublishing.sapsToken) {
maven {
url ftbPublishing.sapsURL
credentials {
username = ftbPublishing.sapsUser
password = ftbPublishing.sapsToken
}
}
}
}
}
}

task curseforgePublish
publishMods {
dryRun = providers.environmentVariable("CURSEFORGE_KEY").getOrNull() == null
changelog = createChangelog(project)
version = mod_version

// TODO: Migrate to something else
def tag = providers.environmentVariable("TAG").getOrElse("release")
type = tag.endsWith("-beta") ? BETA : (tag.endsWith("-alpha") ? ALPHA : STABLE)

def createOptions = (String projectName) -> {
publishOptions {
file = project.provider { project(":$projectName").tasks.remapJar }.flatMap { it.archiveFile }
displayName = "[${projectName.toUpperCase()}][${minecraft_version}] ${readable_name} ${mod_version}"
modLoaders.add(projectName.toLowerCase())
}
}

def fabricOptions = createOptions("fabric")
// def forgeOptions = createOptions("forge")
def neoForgeOptions = createOptions("neoforge")

def curseForgeOptions = curseforgeOptions {
accessToken = providers.environmentVariable("CURSEFORGE_KEY")
minecraftVersions.add("${minecraft_version}")
javaVersions.add(JavaVersion.VERSION_21)
}

curseforge("curseforgeFabric") {
from(curseForgeOptions, fabricOptions)
projectId = curseforge_id_fabric
requires('architectury-api')
requires('fabric-api')
requires('ftb-library-fabric')
}

curseforge("curseforgeNeoForge") {
from(curseForgeOptions, neoForgeOptions)
projectId = curseforge_id_forge
requires('architectury-api')
requires('ftb-library-forge')
}

// curseforge("curseforgeForge") {
// from(curseForgeOptions, forgeOptions)
// projectId = curseforge_id_forge
// requires('architectury-api')
// requires('ftb-library-forge')
// }
}
30 changes: 3 additions & 27 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
dependencies {
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"

modApi "dev.architectury:architectury:${rootProject.architectury_version}"
modApi "dev.architectury:architectury:${rootProject.architectury_api_version}"

modApi "dev.ftb.mods:ftb-library:${rootProject.ftb_library_version}"
}

def ENV = System.getenv()

architectury {
common()
common(/*"forge",*/ "fabric", "neoforge")
}

publishing {
Expand All @@ -20,26 +18,4 @@ publishing {
from components.java
}
}

repositories {
if (ftbPublishing.ftbToken) {
maven {
url ftbPublishing.ftbURL
credentials {
username = ftbPublishing.ftbUser
password = ftbPublishing.ftbToken
}
}
}

if (ftbPublishing.sapsToken) {
maven {
url ftbPublishing.sapsURL
credentials {
username = ftbPublishing.sapsUser
password = ftbPublishing.sapsToken
}
}
}
}
}
}
5 changes: 1 addition & 4 deletions common/src/main/java/dev/ftb/mods/ftbteams/FTBTeams.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public FTBTeams() {

EnvExecutor.runInEnv(Env.CLIENT, () -> FTBTeamsClient::init);

FTBTeamsNet.init();
FTBTeamsNet.register();
}

private void serverAboutToStart(MinecraftServer server) {
Expand Down Expand Up @@ -83,7 +83,4 @@ private void playerLoggedOut(ServerPlayer player) {
TeamManagerImpl.INSTANCE.playerLoggedOut(player);
}
}

public void setup() {
}
}
23 changes: 14 additions & 9 deletions common/src/main/java/dev/ftb/mods/ftbteams/FTBTeamsAPIImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public enum FTBTeamsAPIImpl implements FTBTeamsAPI.API {
INSTANCE;

private CustomPartyCreationHandler partyCreationOverride = null;
private boolean partyCreationFromAPIOnly = false;

@Override
public boolean isManagerLoaded() {
Expand All @@ -38,21 +38,26 @@ public ClientTeamManager getClientManager() {
}

@Override
public CustomPartyCreationHandler getCustomPartyCreationHandler() {
return partyCreationOverride;
public CustomPartyCreationHandler setCustomPartyCreationHandler(CustomPartyCreationHandler partyCreationOverride) {
return null;
}

@Override
public TeamMessage createMessage(UUID sender, Component text) {
return new TeamMessageImpl(sender, System.currentTimeMillis(), text);
public CustomPartyCreationHandler getCustomPartyCreationHandler() {
return null;
}

@Override
public CustomPartyCreationHandler setCustomPartyCreationHandler(CustomPartyCreationHandler partyCreationOverride) {
CustomPartyCreationHandler prev = this.partyCreationOverride;
this.partyCreationOverride = partyCreationOverride;
return prev;
public void setPartyCreationFromAPIOnly(boolean apiOnly) {
partyCreationFromAPIOnly = apiOnly;
}

public boolean isPartyCreationFromAPIOnly() {
return partyCreationFromAPIOnly;
}

@Override
public TeamMessage createMessage(UUID sender, Component text) {
return new TeamMessageImpl(sender, System.currentTimeMillis(), text);
}
}
21 changes: 0 additions & 21 deletions common/src/main/java/dev/ftb/mods/ftbteams/FTBTeamsCommon.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import dev.ftb.mods.ftblibrary.ui.input.MouseButton;

@FunctionalInterface
@Deprecated
public interface CustomPartyCreationHandler {
void createParty(MouseButton button);
}
26 changes: 24 additions & 2 deletions common/src/main/java/dev/ftb/mods/ftbteams/api/FTBTeamsAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static FTBTeamsAPI.API api() {
* @return a new resource location
*/
public static ResourceLocation rl(String path) {
return new ResourceLocation(MOD_ID, path);
return ResourceLocation.fromNamespaceAndPath(MOD_ID, path);
}

/**
Expand Down Expand Up @@ -92,17 +92,39 @@ public interface API {
*
* @param handler the new handler to use
* @return the previous handler
* @deprecated use {@link #setPartyCreationFromAPIOnly(boolean)}
*/
@Deprecated
@Nullable
CustomPartyCreationHandler setCustomPartyCreationHandler(@Nullable CustomPartyCreationHandler handler);

/**
* Get the custom party creation handler in effect, if any
* @return the current custom handler, or null if none is in effect
* @deprecated see {@link #setPartyCreationFromAPIOnly(boolean)}
*/
@Deprecated
@Nullable
CustomPartyCreationHandler getCustomPartyCreationHandler();

/**
* By setting api-only team creation to true, this prevents players from creating party teams using either the
* command interface or GUI interface of FTB Teams. Parties will only be creatable by other mods via the
* FTB Teams API. This is intended for use with custom modpacks which link party creation with e.g. base
* creation.
* <p>
* By default, FTB Teams allows party creation via all methods.
*
* @param apiOnly true to allow party creation via API only, false to allow normal creation
*/
void setPartyCreationFromAPIOnly(boolean apiOnly);

/**
* Create a team message with a timestamp of the current system time.
* @param sender the sending player
* @param text the message content
* @return a new TeamMessage object
*/
TeamMessage createMessage(UUID sender, Component text);
}
}
}
Loading