Skip to content

Commit b52e7e2

Browse files
committed
clean up bed-related messages
1 parent d298a0e commit b52e7e2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/city/thefloating/floatyplugin/realm/PlayerSpawnListener.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ public void onDeepSleep(final PlayerDeepSleepEvent event) {
125125
final Player player = event.getPlayer();
126126
player.showTitle(Title.title(
127127
Component.text("spawn point set").color(NamedTextColor.LIGHT_PURPLE),
128-
Component.text()
129-
.append(Component.text("for the ").color(NamedTextColor.GRAY))
130-
.append(Component.text(Realm.of(player).toString()).color(NamedTextColor.GOLD))
131-
.build(),
128+
Component.text("for the " + Realm.of(player).toString()).color(NamedTextColor.GRAY),
132129
Title.Times.times(Duration.ofMillis(500), Duration.ofSeconds(5), Duration.ofSeconds(1))
133130
));
134131
player.addPotionEffect(PotEff.hidden(PotionEffectType.CONFUSION, 160, 1));
@@ -158,7 +155,7 @@ public void onBedEnter(final PlayerBedEnterEvent event) {
158155
if (event.useBed() == Event.Result.ALLOW || event.getBedEnterResult() == PlayerBedEnterEvent.BedEnterResult.OK) {
159156
event.getPlayer().showTitle(Title.title(
160157
Component.empty(),
161-
Component.text(".. stay in bed to set your spawn point").color(NamedTextColor.DARK_GRAY),
158+
Component.text("sleep to set your spawn point").color(NamedTextColor.DARK_GRAY),
162159
Title.Times.times(Duration.ofMillis(500), Duration.ofSeconds(5), Duration.ofSeconds(1))
163160
));
164161
}

0 commit comments

Comments
 (0)