Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Improved /we version output for dev builds.
Dieser Commit ist enthalten in:
Ursprung
a51bc28756
Commit
4c05050d73
@ -1409,4 +1409,8 @@ public class WorldEdit {
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
public static void setVersion(String version) {
|
||||
WorldEdit.version = version;
|
||||
}
|
||||
}
|
||||
|
@ -80,8 +80,14 @@ public class WorldEditPlugin extends JavaPlugin {
|
||||
* Called on plugin enable.
|
||||
*/
|
||||
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
|
||||
getDataFolder().mkdirs();
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren