Skip to content

Commit 2485945

Browse files
authored
Merge pull request #27 from Sandro642/fix/mc/logs
Feature: update version to 0.2.6.1-STABLE, modify log path handling, …
2 parents 17321fc + 3bf9390 commit 2485945

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = 'fr.sandro642.github'
8-
version = '0.2.6-STABLE'
8+
version = '0.2.6.1-STABLE'
99

1010
tasks.register('printVersion') {
1111
doLast {

readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ And if you thought APIs were complicated, think again! With ConnectLib, it's lik
77
---
88

99
```java
10-
Stable Version: 0.2.6-STABLE
10+
Stable Version: 0.2.6.1-STABLE
1111
```
1212

1313
---
@@ -35,7 +35,8 @@ Changelog:
3535
- [0.1.3.17-SNAPSHOT]: Removal of data serialization... Still available from the /feature/serializer branch. Useful if processes are not initialized in the same environment.
3636
- [0.1.9.2-STABLE]: Security patch using the getRoutes method using an enumeration class for routeName: StackOverflowError... + Creation of maps according to the desired variable type.
3737
- [0.2.0-STABLE]: Wow, arrival of 0.2.0 in such a short time? There were things to do on this project ;)
38-
- [0.2.2-STABLE]: Added log creation.
38+
- [0.2.2-STABLE]: Added log creation.
39+
- [0.2.6.1-STABLE]: Patch dû à la compatibilité avec la création de log et le Hook Minecraft.
3940
```
4041

4142
---
@@ -93,7 +94,7 @@ repositories {
9394

9495
dependencies {
9596

96-
implementation("fr.sandro642.github:ConnectLib:0.2.6-STABLE")
97+
implementation("fr.sandro642.github:ConnectLib:0.2.6.1-STABLE")
9798

9899
}
99100

src/main/java/fr/sandro642/github/utils/Logs.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Logs {
3030
* Constructor of Logs
3131
* This constructor is private to ensure that the class is a singleton.
3232
*/
33-
private static String pathFile;
33+
private String pathFile;
3434

3535
/**
3636
* Make list for save logs in memory before writing to file.
@@ -43,7 +43,11 @@ public class Logs {
4343
* This block is executed when the class is loaded, ensuring that the instance is created only once.
4444
*/
4545
public void setPathFile(ResourceType type) {
46-
this.pathFile = type.getPath();
46+
if (type == ResourceType.MC_RESOURCES) {
47+
this.pathFile = ConnectLib.MCSupport().getPluginPath();
48+
} else {
49+
this.pathFile = type.getPath();
50+
}
4751
}
4852

4953
/**

0 commit comments

Comments
 (0)