Skip to content

Commit 734c51b

Browse files
Changes for 2.7.8
- fixes for early features - test for 1.21.1
1 parent f63027a commit 734c51b

File tree

9 files changed

+4
-16
lines changed

9 files changed

+4
-16
lines changed

src/main/java/de/vmoon/hasplugin/commands/HasCommand.java

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -482,19 +482,7 @@ private void checkIfSelectedPlayerKilledEveryone() {
482482
.count();
483483

484484
if (countAlivePlayers == 0) {
485-
Bukkit.broadcastMessage("§cDer Sucher §f(" + selectedPlayer.getName() + ")§c hat alle Spieler gefunden!");
486-
disablepvp();
487-
for (Player player : Bukkit.getOnlinePlayers()) {
488-
player.sendTitle("§2Alle Gefunden!", "§cSucher: §r" + selectedPlayer.getName(), 10, 70, 20);
489-
stopGlobalTimer();
490-
}
491-
Bukkit.getScheduler().runTaskLater(HASPlugin.getPlugin(), () -> {
492-
teleportAllPlayers();
493-
for (Player player : Bukkit.getOnlinePlayers()) {
494-
player.setGameMode(GameMode.ADVENTURE);
495-
player.getInventory().clear();
496-
}
497-
}, 20L * 5);
485+
endgame();
498486
}
499487
}
500488

@@ -621,7 +609,7 @@ public void removeEffects() {
621609
}
622610

623611
public void giveEffects() {
624-
selectedPlayer.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, Integer.MAX_VALUE, 1));
612+
selectedPlayer.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, PotionEffect.INFINITE_DURATION, 1));
625613
for (Player player : Bukkit.getOnlinePlayers()) {
626614
if (!player.equals(selectedPlayer)) {
627615
player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, PotionEffect.INFINITE_DURATION, 0));

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: HASPlugin
2-
version: 2.7.7
2+
version: 2.7.8
33
# '${project.version}'
44
main: de.vmoon.hasplugin.HASPlugin
55
api-version: '1.20'
-108 Bytes
Binary file not shown.

target/HASPlugin-1.0-SNAPSHOT.jar

-108 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-422 Bytes
Binary file not shown.

target/classes/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: HASPlugin
2-
version: 2.7.7
2+
version: 2.7.8
33
# '1.0-SNAPSHOT'
44
main: de.vmoon.hasplugin.HASPlugin
55
api-version: '1.20'
-108 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)