geforkt von Mirrors/AxiomPaperPlugin
Add support for noclip
Dieser Commit ist enthalten in:
Ursprung
3f613db359
Commit
c8f7c55138
@ -127,9 +127,12 @@ public class AxiomPaper extends JavaPlugin implements Listener {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onFailMove(PlayerFailMoveEvent event) {
|
public void onFailMove(PlayerFailMoveEvent event) {
|
||||||
if (event.getPlayer().hasPermission("axiom.*") &&
|
if (event.getPlayer().hasPermission("axiom.*")) {
|
||||||
event.getFailReason() == PlayerFailMoveEvent.FailReason.MOVED_TOO_QUICKLY) {
|
if (event.getFailReason() == PlayerFailMoveEvent.FailReason.MOVED_TOO_QUICKLY) {
|
||||||
event.setAllowed(true);
|
event.setAllowed(true); // Support for arcball camera
|
||||||
|
} else if (event.getPlayer().isFlying()) {
|
||||||
|
event.setAllowed(true); // Support for noclip
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren