This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Utils
Zoyn edited this page Dec 2, 2017
·
8 revisions
this page will teach you how to play these Utils
This util can Easy to send a title
// this method need ProtocolLib
void TitleUtils.sendTitle(Player player, Integer fadeIn, Integer stay, Integer fadeOut, String title, String subTitle);
Example:
TitleUtils.sendTitle(Bukkit.getPlayer("Zoyn"), 2, 20, 2, "&aBig Title!", "&ehi~");
This util can easy to send an actionbar
// this method need ProtocolLib
void ActionBarUtils.sendBar(Player player, String msg);
Example:
ActionBarUtils.sendBar(Bukkit.getPlayer("Zoyn"), "&aHey!");
This util can simply set up the player's tab
// this method need ProtocolLib
void setTab(@Nullable Player player, @Nullable String head, @Nullable String foot);
Example:
TabUtils.setTab(Bukkit.getPlayer("Zoyn"), "&ai'm head!\nummm", "&ei'm foot!");
Just see methods...
// This method will take the player's nearest player
Player getTargetPlayer(Player player);
// This method takes advantage of the chunk to get the surrounding entities
List<Entity> getNearbyEntitiesList(Location loc, double radius)
// It's like it
Entity[] getNearbyEntitiesArrays(Location loc, double radius)
// This method will return a List<Player>
List<Player> getNearbyPlayersList(Location loc, double radius)
This wiki hopes to help you!
没有中文教程...自己看代码吧..