geforkt von Mirrors/FastAsyncWorldEdit
Added bStats
Dieser Commit ist enthalten in:
Ursprung
568643d08a
Commit
02c6f11bb9
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
<subpackage name="bukkit">
|
<subpackage name="bukkit">
|
||||||
<allow pkg="org.bukkit"/>
|
<allow pkg="org.bukkit"/>
|
||||||
|
<allow pkg="org.bstats.bukkit"/>
|
||||||
<allow pkg="net.minecraft.server"/>
|
<allow pkg="net.minecraft.server"/>
|
||||||
</subpackage>
|
</subpackage>
|
||||||
|
|
||||||
@ -58,6 +59,7 @@
|
|||||||
<allow pkg="com.flowpowered.math" />
|
<allow pkg="com.flowpowered.math" />
|
||||||
<allow pkg="org.spongepowered.api" />
|
<allow pkg="org.spongepowered.api" />
|
||||||
<allow pkg="org.slf4j" />
|
<allow pkg="org.slf4j" />
|
||||||
|
<allow pkg="org.bstats.sponge"/>
|
||||||
<allow pkg="ninja.leaping.configurate" />
|
<allow pkg="ninja.leaping.configurate" />
|
||||||
</subpackage>
|
</subpackage>
|
||||||
</subpackage>
|
</subpackage>
|
||||||
|
@ -4,12 +4,14 @@ apply plugin: 'maven'
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven { url "https://hub.spigotmc.org/nexus/content/groups/public" }
|
maven { url "https://hub.spigotmc.org/nexus/content/groups/public" }
|
||||||
|
maven { url "http://repo.bstats.org/content/repositories/releases/" }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':worldedit-core')
|
compile project(':worldedit-core')
|
||||||
compile 'com.sk89q:dummypermscompat:1.8'
|
compile 'com.sk89q:dummypermscompat:1.8'
|
||||||
compile 'org.bukkit:bukkit:1.13-R0.1-SNAPSHOT' // zzz
|
compile 'org.bukkit:bukkit:1.13-R0.1-SNAPSHOT' // zzz
|
||||||
|
compile 'org.bstats:bstats-bukkit:1.2'
|
||||||
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,6 +36,9 @@ jar {
|
|||||||
shadowJar {
|
shadowJar {
|
||||||
dependencies {
|
dependencies {
|
||||||
include(dependency(':worldedit-core'))
|
include(dependency(':worldedit-core'))
|
||||||
|
relocate ("org.bstats", "com.sk89q.worldedit.bukkit.bstats") {
|
||||||
|
include(dependency("org.bstats:bstats-bukkit:1.2"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ import com.sk89q.worldedit.extension.platform.Actor;
|
|||||||
import com.sk89q.worldedit.extension.platform.Capability;
|
import com.sk89q.worldedit.extension.platform.Capability;
|
||||||
import com.sk89q.worldedit.extension.platform.Platform;
|
import com.sk89q.worldedit.extension.platform.Platform;
|
||||||
import com.sk89q.worldedit.extent.inventory.BlockBag;
|
import com.sk89q.worldedit.extent.inventory.BlockBag;
|
||||||
|
import org.bstats.bukkit.Metrics;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabCompleter;
|
import org.bukkit.command.TabCompleter;
|
||||||
@ -102,6 +103,9 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter {
|
|||||||
// Forge WorldEdit and there's (probably) not going to be any other
|
// Forge WorldEdit and there's (probably) not going to be any other
|
||||||
// platforms to be worried about... at the current time of writing
|
// platforms to be worried about... at the current time of writing
|
||||||
WorldEdit.getInstance().getEventBus().post(new PlatformReadyEvent());
|
WorldEdit.getInstance().getEventBus().post(new PlatformReadyEvent());
|
||||||
|
|
||||||
|
// Enable metrics
|
||||||
|
new Metrics(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadConfig() {
|
private void loadConfig() {
|
||||||
|
@ -12,9 +12,14 @@ plugins {
|
|||||||
id 'org.spongepowered.plugin' version '0.8.1'
|
id 'org.spongepowered.plugin' version '0.8.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven { url "http://repo.bstats.org/content/repositories/releases/" }
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':worldedit-core')
|
compile project(':worldedit-core')
|
||||||
compile 'org.spongepowered:spongeapi:7.0.0-SNAPSHOT'
|
compile 'org.spongepowered:spongeapi:7.0.0-SNAPSHOT'
|
||||||
|
compile 'org.bstats:bstats-sponge:1.2'
|
||||||
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
|
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,6 +42,9 @@ jar {
|
|||||||
shadowJar {
|
shadowJar {
|
||||||
dependencies {
|
dependencies {
|
||||||
include(dependency(':worldedit-core'))
|
include(dependency(':worldedit-core'))
|
||||||
|
relocate ("org.bstats", "com.sk89q.worldedit.sponge.bstats") {
|
||||||
|
include(dependency("org.bstats:bstats-sponge:1.2"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ import com.sk89q.worldedit.sponge.adapter.SpongeImplAdapter;
|
|||||||
import com.sk89q.worldedit.sponge.adapter.SpongeImplLoader;
|
import com.sk89q.worldedit.sponge.adapter.SpongeImplLoader;
|
||||||
import com.sk89q.worldedit.sponge.config.SpongeConfiguration;
|
import com.sk89q.worldedit.sponge.config.SpongeConfiguration;
|
||||||
import com.sk89q.worldedit.world.item.ItemTypes;
|
import com.sk89q.worldedit.world.item.ItemTypes;
|
||||||
|
import org.bstats.sponge.Metrics;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.spongepowered.api.Sponge;
|
import org.spongepowered.api.Sponge;
|
||||||
import org.spongepowered.api.block.BlockSnapshot;
|
import org.spongepowered.api.block.BlockSnapshot;
|
||||||
@ -75,6 +76,9 @@ public class SpongeWorldEdit {
|
|||||||
@Inject
|
@Inject
|
||||||
private Logger logger;
|
private Logger logger;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private Metrics metrics;
|
||||||
|
|
||||||
public static final String MOD_ID = "worldedit";
|
public static final String MOD_ID = "worldedit";
|
||||||
|
|
||||||
private SpongePermissionsProvider provider;
|
private SpongePermissionsProvider provider;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren