From e71eba3d1f48e15b6597afb1c42c5ff5f78efcf9 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 4 Oct 2011 10:13:44 +0100 Subject: [PATCH 1/4] Fix for /tjail not teleporting users back due to cooldown. --- Essentials/src/com/earth2me/essentials/Teleport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/Teleport.java b/Essentials/src/com/earth2me/essentials/Teleport.java index 608663561..845f9c3a3 100644 --- a/Essentials/src/com/earth2me/essentials/Teleport.java +++ b/Essentials/src/com/earth2me/essentials/Teleport.java @@ -256,7 +256,7 @@ public class Teleport implements Runnable public void back() throws Exception { - back(null); + now(new Target(user.getLastLocation())); } public void home(IUser user, String home, Trade chargeFor) throws Exception From 52e674459fc823c0bca2881c2da35e1d689feac8 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 4 Oct 2011 10:16:35 +0100 Subject: [PATCH 2/4] Less dupe code on last commit. --- Essentials/src/com/earth2me/essentials/Teleport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/Teleport.java b/Essentials/src/com/earth2me/essentials/Teleport.java index 845f9c3a3..b4dd819aa 100644 --- a/Essentials/src/com/earth2me/essentials/Teleport.java +++ b/Essentials/src/com/earth2me/essentials/Teleport.java @@ -256,7 +256,7 @@ public class Teleport implements Runnable public void back() throws Exception { - now(new Target(user.getLastLocation())); + now(user.getLastLocation()); } public void home(IUser user, String home, Trade chargeFor) throws Exception From 40f1309d7e17c41e8df69f3874bd874e8177686f Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 4 Oct 2011 10:27:58 +0100 Subject: [PATCH 3/4] Revert "Less dupe code on last commit." This reverts commit 52e674459fc823c0bca2881c2da35e1d689feac8. --- Essentials/src/com/earth2me/essentials/Teleport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/Teleport.java b/Essentials/src/com/earth2me/essentials/Teleport.java index b4dd819aa..845f9c3a3 100644 --- a/Essentials/src/com/earth2me/essentials/Teleport.java +++ b/Essentials/src/com/earth2me/essentials/Teleport.java @@ -256,7 +256,7 @@ public class Teleport implements Runnable public void back() throws Exception { - now(user.getLastLocation()); + now(new Target(user.getLastLocation())); } public void home(IUser user, String home, Trade chargeFor) throws Exception From 9c6d49a9e2deddc97c2da2bf5c887f764e4a3530 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 4 Oct 2011 14:39:40 +0100 Subject: [PATCH 4/4] Nick length patch --- Essentials/src/com/earth2me/essentials/User.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index fe811e50f..3e335a1df 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -286,7 +286,10 @@ public class User extends UserData implements Comparable, IReplyTo, IUser public void setDisplayNick(String name) { setDisplayName(name); - setPlayerListName(name); + //TODO: Maybe we need to limit nick length, or try use a string trim. + if (name.length() <= 16) { + setPlayerListName(name); + } } public Teleport getTeleport()