Version 0.0.1

- Initial commit
This commit is contained in:
MagmaGuy 2018-11-03 23:33:37 +00:00
parent a68632cef0
commit 8e36ecb417
5 changed files with 13 additions and 29 deletions

20
pom.xml
View File

@ -4,8 +4,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>epictimber</groupId> <groupId>ultimatetimber</groupId>
<artifactId>EpicTimber</artifactId> <artifactId>UltimateTimber</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<properties> <properties>
@ -25,22 +25,6 @@
<target>1.8</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>

View File

@ -1,4 +1,4 @@
package com.songoda.epictimber; package com.songoda.ultimatetimber;
import org.bukkit.configuration.Configuration; import org.bukkit.configuration.Configuration;
@ -22,7 +22,7 @@ public class DefaultConfig {
public static void initialize() { public static void initialize() {
Configuration newConfiguration = EpicTimber.plugin.getConfig(); Configuration newConfiguration = UltimateTimber.plugin.getConfig();
newConfiguration.addDefault(AXES_ONLY, true); newConfiguration.addDefault(AXES_ONLY, true);
newConfiguration.addDefault(ACCURATE_AXE_DURABILITY, true); newConfiguration.addDefault(ACCURATE_AXE_DURABILITY, true);
@ -31,7 +31,7 @@ public class DefaultConfig {
newConfiguration.options().copyDefaults(true); newConfiguration.options().copyDefaults(true);
EpicTimber.plugin.saveDefaultConfig(); UltimateTimber.plugin.saveDefaultConfig();
configuration = newConfiguration; configuration = newConfiguration;

View File

@ -1,4 +1,4 @@
package com.songoda.epictimber; package com.songoda.ultimatetimber;
import org.bukkit.GameMode; import org.bukkit.GameMode;
import org.bukkit.Location; import org.bukkit.Location;
@ -189,7 +189,7 @@ public class TreeFallHandler implements Listener {
public void run() { public void run() {
fallingBlock.setGravity(true); fallingBlock.setGravity(true);
} }
}.runTaskLater(EpicTimber.plugin, 5); }.runTaskLater(UltimateTimber.plugin, 5);
new BukkitRunnable() { new BukkitRunnable() {
@Override @Override
public void run() { public void run() {
@ -201,7 +201,7 @@ public class TreeFallHandler implements Listener {
fallingBlock.getLocation().getWorld().spawnParticle(Particle.SMOKE_LARGE, fallingBlock.getLocation(), 3, 0.2, 0.2, 0.2, 0.05); fallingBlock.getLocation().getWorld().spawnParticle(Particle.SMOKE_LARGE, fallingBlock.getLocation(), 3, 0.2, 0.2, 0.2, 0.05);
} }
} }
}.runTaskTimer(EpicTimber.plugin, 0, 1); }.runTaskTimer(UltimateTimber.plugin, 0, 1);
} }

View File

@ -1,4 +1,4 @@
package com.songoda.epictimber; package com.songoda.ultimatetimber;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
@ -10,7 +10,7 @@ in the documentation, config files and variable names.
PS: MagmaGuy was here PS: MagmaGuy was here
*/ */
public class EpicTimber extends JavaPlugin { public class UltimateTimber extends JavaPlugin {
public static Plugin plugin; public static Plugin plugin;

View File

@ -1,10 +1,10 @@
name: EpicTimber name: UltimateTimber
version: 0.0.1 version: 0.0.1
author: Songoda author: Songoda
main: com.songoda.epictimber.EpicTimber main: com.songoda.ultimatetimber.UltimateTimber
api-version: 1.13 api-version: 1.13
commands: commands:
epictimber: epictimber:
description: Does something, probably description: Does something, probably
usage: /epictimber usage: /ultimatetimber
aliases: [ep] aliases: [ep]