Compare commits
17 Commits
8a22c4593f
...
beta1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd092a02cc | ||
|
|
5a09d7b15c | ||
|
|
de8244815a | ||
| f30cb5a4b8 | |||
| 6bcb3f0e39 | |||
| eade17395f | |||
| a2f32ba314 | |||
| 6ba052ec2a | |||
| b3add4888b | |||
| b781aa22e3 | |||
| 03ca70ddfa | |||
| 04048a3d0f | |||
| f49fab6174 | |||
| 989e2accb5 | |||
|
|
95b949a40e | ||
|
|
649d5dd45b | ||
|
|
eaaef626ce |
25
README.md
25
README.md
@@ -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
|
||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -21,6 +21,6 @@ public class VoidCmd {
|
|||||||
0
|
0
|
||||||
);
|
);
|
||||||
target.teleport(loc);
|
target.teleport(loc);
|
||||||
sender.sendMessage("§aErfolg!");
|
sender.sendMessage("§aSuccess!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user