Examples of PlayerChatTabCompleteEvent


Examples of org.bukkit.event.player.PlayerChatTabCompleteEvent

        assertThat(getToken(""), is(""));
        assertThat(getToken(" "), is(""));
    }

    private String getToken(String message) {
        return new PlayerChatTabCompleteEvent(TestPlayer.getInstance(), message, ImmutableList.<String>of()).getLastToken();
    }
View Full Code Here

Examples of org.bukkit.event.player.PlayerChatTabCompleteEvent

            }
            Collections.sort(completions, String.CASE_INSENSITIVE_ORDER);
        }

        // call event and send response
        EventFactory.callEvent(new PlayerChatTabCompleteEvent(sender, buffer, completions));
        session.send(new TabCompleteResponseMessage(completions));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.