/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/deprecated/ZapmeCommand.java
ViewVC logotype

Annotation of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/deprecated/ZapmeCommand.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1499 - (hide annotations) (download)
Sat Jun 4 10:41:21 2011 UTC (13 years ago) by torben
Original Path: miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/ZapmeCommand.java
File size: 622 byte(s)
added /zapme and /msg
1 torben 1499 package dk.thoerup.bukkit.hoeruputils;
2    
3     import org.bukkit.Location;
4     import org.bukkit.World;
5     import org.bukkit.command.Command;
6     import org.bukkit.command.CommandExecutor;
7     import org.bukkit.command.CommandSender;
8     import org.bukkit.entity.Player;
9    
10     public class ZapmeCommand implements CommandExecutor {
11    
12    
13     @Override
14     public boolean onCommand(final CommandSender sender, Command command, String label, String[] args) {
15    
16     if (!(sender instanceof Player)) {
17     return false;
18     }
19     Player p = (Player) sender;
20    
21     World w = p.getWorld();
22     Location l = p.getLocation();
23     w.strikeLightningEffect( l );
24    
25     return true;
26     }
27     }

  ViewVC Help
Powered by ViewVC 1.1.20