mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Removed commented-out code
This commit is contained in:
parent
e10675dfdc
commit
c0d21b6044
1 changed files with 0 additions and 42 deletions
|
@ -96,46 +96,4 @@ public class Commandpowertool extends EssentialsCommand
|
|||
charge(user);
|
||||
user.setPowertool(is, powertools);
|
||||
}
|
||||
|
||||
private String appendPowerTool(User user, String command, ItemStack is, String itemName) throws Exception
|
||||
{
|
||||
command = command.substring(2); // Ignore the first 2 chars
|
||||
/*String powertools = user.getPowertool(is);
|
||||
if (powertools != null)
|
||||
{
|
||||
if (powertools.contains(command))
|
||||
{
|
||||
throw new Exception((Util.format("powerToolAlreadySet", command, itemName)));
|
||||
}
|
||||
|
||||
StringBuilder newCommand = new StringBuilder();
|
||||
command = newCommand.append(powertools).append("|").append(command).toString();
|
||||
}
|
||||
*/
|
||||
return command;
|
||||
}
|
||||
|
||||
private String removePowerTool(User user, String command, ItemStack is, String itemName) throws Exception
|
||||
{
|
||||
/*
|
||||
String powertools = user.getPowertool(is);
|
||||
if (!powertools.contains(command))
|
||||
{
|
||||
throw new Exception((Util.format("powerToolNoSuchCommandAssigned", command, itemName)));
|
||||
}
|
||||
|
||||
command = powertools.replace(command, "").replace("||", "|");
|
||||
|
||||
// Trim off any leading/trailing '|' chars
|
||||
if (command.startsWith("|"))
|
||||
{
|
||||
command = command.substring(1);
|
||||
}
|
||||
if (command.endsWith("|"))
|
||||
{
|
||||
command = command.substring(0, command.length() - 1);
|
||||
}
|
||||
*/
|
||||
return command;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue