- Title Messages
Send title and subtitle messages to players for a more immersive experience.
Method:
Code (Java):
TitleMessageUtil.
sendTitle
(Player player,
String title,
String subtitle,
int fadeIn,
int stay,
int fadeOut
)
;
Example:
Code (Java):
TitleMessageUtil.
sendTitle
(player,
"Welcome",
"Enjoy your stay!",
10,
70,
20
)
;
- Custom Scoreboards
Create and manage custom scoreboards to display player stats and other information.
Method:
Code (Java):
CustomScoreboardUtil.
createScoreboard
(Player player,
String title,
String...
lines
)
;
Example:
Code (Java):
String
[
] lines
=
{
"Line 1",
"Line 2",
"Line 3"
}
;
CustomScoreboardUtil.
createScoreboard
(player,
"Scoreboard Title", lines
)
;
- Particles
Spawn particle effects at specific locations to enhance visual feedback in your plugins.
Method:
Code (Java):
Location particleLocation
= player.
getLocation
(
).
add
(
0,
2,
0
)
;
player.
getWorld
(
).
spawnParticle
(Particle.
HEART, particleLocation,
10
)
;
Example:
Code (Java):
Location particleLocation
= player.
getLocation
(
).
add
(
0,
2,
0
)
;
player.
getWorld
(
).
spawnParticle
(Particle.
HEART, particleLocation,
10
)
;
- Holograms
Create and display holograms at specific locations, which can be seen by players.
Method:
Code (Java):
Location hologramLocation
= player.
getLocation
(
).
add
(
0,
2,
0
)
;
Hologram hologram
=
new Hologram
(hologramLocation,
"Hologram Text"
)
;
hologram.
show
(player
)
;
Example:
Code (Java):
Location hologramLocation
= player.
getLocation
(
).
add
(
0,
2,
0
)
;
Hologram hologram
=
new Hologram
(hologramLocation,
"Hologram Text"
)
;
hologram.
show
(player
)
;
- Sounds
Play custom sounds to players to enhance their experience.
Method:
Code (Java):
player.
playSound
(player.
getLocation
(
), Sound.
ENTITY_EXPERIENCE_ORB_PICKUP, 1.0f, 1.0f
)
;
Example:
Code (Java):
player.
playSound
(player.
getLocation
(
), Sound.
ENTITY_EXPERIENCE_ORB_PICKUP, 1.0f, 1.0f
)
;