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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user