mirror of
https://github.com/TotalFreedomMC/TF-WorldGuardExtraFlagsPlugin.git
synced 2024-12-27 17:44:47 +00:00
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:
parent
7ceace5eba
commit
3fbd10e078
7 changed files with 414 additions and 414 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue