Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Making TFM at least somewhat standardized #1

Closed
Closed
Show file tree
Hide file tree
Changes from 67 commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
d76f043
fixing tfm part 1
DragonSlayer2189 Nov 30, 2020
244855e
Update Command_autotp.java
DragonSlayer2189 Nov 30, 2020
fd6fafe
I am pretty sure i did this right
DragonSlayer2189 Nov 30, 2020
1de70da
fixing tfm part 1
DragonSlayer2189 Nov 30, 2020
6a5b8a2
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
ab06b2d
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
275a5b7
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
1be0123
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
971a096
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
716bc29
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
c5a8aa0
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
a9146bf
Update Command_colorme.java
DragonSlayer2189 Nov 30, 2020
1d4a4ac
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
5467fd9
Deleting /curse because it doesn't work
DragonSlayer2189 Nov 30, 2020
4d0a09e
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
aa39d82
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
567f014
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
62c6670
help
DragonSlayer2189 Nov 30, 2020
47b2648
help
DragonSlayer2189 Nov 30, 2020
7fc5766
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
9d10d7b
Update Command_findip.java
DragonSlayer2189 Nov 30, 2020
8319c21
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
bf34b49
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
d6f56bc
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
c100e91
Update Command_fuckoff.java
DragonSlayer2189 Nov 30, 2020
c876728
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
5a21fab
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
8510baa
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
c14168d
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
5720a2f
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
8f101d6
Making TFM comply with itself
DragonSlayer2189 Nov 30, 2020
e5bb9a7
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
62302b2
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
c565555
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
41437ea
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
eb195a7
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
2718585
deletion of /logs, it doesn't do anything
DragonSlayer2189 Nov 30, 2020
7dcfce4
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
31d3949
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
76aed9a
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
e2fbb67
Making TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
ba1f85f
allow executives to use /massmurder
DragonSlayer2189 Nov 30, 2020
d6d2fc4
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
b18d7a3
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
f2a9b86
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
82438aa
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
ad1221a
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
c31e47a
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
a9bd94e
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
c4bcb63
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
d61ed32
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
6c14557
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
43083a7
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
c210c51
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
696de66
Make TFM Comply With Itself
DragonSlayer2189 Nov 30, 2020
651ecd2
Revert "help"
DragonSlayer2189 Nov 30, 2020
5c3b343
Revert "help"
DragonSlayer2189 Nov 30, 2020
1b980cb
Revert "Deleting /curse because it doesn't work"
DragonSlayer2189 Nov 30, 2020
b7a9b07
Revert "deletion of /logs, it doesn't do anything"
DragonSlayer2189 Nov 30, 2020
f27b6a9
Revert "allow executives to use /massmurder"
DragonSlayer2189 Nov 30, 2020
4384977
I am sorry
DragonSlayer2189 Nov 30, 2020
76c3fff
Fixed Build Errors
DragonSlayer2189 Nov 30, 2020
cb965eb
fixing things
DragonSlayer2189 Nov 30, 2020
034ec63
I added to many periods
DragonSlayer2189 Dec 1, 2020
719402d
more fixes
DragonSlayer2189 Dec 1, 2020
51a8cdc
literally just pushing this to see if it fixes autobuil
DragonSlayer2189 Dec 1, 2020
338fc81
fix minor issues
DragonSlayer2189 Dec 1, 2020
cf414a6
fixing things
DragonSlayer2189 Dec 1, 2020
6a85ac0
a funny name
DragonSlayer2189 Dec 1, 2020
487c29f
Update Command_verify.java
DragonSlayer2189 Dec 2, 2020
4c7bb9d
Deletion of command_curse.java
DragonSlayer2189 Dec 2, 2020
457678e
Fixing Syntax & Other Stuff
DragonSlayer2189 Dec 2, 2020
a900877
Removing fullstops from staff actions
DragonSlayer2189 Dec 2, 2020
3b0173d
Minor fixes
DragonSlayer2189 Dec 2, 2020
5ed2863
Fixed Build Error
DragonSlayer2189 Dec 2, 2020
17ec748
dumb
DragonSlayer2189 Dec 2, 2020
f4e4723
Admin & admin
DragonSlayer2189 Dec 2, 2020
fe3d43c
bruh moment
DragonSlayer2189 Dec 2, 2020
d71b33b
Merge branch 'development' into patch-5
DragonSlayer2189 Dec 2, 2020
8d1db0f
Fixed world restriction bug
DragonSlayer2189 Dec 4, 2020
485269b
PLEASE FIX
DragonSlayer2189 Dec 4, 2020
1d9f54d
Merge branch 'patch-5' of https://github.com/DragonSlayer2189/TotalFr…
DragonSlayer2189 Dec 4, 2020
491f04c
Resolving conflicts part 1 of many
DragonSlayer2189 Dec 4, 2020
519a709
Revert "Resolving conflicts part 1 of many"
DragonSlayer2189 Dec 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void onStart()

updateCount();

FLog.info("Loaded " + nameBanCount + " indefinite name bans, " + uuidBanCount + " UUID bans, and " + ipBanCount + " ip bans");
FLog.info("Loaded " + nameBanCount + " indefinite name bans, " + uuidBanCount + " UUID bans, and " + ipBanCount + " ip bans.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void doActions(CommandSender sender)
{
if (action == CommandBlockerAction.BLOCK_AND_EJECT && sender instanceof Player)
{
TotalFreedomMod.plugin().ae.autoEject((Player)sender, "You used a prohibited command: " + command);
TotalFreedomMod.plugin().ae.autoEject((Player)sender, "You used a prohibited command: \"" + command + "\".");
FUtil.bcastMsg(sender.getName() + " was automatically kicked for using harmful commands.", ChatColor.RED);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.OP, source = SourceType.BOTH)
@CommandParameters(description = "Quickly change your own gamemode to adventure, define someone's username to change theirs, or change everyone's gamemode on the server.", usage = "/<command> <[partialname] | -a>", aliases = "gma")
@CommandParameters(description = "Change your own gamemode to adventure, change everyone's gamemode to adventure, or change someone else's gamemode to adventure.", usage = "/<command> <player | -a>", aliases = "gma")
DragonSlayer2189 marked this conversation as resolved.
Show resolved Hide resolved
public class Command_adventure extends FreedomCommand
{

Expand Down Expand Up @@ -37,7 +37,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
targetPlayer.setGameMode(GameMode.ADVENTURE);
}

FUtil.staffAction(sender.getName(), "Changing everyone's gamemode to adventure", false);
FUtil.staffAction(sender.getName(), "Changing everyone's gamemode to adventure.", false);
msg("Your gamemode has been set to adventure.");
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
}
}
}

msg(removed + " area effect clouds removed.");
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Toggle whether or not a player has their inventory automatically cleared when they join", usage = "/<command> <player>")
@CommandParameters(description = "Toggle whether or not a player has their inventory automatically cleared when they join.", usage = "/<command> <player>")
public class Command_autoclear extends FreedomCommand
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Toggle whether or not a player is automatically teleported when they join", usage = "/<command> <player>")
@CommandParameters(description = "Toggle whether or not a player is automatically teleported when they join.", usage = "/<command> <player>")
public class Command_autotp extends FreedomCommand
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
}
}
}
else
{
msg("Banned " + player.getName() + " quietly.");
}

// Kill player
player.setHealth(0.0);
}
Expand Down Expand Up @@ -156,7 +153,10 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
msg(sender, ChatColor.GRAY + username + " has been banned and IP is: " + StringUtils.join(ips, ", "));
FUtil.staffAction(sender.getName(), String.format(bcast.toString()), true);
}

else
DragonSlayer2189 marked this conversation as resolved.
Show resolved Hide resolved
{
msg("Banned " + player.getName() + " quietly.");
}
// Kick player and handle others on IP
if (player != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin

if (!FUtil.isValidIPv4(ip))
{
msg(ip + " is not a valid IP address", ChatColor.RED);
msg(ip + " is not a valid IP address.", ChatColor.RED);
return true;
}

if (plugin.bm.getByIp(ip) != null)
{
msg("The IP " + ip + " is already banned", ChatColor.RED);
msg("The IP " + ip + " is already banned.", ChatColor.RED);
return true;
}

Expand Down Expand Up @@ -75,6 +75,10 @@ else if (args.length > 1)
String message = ChatColor.RED + sender.getName() + " - Banned " + (plugin.sl.isStaff(player) ? "the IP " + ip : "an IP");
player.sendMessage(message);
}
else
DragonSlayer2189 marked this conversation as resolved.
Show resolved Hide resolved
{
msg("Banned the ip " + ip + " quietly.");
}
}

