Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,30 @@ plugins {
}

group 'com.mcsimonflash.sponge.activetime'
version '1.4.3'
version '1.4.3-fix'
ext.spongeversion = '7.1.0-SNAPSHOT'

repositories {
mavenCentral()
maven {
name = 'nucleus-api'
url = 'http://repo.drnaylor.co.uk/artifactory/list/minecraft'
//url = 'http://repo.drnaylor.co.uk/artifactory/list/minecraft'
url = 'https://jitpack.io'
}
}

dependencies {
compileOnly "org.spongepowered:spongeapi:${spongeversion}"
compileOnly 'io.github.nucleuspowered:nucleus-api:1.2.3-SNAPSHOT-S7.0'
//compileOnly 'io.github.nucleuspowered:nucleus-api:1.2.3-SNAPSHOT-S7.0'
implementation 'com.github.NucleusPowered:Nucleus:1.14.3'
}

jar {
archiveName = "${project.name}-s${spongeversion.substring(0, 3)}-v${version}.jar"
}

task copyJars(type: Copy) {
from jar into project.file("#releases/${version}")
from jar into project.file("releases/${version}")
}

build.dependsOn(copyJars)
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void registerMessageToken() {
} else {
return Optional.empty();
}
return Optional.of(Util.toText(source instanceof User ? Util.printTime(Storage.getTotalTime(((User) source).getUniqueId()).getTime(active)) : active ? "" : "-1"));
return Optional.of(Util.toText(source instanceof User ? Util.printTime(Storage.getTotalTime(((User) source).getUniqueId()).getTime(active)) : active ? "�?" : "�?-1"));
});
NucleusAPI.getMessageTokenService().registerPrimaryToken("activetime", ActiveTime.getContainer(), "activetime");
NucleusAPI.getMessageTokenService().registerPrimaryToken("afktime", ActiveTime.getContainer(), "afktime");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public static void startMilestoneTask() {
public static void checkMilestones(Player player) {
int activetime = Storage.getTotalTime(player.getUniqueId()).getActiveTime();
Storage.milestones.values().stream()
.filter(m -> player.hasPermission("activetime.milestones." + m.getName() + ".base"))
.filter(m -> player.hasPermission("activetime.milestones.base"))
.forEach(m -> m.process(player, activetime));
}

Expand Down