mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-13 10:51:19 +01:00
Update to Caliburn 0.4.1 / DRECommons 4.2
This commit is contained in:
parent
024f004153
commit
b65b4df8cc
@ -55,10 +55,10 @@ Building DungeonsXL from source requires [Apache Maven](https://maven.apache.org
|
||||
Maven automatically fetches all dependencies and builds DungeonsXL; just run _build.bat_ or enter the command _mvn clean install_.
|
||||
|
||||
#### DRECommons
|
||||
[DRECommons](https://github.com/DRE2N/DRECommons) is a util library for common tasks. DungeonsXL contains DRECommons 4.1.1.
|
||||
[DRECommons](https://github.com/DRE2N/DRECommons) is a util library for common tasks. DungeonsXL contains DRECommons 4.2.
|
||||
|
||||
#### Caliburn API
|
||||
[Caliburn](https://github.com/DRE2N/CaliburnAPI) is an API to read custom items and mobs from config files. DungeonsXL contains Caliburn Beta 0.4.
|
||||
[Caliburn](https://github.com/DRE2N/CaliburnAPI) is an API to read custom items and mobs from config files. DungeonsXL contains Caliburn Beta 0.4.1.
|
||||
|
||||
### Java
|
||||
Make sure that your server uses Java 8 or higher.
|
||||
|
2
pom.xml
2
pom.xml
@ -77,7 +77,7 @@
|
||||
<dependency>
|
||||
<groupId>de.erethon</groupId>
|
||||
<artifactId>caliburn</artifactId>
|
||||
<version>0.4</version>
|
||||
<version>0.4.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -16,10 +16,7 @@
|
||||
*/
|
||||
package de.erethon.dungeonsxl.config;
|
||||
|
||||
import de.erethon.commons.chat.MessageUtil;
|
||||
import de.erethon.commons.config.Message;
|
||||
import de.erethon.commons.javaplugin.DREPlugin;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
@ -255,13 +252,8 @@ public enum DMessage implements Message {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return ChatColor.translateAlternateColorCodes('&', message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage(String... args) {
|
||||
return DREPlugin.getInstance().getMessageConfig().getMessage(this, args);
|
||||
public String getRaw() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -269,14 +261,6 @@ public enum DMessage implements Message {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
/* Actions */
|
||||
/**
|
||||
* Sends the message to the console.
|
||||
*/
|
||||
public void debug() {
|
||||
MessageUtil.log(DREPlugin.getInstance(), getMessage());
|
||||
}
|
||||
|
||||
/* Statics */
|
||||
/**
|
||||
* @param identifier
|
||||
@ -288,7 +272,6 @@ public enum DMessage implements Message {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -300,7 +283,6 @@ public enum DMessage implements Message {
|
||||
for (DMessage message : values()) {
|
||||
config.set(message.getIdentifier(), message.message);
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user