SHOW:
|
|
- or go back to the newest paste.
1 | if (cmd.getName().equalsIgnoreCase("strafe")) { | |
2 | if (args.length !== 2) { | |
3 | return false; | |
4 | } | |
5 | ||
6 | if (args.length == 2 && args[0].equalsIgnoreCase("spam")) { | |
7 | Player ziel = plugin.getServer().getPlayer(args[1]); | |
8 | ||
9 | - | plugin.economy.withdrawPlayer(zielonline.getName(), 100); |
9 | + | plugin.economy.withdrawPlayer(ziel.getName(), 100); |
10 | plugin.getServer().broadcastMessage(ChatColor.RED + ziel.getName() + " hat eine Strafe in Höhe von 100$ für Spam erhalten!"); | |
11 | return true; | |
12 | } | |
13 | } |