diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/Home.java b/src/main/java/me/william278/huskhomes2/teleport/points/Home.java index 53001271..bb706ccb 100644 --- a/src/main/java/me/william278/huskhomes2/teleport/points/Home.java +++ b/src/main/java/me/william278/huskhomes2/teleport/points/Home.java @@ -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; } diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java b/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java index a8888092..3a6d5bb4 100644 --- a/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java +++ b/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java @@ -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"); } /** diff --git a/src/main/resources/Languages/de-de.yml b/src/main/resources/Languages/de-de.yml index b9a256cf..b2f9369f 100644 --- a/src/main/resources/Languages/de-de.yml +++ b/src/main/resources/Languages/de-de.yml @@ -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)' \ No newline at end of file +tpa_decline_button_tooltip: 'Lehne die Teleport Anfrage ab (/tpdeny)' +home_default_description: '%1%''s home' +warp_default_description: 'A publicly accessible warp' \ No newline at end of file diff --git a/src/main/resources/Languages/en-gb.yml b/src/main/resources/Languages/en-gb.yml index 58a38a64..1081b9ae 100644 --- a/src/main/resources/Languages/en-gb.yml +++ b/src/main/resources/Languages/en-gb.yml @@ -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' \ No newline at end of file +edit_home_make_private_button_tooltip: 'Make your home private' +home_default_description: '%1%''s home' +warp_default_description: 'A publicly accessible warp' \ No newline at end of file diff --git a/src/main/resources/Languages/it-it.yml b/src/main/resources/Languages/it-it.yml index 784dcce6..939562c9 100644 --- a/src/main/resources/Languages/it-it.yml +++ b/src/main/resources/Languages/it-it.yml @@ -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' \ No newline at end of file diff --git a/src/main/resources/Languages/pl.yml b/src/main/resources/Languages/pl.yml index 2c4f9cec..46b6de72 100644 --- a/src/main/resources/Languages/pl.yml +++ b/src/main/resources/Languages/pl.yml @@ -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)' \ No newline at end of file +tpa_decline_button_tooltip: 'Lehne die Teleport Anfrage ab (/tpdeny)' +home_default_description: '%1%''s home' +warp_default_description: 'A publicly accessible warp' \ No newline at end of file diff --git a/src/main/resources/Languages/ru.yml b/src/main/resources/Languages/ru.yml index 6aaf488c..c0b80008 100644 --- a/src/main/resources/Languages/ru.yml +++ b/src/main/resources/Languages/ru.yml @@ -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' \ No newline at end of file diff --git a/src/main/resources/Languages/zh-tw.yml b/src/main/resources/Languages/zh-tw.yml index ee4cf073..4ea2d77e 100644 --- a/src/main/resources/Languages/zh-tw.yml +++ b/src/main/resources/Languages/zh-tw.yml @@ -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' \ No newline at end of file +edit_home_make_private_button_tooltip: 'Make your home private' +home_default_description: '%1%''s home' +warp_default_description: 'A publicly accessible warp' \ No newline at end of file