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