mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Improved /we version output for dev builds.
This commit is contained in:
parent
a51bc28756
commit
4c05050d73
@ -1409,4 +1409,8 @@ public class WorldEdit {
|
|||||||
|
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void setVersion(String version) {
|
||||||
|
WorldEdit.version = version;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,13 @@ public class WorldEditPlugin extends JavaPlugin {
|
|||||||
* Called on plugin enable.
|
* Called on plugin enable.
|
||||||
*/
|
*/
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
logger.info("WorldEdit " + getDescription().getVersion() + " enabled.");
|
final String pluginYmlVersion = getDescription().getVersion();
|
||||||
|
final String manifestVersion = WorldEdit.getVersion();
|
||||||
|
|
||||||
|
logger.info("WorldEdit " + pluginYmlVersion + " enabled.");
|
||||||
|
if (!manifestVersion.equalsIgnoreCase(pluginYmlVersion)) {
|
||||||
|
WorldEdit.setVersion(manifestVersion + " (" + pluginYmlVersion + ")");
|
||||||
|
}
|
||||||
|
|
||||||
// Make the data folders that WorldEdit uses
|
// Make the data folders that WorldEdit uses
|
||||||
getDataFolder().mkdirs();
|
getDataFolder().mkdirs();
|
||||||
|
Loading…
Reference in New Issue
Block a user