Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit 4a8b467

Browse files
committed
Merge branch 'develop'
2 parents d6b486b + 5b10856 commit 4a8b467

5 files changed

Lines changed: 20 additions & 23 deletions

File tree

pom.xml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -88,41 +88,26 @@
8888
</build>
8989

9090
<dependencies>
91-
<!-- Logging -->
92-
<dependency>
93-
<groupId>org.slf4j</groupId>
94-
<artifactId>slf4j-log4j12</artifactId>
95-
<version>1.7.26</version>
96-
<scope>compile</scope>
97-
</dependency>
98-
99-
<!-- Lombok -->
100-
<dependency>
101-
<groupId>org.projectlombok</groupId>
102-
<artifactId>lombok</artifactId>
103-
<version>1.18.6</version>
104-
</dependency>
10591

10692
<!-- Network -->
10793
<dependency>
10894
<groupId>com.github.froxynetwork</groupId>
10995
<artifactId>froxynetwork</artifactId>
110-
<version>0.1.2</version>
96+
<version>0.1.3</version>
11197
</dependency>
11298

11399
<!-- Game -->
114100
<dependency>
115101
<groupId>com.github.froxynetwork</groupId>
116102
<artifactId>froxygame</artifactId>
117-
<version>0.0.1</version>
103+
<version>0.0.3</version>
118104
</dependency>
119105

120106
<!-- API -->
121107
<dependency>
122108
<groupId>com.github.froxynetwork</groupId>
123109
<artifactId>froxyapi</artifactId>
124-
<version>0.0.2</version>
125-
<scope>provided</scope>
110+
<version>0.0.3</version>
126111
</dependency>
127112

128113
<!--Spigot API -->

src/main/java/com/froxynetwork/froxycore/FroxyCore.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public void onEnable() {
5555
Bukkit.getPluginManager().registerEvents(commandManager, this);
5656
APIImpl impl = new APIImpl(null, null, Constants.VERSION, log, languageManager, commandManager);
5757
Froxy.setAPI(impl);
58-
File lang = new File(getClass().getClassLoader().getResource("lang").getFile());
58+
// TODO EDIT HERE
59+
File lang = new File("plugins" + File.separator + getDescription().getName() + File.separator + "lang");
5960
Froxy.register(lang);
6061
log.info("FroxyCore started !");
6162
}

src/main/java/com/froxynetwork/froxycore/api/language/LanguageManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ public void register(File path) {
4646

4747
@Override
4848
public String $(String id, Languages lang, String... params) {
49-
return com.froxynetwork.froxygame.languages.LanguageManager.$(id, langApiToGame(lang), params);
49+
return com.froxynetwork.froxygame.languages.LanguageManager.$(id, langApiToGame(lang), params).replace("$", "§");
5050
}
5151

5252
@Override
5353
public String $_(String id, Languages lang, String... params) {
54-
return com.froxynetwork.froxygame.languages.LanguageManager.$_(id, langApiToGame(lang), params);
54+
return com.froxynetwork.froxygame.languages.LanguageManager.$_(id, langApiToGame(lang), params).replace("$", "§");
5555
}
5656

5757
private com.froxynetwork.froxygame.languages.Languages langApiToGame(Languages lang) {

src/main/resources/lang/en_US.lang

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
command.nopermission : §cYou don't have permission to execute this command
2-
command.syntaxerror : §cSyntax: {}
1+
command.nopermission : &cYou don't have permission to execute this command
2+
command.syntaxerror : &cSyntax: {}

src/main/resources/plugin.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: FroxyNetwork
2+
main: com.froxynetwork.froxycore.FroxyCore
3+
version: 0.0.3
4+
author: oddlyoko
5+
commands:
6+
box:
7+
description: help box
8+
permissions:
9+
box.give:
10+
default: op
11+
description: Ajouter des clés à des joueurs

0 commit comments

Comments
 (0)