return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.OP, source = SourceType.BOTH)
@CommandParameters(description = "Shows all banned player names. Admins may optionally use 'purge' to clear the list.", usage = "/<command> [purge]")
@CommandParameters(description = "Shows all banned player names. Senior Admins may optionally use 'purge' to clear the list.", usage = "/<command> [purge]")
public class Command_banlist extends FreedomCommand
{

Expand All @@ -20,7 +20,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
{
checkRank(Rank.SENIOR_ADMIN);

FUtil.staffAction(sender.getName(), "Purging the ban list", true);
FUtil.staffAction(sender.getName(), "Purging the ban list.", true);
int amount = plugin.bm.purge();
msg("Purged " + amount + " player bans.");
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin

if (plugin.bm.getByUsername(name) != null)
{
msg("The name " + name + " is already banned", ChatColor.RED);
msg("The name " + name + " is already banned.", ChatColor.RED);
return true;
}

Expand All @@ -57,7 +57,11 @@ else if (args.length > 1)
{
FUtil.staffAction(sender.getName(), "Banned the name " + name, true);
}

else
DragonSlayer2189 marked this conversation as resolved.
Show resolved Hide resolved
{
msg("Banned the name " + name + " quietly.");
}

Player player = getPlayer(name);
if (player != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin

if (args[0].equals("purge"))
{
FUtil.staffAction(sender.getName(), "Unblocking commands for all players", true);
FUtil.staffAction(sender.getName(), "Unblocking commands for all players.", true);
int counter = 0;
for (Player player : server.getOnlinePlayers())
{
Expand All @@ -40,7 +40,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin

if (args[0].equals("-a"))
{
FUtil.staffAction(sender.getName(), "Blocking commands for all non-staff", true);
FUtil.staffAction(sender.getName(), "Blocking commands for all non-staff.", true);
int counter = 0;
for (Player player : server.getOnlinePlayers())
{
Expand Down Expand Up @@ -77,7 +77,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
{
playerdata.setCommandsBlocked(true);
FUtil.staffAction(sender.getName(), "Blocking all commands for " + player.getName(), true);
msg("Blocked commands for " + player.getName() + ".");
msg("Blocked commands for " + player.getName());
DragonSlayer2189 marked this conversation as resolved.
Show resolved Hide resolved
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Restricts/unrestricts block modification abilities for everyone on the server or a certain player.", usage = "/<command> [[-s] <player> [reason] | list | purge | all]")
@CommandParameters(description = "Restricts/unrestricts block modification abilities for everyone on the server or a certain player.", usage = "/<command> [[-s] <player> [reason] | list | purge | -a]")
public class Command_blockedit extends FreedomCommand
{

Expand Down Expand Up @@ -61,7 +61,7 @@ public boolean run(final CommandSender sender, final Player playerSender, final
return true;
}

if (args[0].equals("all"))
if (args[0].equals("-a"))
{
FUtil.staffAction(sender.getName(), "Blocking block modification abilities for all non-staff.", true);
int counter = 0;
Expand Down Expand Up @@ -131,4 +131,4 @@ public boolean run(final CommandSender sender, final Player playerSender, final
}
return true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Toggle PVP mode for everyone or a certain player.", usage = "/<command> [[-s] <player> [reason] | list | purge | all]", aliases = "pvpblock,pvpmode")
@CommandParameters(description = "Toggle PVP mode for everyone or a certain player.", usage = "/<command> [[-s] <player> [reason] | list | purge | -a]", aliases = "pvpblock,pvpmode")
public class Command_blockpvp extends FreedomCommand
{

Expand Down Expand Up @@ -62,7 +62,7 @@ public boolean run(final CommandSender sender, final Player playerSender, final
return true;
}

if (args[0].equals("all"))
if (args[0].equals("-a"))
{
FUtil.staffAction(sender.getName(), "Disabling PVP for all non-staff", true);
int counter = 0;
Expand Down Expand Up @@ -131,4 +131,4 @@ public boolean run(final CommandSender sender, final Player playerSender, final
}
return true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ public boolean run(final CommandSender sender, final Player playerSender, final
if (ConfigEntry.ALLOW_REDSTONE.getBoolean())
{
ConfigEntry.ALLOW_REDSTONE.setBoolean(false);
FUtil.staffAction(sender.getName(), "Blocking all redstone", true);
FUtil.staffAction(sender.getName(), "Blocking all redstone.", true);
new BukkitRunnable()
{
public void run()
{
if (!ConfigEntry.ALLOW_REDSTONE.getBoolean())
{
FUtil.staffAction("TotalFreedom", "Unblocking all redstone", false);
FUtil.staffAction("TotalFreedom", "Unblocking all redstone.", false);
ConfigEntry.ALLOW_REDSTONE.setBoolean(true);
}
}
Expand All @@ -34,7 +34,7 @@ public void run()
else
{
ConfigEntry.ALLOW_REDSTONE.setBoolean(true);
FUtil.staffAction(sender.getName(), "Unblocking all redstone", true);
FUtil.staffAction(sender.getName(), "Unblocking all redstone.", true);
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Place a cage around someone with certain blocks, or someone's player head.", usage = "/<command> <purge | <partialname> [head | block] [playername | blockname]")
@CommandParameters(description = "Place a cage around someone with certain blocks, or someone's player head.", usage = "/<command> <purge | <player> [head | block] [playername | blockname]")
DragonSlayer2189 marked this conversation as resolved.
Show resolved Hide resolved
public class Command_cage extends FreedomCommand
{

Expand All @@ -30,7 +30,7 @@ public boolean run(final CommandSender sender, final Player playerSender, final
String skullName = null;
if ("purge".equals(args[0]))
{
FUtil.staffAction(sender.getName(), "Uncaging all players", true);
FUtil.staffAction(sender.getName(), "Uncaging all players.", true);
for (Player player : server.getOnlinePlayers())
{
final FPlayer fPlayer = plugin.pl.getPlayer(player);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.NON_OP, source = SourceType.BOTH)
@CommandParameters(description = "Sit in nearest minecart. If target is in a minecart already, they will disembark.", usage = "/<command> [partialname]")
@CommandParameters(description = "Sit in nearest minecart. If target is in a minecart already, they will disembark.", usage = "/<command> <player>")
DragonSlayer2189 marked this conversation as resolved.
Show resolved Hide resolved
public class Command_cartsit extends FreedomCommand
{

Expand All @@ -32,7 +32,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
{
if (targetPlayer == null)
{
sender.sendMessage("When used from the console, you must define a target player: /cartsit <player>");
sender.sendMessage("When used from the console, you must define a target player: /cartsit <player>.");
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
}
}
}
FUtil.staffAction(sender.getName(), "Cleared chat", true);
FUtil.staffAction(sender.getName(), "Cleared chat.", true);
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.OP, source = SourceType.BOTH)
@CommandParameters(description = "Clear your inventory.", usage = "/<command> [player]", aliases = "ci,clear")
@CommandParameters(description = "Clear your inventory.", usage = "/<command> <player | -a>", aliases = "ci,clear")
public class Command_clearinventory extends FreedomCommand
{

Expand All @@ -33,7 +33,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
{
if (args[0].equals("-a"))
{
FUtil.staffAction(sender.getName(), "Clearing everyone's inventory", true);
FUtil.staffAction(sender.getName(), "Clearing everyone's inventory.", true);
for (Player player : server.getOnlinePlayers())
{
player.getInventory().clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.OP, source = SourceType.ONLY_IN_GAME)
@CommandParameters(description = "Obtain a clown fish", usage = "/<command>")
@CommandParameters(description = "Obtain a clown fish.", usage = "/<command>")
public class Command_clownfish extends FreedomCommand
{

Expand All @@ -18,7 +18,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
if (plugin.pl.getData(playerSender).hasItem(ShopItem.CLOWN_FISH))
{
playerSender.getInventory().addItem(plugin.sh.getClownFish());
msg("You have been given a Clown Fish", ChatColor.GREEN);
msg("You have been given a Clown Fish.", ChatColor.GREEN);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.ADMIN, source = SourceType.ONLY_IN_GAME)
@CommandParameters(description = "Spy on commands", usage = "/<command>", aliases = "commandspy")
@CommandParameters(description = "Allows Admins to view commands executed by lower ranks.", usage = "/<command>", aliases = "commandspy")
public class Command_cmdspy extends FreedomCommand
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.OP, source = SourceType.BOTH)
@CommandParameters(description = "Shows the amount of coins you have or another player has", usage = "/<command> [playername]")
@CommandParameters(description = "Shows the amount of coins you have or another player has.", usage = "/<command> <player>")
public class Command_coins extends FreedomCommand
{
@Override
Expand Down Expand Up @@ -39,7 +39,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
{
if (senderIsConsole)
{
msg(prefix + ChatColor.RED + "You are not a player, use /coins <playername>");
msg(prefix + ChatColor.RED + "You are not a player, use /coins <player>.");
return true;
}
else
Expand All @@ -51,4 +51,4 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin
msg(prefix + ChatColor.GREEN + (args.length > 0 ? p.getName() + " has " : "You have ") + ChatColor.RED + playerData.getCoins() + ChatColor.GREEN + " coins.");
return true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.bukkit.entity.Player;

@CommandPermissions(level = Rank.OP, source = SourceType.ONLY_IN_GAME)
@CommandParameters(description = "Essentials Interface Command - Set your nickname to a certain color.", usage = "/<command> <color>")
@CommandParameters(description = "Essentials Interface Command - Set your nickname to a certain color.", usage = "/<command> <color | list>")
public class Command_colorme extends FreedomCommand
{

Expand Down Expand Up @@ -52,7 +52,7 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin

plugin.esb.setNickname(sender.getName(), newNick);

msg("Your nickname is now: " + newNick);
msg("Your nickname is now: " + newNick + ".");

return true;
}
Expand Down
Loading