mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-24 11:15:19 +01:00
commit
cb0d421963
@ -185,9 +185,14 @@ public class AuthMe extends JavaPlugin {
|
|||||||
// TODO: enhance this
|
// TODO: enhance this
|
||||||
private void setupConstants() {
|
private void setupConstants() {
|
||||||
String versionRaw = this.getDescription().getVersion();
|
String versionRaw = this.getDescription().getVersion();
|
||||||
pluginVersion = versionRaw.substring(0, versionRaw.indexOf("-b"));
|
int index = versionRaw.lastIndexOf("-");
|
||||||
String buildRaw = versionRaw.substring(1, versionRaw.indexOf("-b"));
|
if (index != -1) {
|
||||||
pluginBuildNumber = buildRaw.substring(0, buildRaw.indexOf("-t"));
|
pluginVersion = versionRaw.substring(0, index);
|
||||||
|
pluginBuildNumber = versionRaw.substring(index + 1);
|
||||||
|
if (pluginBuildNumber.startsWith("b")) {
|
||||||
|
pluginBuildNumber = pluginBuildNumber.substring(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,7 +3,7 @@ authors: [${pluginAuthors}]
|
|||||||
website: ${project.url}
|
website: ${project.url}
|
||||||
description: ${project.description}
|
description: ${project.description}
|
||||||
main: ${mainClass}
|
main: ${mainClass}
|
||||||
version: ${project.version}-b${buildNumber}-t${build.time}
|
version: ${project.version}-b${buildNumber}
|
||||||
softdepend:
|
softdepend:
|
||||||
- Vault
|
- Vault
|
||||||
- PermissionsBukkit
|
- PermissionsBukkit
|
||||||
|
Loading…
Reference in New Issue
Block a user