Skip to content

Commit

Permalink
Change permission nodes to be standards-compliant.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrioCelos committed May 9, 2015
1 parent 7779661 commit 15d7cfc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions RegionVision/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.2.1.0")]
[assembly: AssemblyFileVersion("1.2.1.0")]
9 changes: 6 additions & 3 deletions RegionVision/RegionVision.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,20 @@ public RegionVisionPlugin(Main game)

public override void Initialize()
{
Command viewCommand = new Command("regionview", commandView, new string[] { "regionview", "rv" });
Command viewCommand = new Command(new List<string>(new string[] { "regionvision.regionview", "regionview" }),
commandView, new string[] { "regionview", "rv" });
viewCommand.AllowServer = false;
viewCommand.HelpDesc = new string[] { "Usage: /rv <region name>", "Shows you the boundary of the specified region" };
Commands.ChatCommands.Add(viewCommand);

Command clearCommand = new Command("regionview", commandClear, new string[] { "regionclear", "rc" });
Command clearCommand = new Command(new List<string>(new string[] { "regionvision.regionview", "regionview" }),
commandClear, new string[] { "regionclear", "rc" });
clearCommand.AllowServer = false;
clearCommand.HelpDesc = new string[] { "Usage: /rc", "Removes all region borders from your view" };
Commands.ChatCommands.Add(clearCommand);

Command viewNearbyCommand = new Command("regionviewnear", commandViewNearby, new string[] { "regionviewnear", "rvn" });
Command viewNearbyCommand = new Command(new List<string>(new string[] { "regionvision.regionviewnear", "regionviewnear" }),
commandViewNearby, new string[] { "regionviewnear", "rvn" });
viewNearbyCommand.AllowServer = false;
viewNearbyCommand.HelpDesc = new string[] { "Usage: /rvn", "Turns on or off automatic showing of regions near you" };
Commands.ChatCommands.Add(viewNearbyCommand);
Expand Down
Binary file modified bins/RegionVision.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 1.2.1 – 9 May 2015
--------------------------

* Changed the permissions to `regionvision.regionview` and `regionvision.regionviewnear` to be standards compliant. The old permissions still work.

Version 1.2 – 9 March 2015
--------------------------

Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Commands
Permissions
-----------

* `regionview` – gives access to all commands listed above
* `regionvision.regionview` – gives access to `/rv` and `/rc`.
* `regionvision.regionviewnear` – gives access to `/rvn`.

0 comments on commit 15d7cfc

Please sign in to comment.