From 2086b8c978ad1fe1cd424c5f3485dcc0a62638f1 Mon Sep 17 00:00:00 2001 From: ementalo Date: Fri, 8 Jul 2011 12:00:18 +0100 Subject: [PATCH] update signs after trades --- .../earth2me/essentials/signs/EssentialsSign.java | 13 +++++++++++++ .../com/earth2me/essentials/signs/SignTrade.java | 1 + 2 files changed, 14 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java index 810103f78..f0da20251 100644 --- a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java +++ b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java @@ -421,6 +421,12 @@ public class EssentialsSign { return block; } + + public void updateSign() + { + return; + } + } @@ -449,6 +455,11 @@ public class EssentialsSign { return block; } + + public final void updateSign() + { + sign.update(); + } } @@ -459,5 +470,7 @@ public class EssentialsSign void setLine(final int index, final String text); public Block getBlock(); + + void updateSign(); } } diff --git a/Essentials/src/com/earth2me/essentials/signs/SignTrade.java b/Essentials/src/com/earth2me/essentials/signs/SignTrade.java index 5f8cf7258..f11a47201 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignTrade.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignTrade.java @@ -49,6 +49,7 @@ public class SignTrade extends EssentialsSign charge.charge(player); Trade.log("Sign", "Trade", "Interact", sign.getLine(3), charge, username, trade, ess); } + sign.updateSign(); return true; }