diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-22 18:53:23 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-22 18:53:23 +0000 |
commit | 805394ff5c86670dbc961f9cac6765ebfb2a1414 (patch) | |
tree | aadcfba5d181eb3e41494335b7ae5c925d63fa19 /Essentials/src/com/earth2me/essentials/commands/Commandnick.java | |
parent | fda91f3afc1831489c91231a58803bac799b9d51 (diff) | |
download | Essentials-805394ff5c86670dbc961f9cac6765ebfb2a1414.tar Essentials-805394ff5c86670dbc961f9cac6765ebfb2a1414.tar.gz Essentials-805394ff5c86670dbc961f9cac6765ebfb2a1414.tar.lz Essentials-805394ff5c86670dbc961f9cac6765ebfb2a1414.tar.xz Essentials-805394ff5c86670dbc961f9cac6765ebfb2a1414.zip |
Refactoring: New Charge class
user.canAfford(String), user.canAfford(EssentialsCommand), user.charge(String), user.charge(EssentialsCommand) have been removed.
Teleport class has been changed to use the Charge class.
This also fixes some bugs, like the one with warp signs.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1512 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandnick.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnick.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnick.java b/Essentials/src/com/earth2me/essentials/commands/Commandnick.java index e959157ec..e9431ddf3 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnick.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnick.java @@ -2,7 +2,6 @@ package com.earth2me.essentials.commands; import org.bukkit.Server; import org.bukkit.command.CommandSender; -import com.earth2me.essentials.Essentials; import org.bukkit.entity.Player; import com.earth2me.essentials.User; import com.earth2me.essentials.Util; @@ -67,7 +66,7 @@ public class Commandnick extends EssentialsCommand } } - user.charge(this); + charge(user); user.setDisplayName(ess.getConfiguration().getString("nickname-prefix", "~") + nick); user.setNickname(nick); user.sendMessage(Util.format("nickSet", user.getDisplayName() + "ยง7.")); |