/[projects]/miscJava/minecraft-plugins/hoeruputils/src/Jail.java
ViewVC logotype

Diff of /miscJava/minecraft-plugins/hoeruputils/src/Jail.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1193 by torben, Wed Nov 17 19:42:01 2010 UTC revision 1194 by torben, Sat Nov 20 08:37:19 2010 UTC
# Line 30  public class Jail extends PluginListener Line 30  public class Jail extends PluginListener
30                          if (jailWarp  == null) //abort if jailwarp was not found                          if (jailWarp  == null) //abort if jailwarp was not found
31                                  return;                                  return;
32                          Location jail = jailWarp.Location;                          Location jail = jailWarp.Location;
33    
34    
35                                                    
36                          if (HoerupUtils.calcDistance(jailWarp.Location, to) > DISTANCE) {                                                if (HoerupUtils.calcDistance(jailWarp.Location, to) == (DISTANCE-5) ) {
37                                    player.sendMessage("Your are near the border of containment area");
38                            }
39                            
40                            if (HoerupUtils.calcDistance(jailWarp.Location, to) > DISTANCE) {
41                                  player.sendMessage("You have been jailed and can not move outside containment area");                                  player.sendMessage("You have been jailed and can not move outside containment area");
42                                  player.teleportTo(from);                                  player.teleportTo(from);
43                          }                          }

Legend:
Removed from v.1193  
changed lines
  Added in v.1194

  ViewVC Help
Powered by ViewVC 1.1.20