MCPcopy Create free account
hub / github.com/boxbeam/RedLib / onLeave

Method onLeave

src/redempt/redlib/misc/ChatPrompt.java:101–107  ·  view source on GitHub ↗
(PlayerQuitEvent e)

Source from the content-addressed store, hash-verified

99 }
100
101 @EventHandler
102 public void onLeave(PlayerQuitEvent e) {
103 Prompt p = prompts.remove(e.getPlayer());
104 if (p != null) {
105 p.cancel(CancelReason.PLAYER_LEFT);
106 }
107 }
108
109 private static class Prompt {
110

Callers

nothing calls this directly

Calls 3

cancelMethod · 0.95
removeMethod · 0.65
getPlayerMethod · 0.45

Tested by

no test coverage detected