17 Commits

Author SHA1 Message Date
marc-go
fd092a02cc Merge remote-tracking branch 'hacker_marc/master' 2026-01-06 18:23:52 +01:00
marc-go
5a09d7b15c Remove Filter 2026-01-06 18:22:33 +01:00
marc-go
de8244815a Translate to Englisch 2026-01-06 18:21:04 +01:00
f30cb5a4b8 README.md aktualisiert 2026-01-04 20:48:04 +00:00
6bcb3f0e39 README.md aktualisiert 2026-01-04 19:52:23 +00:00
eade17395f README.md aktualisiert 2026-01-04 19:51:42 +00:00
a2f32ba314 README.md aktualisiert 2026-01-04 19:43:51 +00:00
6ba052ec2a README.md aktualisiert 2026-01-04 19:43:26 +00:00
b3add4888b README.md aktualisiert 2026-01-04 17:54:00 +00:00
b781aa22e3 README.md aktualisiert 2026-01-04 17:53:30 +00:00
03ca70ddfa README.md aktualisiert 2026-01-04 17:53:01 +00:00
04048a3d0f README.md aktualisiert 2026-01-04 17:52:20 +00:00
f49fab6174 README.md aktualisiert 2026-01-04 17:50:50 +00:00
989e2accb5 README.md aktualisiert 2026-01-04 17:45:31 +00:00
marc-go
95b949a40e Merge remote-tracking branch 'hacker_marc/master' 2026-01-04 13:58:40 +01:00
marc-go
649d5dd45b Add kill function for ZombieCmd 2026-01-04 13:57:24 +01:00
marc-go
eaaef626ce Change Lava position 2026-01-04 13:56:52 +01:00
5 changed files with 38 additions and 25 deletions

View File

@@ -1,3 +1,26 @@
# Advanced Kill # Advanced Kill
Beta Minecraft Plugin to kill players with many possibilities
The /kill Command is a littelbit borring, isn't it? But, there is the AdvancedKill plugin!
You can kill players with many different method, for example with an explosion or a lightning.
## Methods:
- anvil - place an anvil above
- fall - teleports the player to high 300
- explosion - makes an explosion by the player
- lightning - summons a lightning by the player
- half - set the health for the player to a half heart
- lava - places lava for 3 seconds by the player
- void - teleports the player into the void
- zombie - spawns a zombie with a diamond sword for 10 seconds by the player
## Usage
```
/akill <method> <player>
```
## Installation
1. Download **AdvancedKill_Paper_x.xx.jar** and copy it into the *plugins* directory from your server.
2. Restart the server

View File

@@ -46,8 +46,6 @@ public final class AdvancedKill extends JavaPlugin {
} }
//Define mode et player //Define mode et player
String mode = args[0].toLowerCase(); String mode = args[0].toLowerCase();
Player target = Bukkit.getPlayer(args[1]); Player target = Bukkit.getPlayer(args[1]);
@@ -58,15 +56,6 @@ public final class AdvancedKill extends JavaPlugin {
} }
//Filtering 470Hacker
//if (target.getName().equals("470Hacker")) {
// if (!sender.hasPermission("akill.admin")) {
// sender.sendMessage("§c470Hacker darf nicht gefoltert werden!");
// return true;
// }
//}
//Run Commands //Run Commands
switch (mode) { switch (mode) {
case "lightning": case "lightning":
@@ -110,10 +99,7 @@ public final class AdvancedKill extends JavaPlugin {
//Completions //Completions
@Override @Override
public @Nullable List<String> onTabComplete(@NotNull CommandSender sender, public @Nullable List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
@NotNull Command command,
@NotNull String alias,
String[] args) {
List<String> completions = new ArrayList<>(); List<String> completions = new ArrayList<>();
if (sender.hasPermission("akill.use")) { if (sender.hasPermission("akill.use")) {
if (args.length == 1) { if (args.length == 1) {
@@ -136,4 +122,4 @@ public final class AdvancedKill extends JavaPlugin {
return completions; return completions;
} }
} }

View File

@@ -18,12 +18,7 @@ public class LavaCmd {
public void execute(CommandSender sender, Player target) { public void execute(CommandSender sender, Player target) {
Location lava_loc = new Location( Location lava_loc = target.getLocation();
target.getLocation().getWorld(),
target.getLocation().getX(),
target.getLocation().getY() - 1,
target.getLocation().getZ()
);
Block block = lava_loc.getBlock(); Block block = lava_loc.getBlock();
Material old_block = block.getType(); Material old_block = block.getType();

View File

@@ -21,6 +21,6 @@ public class VoidCmd {
0 0
); );
target.teleport(loc); target.teleport(loc);
sender.sendMessage("§aErfolg!"); sender.sendMessage("§aSuccess!");
} }
} }

View File

@@ -1,6 +1,7 @@
package de.marc.advancedKill.commands; package de.marc.advancedKill.commands;
import de.marc.advancedKill.AdvancedKill; import de.marc.advancedKill.AdvancedKill;
import org.bukkit.Bukkit;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -24,6 +25,14 @@ public class ZombieCmd {
zombie.getEquipment().setItemInMainHand( zombie.getEquipment().setItemInMainHand(
new ItemStack(Material.DIAMOND_SWORD) new ItemStack(Material.DIAMOND_SWORD)
); );
sender.sendMessage("§aErfolg!");
zombie.setCustomName("akill");
zombie.setCustomNameVisible(false);
Bukkit.getScheduler().runTaskLater(plugin, () -> {
zombie.remove();
}, 200L);
sender.sendMessage("§aSuccess!");
} }
} }