Correctly fix sneaking problem
This commit is contained in:
parent
99559b0540
commit
13c454775a
@ -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.
Loading…
Reference in New Issue
Block a user