Small Update (#687)

* Adds GlowAPI as a maven resource

* Implement credit on player join
This commit is contained in:
Alexander Meech 2017-01-06 20:33:16 -05:00 committed by Christopher Martin
parent bdaa68ede1
commit fd03d8d863
2 changed files with 12 additions and 1 deletions

View file

@ -13,6 +13,10 @@
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>inventive-repo</id>
<url>https://repo.inventivetalent.org/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
@ -143,6 +147,11 @@
<scope>system</scope>
<systemPath>${project.basedir}/lib/GLib.jar</systemPath>
</dependency>
<dependency>
<groupId>org.inventivetalent</groupId>
<artifactId>glowapi</artifactId>
<version>1.4.4</version>
</dependency>
</dependencies>
<build>

View file

@ -1064,7 +1064,9 @@ public class PKListener implements Listener {
public void onPlayerJoin(PlayerJoinEvent event) {
final Player player = event.getPlayer();
JUMPS.put(player, player.getStatistic(Statistic.JUMP));
player.sendMessage(ChatColor.GREEN + "This server is running ProjectKorra version " + ProjectKorra.plugin.getDescription().getVersion() + " for bending! Find out more at http://www.projectkorra.com!");
GeneralMethods.createBendingPlayer(player.getUniqueId(), player.getName());
Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, new Runnable() {