Reworked some Spout stuff

among other things
This commit is contained in:
bm01
2012-07-01 04:48:23 +02:00
parent c45beec59d
commit 54e21333a3
22 changed files with 629 additions and 780 deletions

View File

@ -16,6 +16,7 @@ import com.gmail.nossr50.commands.CommandHelper;
import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.datatypes.PlayerProfile;
import com.gmail.nossr50.locale.LocaleLoader;
import com.gmail.nossr50.spout.SpoutStuff;
import com.gmail.nossr50.util.Users;
public class McremoveCommand implements CommandExecutor {
@ -102,10 +103,12 @@ public class McremoveCommand implements CommandExecutor {
PlayerProfile playerProfile = Users.getProfile(player);
if (playerProfile != null) {
playerProfile.getSpoutHud().removeWidgets();
Users.remove(player.getName());
if (player.isOnline()) {
Users.addUser((Player) player);
SpoutStuff.reloadSpoutPlayer((Player) player);
}
}