Skip to content

Commit c8f3a3b

Browse files
committed
アシスト
1 parent c2b9829 commit c8f3a3b

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

src/main/java/com/github/elic0de/thejpspit/game/Game.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.github.elic0de.thejpspit.player.PitPlayer;
55
import com.github.elic0de.thejpspit.scoreboard.GameScoreboard;
66
import com.github.elic0de.thejpspit.task.GameTask;
7+
import com.github.elic0de.thejpspit.util.killAssistHelper.KillAssistHelper;
78
import java.util.HashSet;
89
import java.util.Set;
910

@@ -63,6 +64,8 @@ public void death(PitPlayer player) {
6364
.replaceAll("%player%", player.getName())
6465
.replaceAll("%rating%", player.getRating() + "%")
6566
);
67+
68+
//KillAssistHelper.test(player.getPlayer());
6669
}
6770

6871
public Set<PitPlayer> getPitPlayers() {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.github.elic0de.thejpspit.util.killAssistHelper;
2+
3+
public class KillAssistData {
4+
5+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.github.elic0de.thejpspit.util.killAssistHelper;
2+
3+
import com.github.elic0de.thejpspit.TheJpsPit;
4+
import de.themoep.minedown.MineDown;
5+
import org.bukkit.Bukkit;
6+
import org.bukkit.entity.Player;
7+
import org.bukkit.event.Listener;
8+
9+
public class KillAssistHelper implements Listener {
10+
11+
public KillAssistHelper() {
12+
Bukkit.getPluginManager().registerEvents(this, TheJpsPit.getInstance());
13+
}
14+
15+
public static void test(Player player) {
16+
player.spigot().sendMessage(new MineDown("[(+2 assist)](hover=04o7)").toComponent());
17+
}
18+
}

0 commit comments

Comments
 (0)