mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix #21, allow default home and warp descriptions to be customisable/translatable
This commit is contained in:
1 parent
9027c54bcd
commit
52bfbe8491
8 files changed
+20
-6
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package me.william278.huskhomes2.teleport.points;
|
||||
|
||||
import me.william278.huskhomes2.HuskHomes;
|
||||
import me.william278.huskhomes2.MessageManager;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -34,7 +35,7 @@ public class Home extends TeleportationPoint {
|
||||
this.name = name;
|
||||
this.ownerUUID = homeOwner.getUniqueId();
|
||||
this.ownerUsername = homeOwner.getName();
|
||||
this.description = ownerUsername + "'s home";
|
||||
this.description = MessageManager.getRawMessage("warp_default_description", ownerUsername);
|
||||
this.isPublic = isPublic;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package me.william278.huskhomes2.teleport.points;
|
||||
|
||||
import me.william278.huskhomes2.MessageManager;
|
||||
import org.bukkit.Location;
|
||||
|
||||
/**
|
||||
@@ -20,7 +21,7 @@ public class Warp extends TeleportationPoint {
|
||||
public Warp(Location location, String server, String name) {
|
||||
super(location, server);
|
||||
this.name = name;
|
||||
this.description = "A publicly accessible warp";
|
||||
this.description = MessageManager.getRawMessage("warp_default_description");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -111,4 +111,6 @@ edit_home_make_private_button_tooltip: 'Mach dein Home privat'
|
||||
tpa_accept_button: '[Akzeptieren]'
|
||||
tpa_accept_button_tooltip: 'Akzeptiere die Teleport Anfrage (/tpaccept)'
|
||||
tpa_decline_button: '[Ablehnen]'
|
||||
tpa_decline_button_tooltip: 'Lehne die Teleport Anfrage ab (/tpdeny)'
|
||||
tpa_decline_button_tooltip: 'Lehne die Teleport Anfrage ab (/tpdeny)'
|
||||
home_default_description: '%1%''s home'
|
||||
warp_default_description: 'A publicly accessible warp'
|
||||
@@ -111,4 +111,6 @@ edit_home_description_button_tooltip: 'Update the description of your home'
|
||||
edit_home_make_public_button: '[Make Public]'
|
||||
edit_home_make_public_button_tooltip: 'Open your home to the public'
|
||||
edit_home_make_private_button: '[Make Private]'
|
||||
edit_home_make_private_button_tooltip: 'Make your home private'
|
||||
edit_home_make_private_button_tooltip: 'Make your home private'
|
||||
home_default_description: '%1%''s home'
|
||||
warp_default_description: 'A publicly accessible warp'
|
||||
@@ -111,3 +111,5 @@ edit_home_make_public_button: '[Rendila Pubblica]'
|
||||
edit_home_make_public_button_tooltip: 'Rendi la tua home pubblica'
|
||||
edit_home_make_private_button: '[Rendila Privata]'
|
||||
edit_home_make_private_button_tooltip: 'Rendi la tua home privata'
|
||||
home_default_description: '%1%''s home'
|
||||
warp_default_description: 'A publicly accessible warp'
|
||||
@@ -111,4 +111,6 @@ edit_home_make_private_button_tooltip: 'Mach dein Home privat'
|
||||
tpa_accept_button: '[Akzeptieren]'
|
||||
tpa_accept_button_tooltip: 'Akzeptiere die Teleport Anfrage (/tpaccept)'
|
||||
tpa_decline_button: '[Ablehnen]'
|
||||
tpa_decline_button_tooltip: 'Lehne die Teleport Anfrage ab (/tpdeny)'
|
||||
tpa_decline_button_tooltip: 'Lehne die Teleport Anfrage ab (/tpdeny)'
|
||||
home_default_description: '%1%''s home'
|
||||
warp_default_description: 'A publicly accessible warp'
|
||||
@@ -112,3 +112,5 @@ edit_home_make_public_button: '[Сделать открытым]'
|
||||
edit_home_make_public_button_tooltip: 'Открыть свой дом открытым для публики'
|
||||
edit_home_make_private_button: '[Сделать приватным]'
|
||||
edit_home_make_private_button_tooltip: 'Сделать свой дом приватным'
|
||||
home_default_description: '%1%''s home'
|
||||
warp_default_description: 'A publicly accessible warp'
|
||||
@@ -111,4 +111,6 @@ edit_home_description_button_tooltip: 'Update the description of your home'
|
||||
edit_home_make_public_button: '[Make Public]'
|
||||
edit_home_make_public_button_tooltip: 'Open your home to the public'
|
||||
edit_home_make_private_button: '[Make Private]'
|
||||
edit_home_make_private_button_tooltip: 'Make your home private'
|
||||
edit_home_make_private_button_tooltip: 'Make your home private'
|
||||
home_default_description: '%1%''s home'
|
||||
warp_default_description: 'A publicly accessible warp'
|
||||
Reference in new issue
Block a user