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_.
|
Maven automatically fetches all dependencies and builds DungeonsXL; just run _build.bat_ or enter the command _mvn clean install_.
|
||||||
|
|
||||||
#### DRECommons
|
#### 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 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
|
### Java
|
||||||
Make sure that your server uses Java 8 or higher.
|
Make sure that your server uses Java 8 or higher.
|
||||||
|
2
pom.xml
2
pom.xml
@ -77,7 +77,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>de.erethon</groupId>
|
<groupId>de.erethon</groupId>
|
||||||
<artifactId>caliburn</artifactId>
|
<artifactId>caliburn</artifactId>
|
||||||
<version>0.4</version>
|
<version>0.4.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -16,10 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package de.erethon.dungeonsxl.config;
|
package de.erethon.dungeonsxl.config;
|
||||||
|
|
||||||
import de.erethon.commons.chat.MessageUtil;
|
|
||||||
import de.erethon.commons.config.Message;
|
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.FileConfiguration;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
|
|
||||||
@ -255,13 +252,8 @@ public enum DMessage implements Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getMessage() {
|
public String getRaw() {
|
||||||
return ChatColor.translateAlternateColorCodes('&', message);
|
return message;
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getMessage(String... args) {
|
|
||||||
return DREPlugin.getInstance().getMessageConfig().getMessage(this, args);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -269,14 +261,6 @@ public enum DMessage implements Message {
|
|||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Actions */
|
|
||||||
/**
|
|
||||||
* Sends the message to the console.
|
|
||||||
*/
|
|
||||||
public void debug() {
|
|
||||||
MessageUtil.log(DREPlugin.getInstance(), getMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Statics */
|
/* Statics */
|
||||||
/**
|
/**
|
||||||
* @param identifier
|
* @param identifier
|
||||||
@ -288,7 +272,6 @@ public enum DMessage implements Message {
|
|||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -300,7 +283,6 @@ public enum DMessage implements Message {
|
|||||||
for (DMessage message : values()) {
|
for (DMessage message : values()) {
|
||||||
config.set(message.getIdentifier(), message.message);
|
config.set(message.getIdentifier(), message.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user