Skip to content

Commit

Permalink
- New Feature: smart tab-completion of most Towny commands, courtesy
Browse files Browse the repository at this point in the history
of Siris with PR #3700.
    - Closes #3314.
  - Removed unneeded permission check for /n spawn.
    - towny.command.nation.spawn node is no longer tested for.
    - towny.nation.spawn.* nodes still remain in use.
  • Loading branch information
LlmDl committed Feb 18, 2020
1 parent 1795802 commit 710ddeb
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
7 changes: 6 additions & 1 deletion resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4164,4 +4164,9 @@ v0.92.0.11:
0.95.2.16:
- New Language: Taiwanese courtesy of shou692199 with PR #3689.
- set language: zh-TW.yml in config to use.
- Fix for potentially causing too many file open exceptions on servers with large databases and small Open File Limits.
- Fix for potentially causing too many file open exceptions on servers with large databases and small Open File Limits.
- New Feature: smart tab-completion of most Towny commands, courtesy of Siris with PR #3700.
- Closes #3314.
- Removed unneeded permission check for /n spawn.
- towny.command.nation.spawn node is no longer tested for.
- towny.nation.spawn.* nodes still remain in use.
3 changes: 0 additions & 3 deletions src/com/palmergames/bukkit/towny/command/NationCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,6 @@ else if (split.length == 2) {
/*
Parse standard nation spawn command.
*/
if (!townyUniverse.getPermissionSource().testPermission(player, PermissionNodes.TOWNY_COMMAND_NATION_SPAWN.getNode()))
throw new TownyException(TownySettings.getLangString("msg_err_command_disable"));

String[] newSplit = StringMgmt.remFirstArg(split);
nationSpawn(player, newSplit);
}
Expand Down
1 change: 0 additions & 1 deletion src/com/palmergames/bukkit/towny/command/PlotCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.UUID;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

/**
Expand Down
1 change: 0 additions & 1 deletion src/com/palmergames/bukkit/towny/command/TownCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
Expand Down
1 change: 0 additions & 1 deletion src/com/palmergames/bukkit/towny/command/TownyCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class TownyCommand extends BaseCommand implements CommandExecutor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ public enum PermissionNodes {
TOWNY_COMMAND_NATION_TOGGLE_NEUTRAL("towny.command.nation.toggle.neutral"),
TOWNY_COMMAND_NATION_TOGGLE_PUBLIC("towny.command.nation.toggle.public"),
TOWNY_COMMAND_NATION_TOGGLE_OPEN("towny.command.nation.toggle.open"),

TOWNY_COMMAND_NATION_SPAWN("towny.command.nation.spawn"),


TOWNY_COMMAND_NATION_ENEMY("towny.command.nation.enemy"),
TOWNY_COMMAND_NATION_DELETE("towny.command.nation.delete"),
Expand Down

0 comments on commit 710ddeb

Please sign in to comment.