File tree 1 file changed +2
-5
lines changed
src/main/java/city/thefloating/floatyplugin/realm
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,7 @@ public void onDeepSleep(final PlayerDeepSleepEvent event) {
125
125
final Player player = event .getPlayer ();
126
126
player .showTitle (Title .title (
127
127
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 ),
132
129
Title .Times .times (Duration .ofMillis (500 ), Duration .ofSeconds (5 ), Duration .ofSeconds (1 ))
133
130
));
134
131
player .addPotionEffect (PotEff .hidden (PotionEffectType .CONFUSION , 160 , 1 ));
@@ -158,7 +155,7 @@ public void onBedEnter(final PlayerBedEnterEvent event) {
158
155
if (event .useBed () == Event .Result .ALLOW || event .getBedEnterResult () == PlayerBedEnterEvent .BedEnterResult .OK ) {
159
156
event .getPlayer ().showTitle (Title .title (
160
157
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 ),
162
159
Title .Times .times (Duration .ofMillis (500 ), Duration .ofSeconds (5 ), Duration .ofSeconds (1 ))
163
160
));
164
161
}
You can’t perform that action at this time.
0 commit comments