/[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 1653 - (hide annotations) (download)
Fri Dec 9 17:06:52 2011 UTC (12 years, 5 months ago) by torben
File size: 622 byte(s)
deprecate all of the more experimental / non-survival commands
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     }

Properties

Name Value
svn:mergeinfo

  ViewVC Help
Powered by ViewVC 1.1.20