Skip to content

Commit

Permalink
/tpblock and /tpunblock now print the blocked list (not the friend list)
Browse files Browse the repository at this point in the history
  • Loading branch information
Challenger2 committed Nov 9, 2016
1 parent 125ac75 commit 5e27f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nu/nerd/tpcontrol/TPControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ private void cmdBlock(CommandSender sender, String[] args) {
User u2 = getUser(p2);

if(args.length == 0) {
PrettyPrintUUIDList(sender, "Blocked: ", u2.getFriends());
PrettyPrintUUIDList(sender, "Blocked: ", u2.getBlocked());
} else if (args.length == 1) {
if(u2.addBlocked(args[0])) {
messagePlayer(p2, args[0] + " was blocked from teleporting to you.", ChatColor.GREEN);
Expand Down Expand Up @@ -642,7 +642,7 @@ private void cmdUnblock(CommandSender sender, String[] args) {
User u2 = getUser(p2);

if(args.length == 0) {
PrettyPrintUUIDList(sender, "Blocked: ", u2.getFriends());
PrettyPrintUUIDList(sender, "Blocked: ", u2.getBlocked());
} else if (args.length == 1) {
if(u2.delBlocked(args[0])) {
messagePlayer(p2, args[0] + " was unblocked from teleporting to you.", ChatColor.GREEN);
Expand Down

0 comments on commit 5e27f3e

Please sign in to comment.