Correctly fix sneaking problem

This commit is contained in:
Shevchik 2013-09-04 16:05:55 +04:00
parent 99559b0540
commit 13c454775a
2 changed files with 1 additions and 1 deletions

View File

@ -144,6 +144,7 @@ public class Chairs extends JavaPlugin {
public void run() public void run()
{ {
player.teleport(tploc); player.teleport(tploc);
player.setSneaking(false);
} }
},1); },1);
} }
@ -164,7 +165,6 @@ public class Chairs extends JavaPlugin {
sit.remove(player.getName()); sit.remove(player.getName());
Bukkit.getScheduler().cancelTask(sittask.get(player.getName())); Bukkit.getScheduler().cancelTask(sittask.get(player.getName()));
sittask.remove(player.getName()); sittask.remove(player.getName());
player.setSneaking(false);
if (notifyplayer && !msgStanding.isEmpty()) { if (notifyplayer && !msgStanding.isEmpty()) {
player.sendMessage(msgStanding); player.sendMessage(msgStanding);
} }

Binary file not shown.