Code improvement and dependency update. (#106)

* [Change] pom indent to 2 spaces.

* [Update] dependencies (Essentials and ProtocolLib)

* [Change] "new Integer(s)" to "Integer.parseInt(s)"

* [Change] indent (from space to tab)
This commit is contained in:
怠惰 2020-02-16 06:13:19 +09:00 committed by GitHub
parent 7ceace5eba
commit 3fbd10e078
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 414 additions and 414 deletions

View file

@ -50,8 +50,8 @@
<url>https://maven.sk89q.com/repo/</url>
</repository>
<repository>
<id>ess-repo</id>
<url>http://repo.ess3.net/content/groups/essentials</url>
<id>essentialsx-repo</id>
<url>https://ci.ender.zone/plugin/repository/everything/</url>
</repository>
<repository>
<id>empcraft</id>
@ -115,8 +115,8 @@
</dependency>
<dependency>
<groupId>net.ess3</groupId>
<artifactId>Essentials</artifactId>
<version>2.13-SNAPSHOT</version>
<artifactId>EssentialsX</artifactId>
<version>2.17.0</version>
<scope>provided</scope>
</dependency>
<dependency>
@ -127,8 +127,8 @@
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib-API</artifactId>
<version>4.4.0</version>
<artifactId>ProtocolLib</artifactId>
<version>4.5.0</version>
<scope>provided</scope>
</dependency>
</dependencies>

View file

@ -19,8 +19,8 @@
<url>https://maven.sk89q.com/repo/</url>
</repository>
<repository>
<id>ess-repo</id>
<url>http://repo.ess3.net/content/groups/essentials</url>
<id>essentialsx-repo</id>
<url>https://ci.ender.zone/plugin/repository/everything/</url>
</repository>
</repositories>
@ -57,8 +57,8 @@
</dependency>
<dependency>
<groupId>net.ess3</groupId>
<artifactId>Essentials</artifactId>
<version>2.13-SNAPSHOT</version>
<artifactId>EssentialsX</artifactId>
<version>2.17.0</version>
<scope>provided</scope>
</dependency>
</dependencies>

View file

@ -25,7 +25,7 @@ public class SoundDataFlag extends Flag<SoundData>
String[] splitd = context.getUserInput().trim().split(" ");
if (splitd.length == 2)
{
return new SoundData(splitd[0], new Integer(splitd[1]));
return new SoundData(splitd[0], Integer.parseInt(splitd[1]));
}
else
{
@ -37,6 +37,6 @@ public class SoundDataFlag extends Flag<SoundData>
public SoundData unmarshal(Object o)
{
String[] splitd = o.toString().split(" ");
return new SoundData(splitd[0], new Integer(splitd[1]));
return new SoundData(splitd[0], Integer.parseInt(splitd[1]));
}
}