Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 1.0.0.0
- Loading branch information
Showing
34 changed files
with
1,063 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"CurrentProjectSetting": null | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"ExpandedNodes": [ | ||
"" | ||
], | ||
"SelectedNode": "\\BuyPermission.sln", | ||
"PreviewInSolutionExplorer": false | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "0.2.1", | ||
"tasks": [ | ||
{ | ||
"taskName": "task-Commands", | ||
"appliesTo": "Commands/", | ||
"type": "command" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
using Rocket.API; | ||
using Rocket.Core.Logging; | ||
using Rocket.Unturned.Chat; | ||
using Rocket.Unturned.Commands; | ||
using Rocket.Unturned.Player; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace coolpuppy24.rpevents | ||
{ | ||
public class ArrestCommand : IRocketCommand | ||
{ | ||
public static Main Instance; | ||
|
||
public List<string> Aliases | ||
{ | ||
get | ||
{ | ||
return new List<string>() {}; | ||
} | ||
} | ||
|
||
public AllowedCaller AllowedCaller | ||
{ | ||
get | ||
{ | ||
return AllowedCaller.Player; | ||
} | ||
} | ||
|
||
public string Help | ||
{ | ||
get | ||
{ | ||
return "Show who's getting arrested!"; | ||
} | ||
} | ||
|
||
public string Name | ||
{ | ||
get | ||
{ | ||
return "arrest"; | ||
} | ||
} | ||
|
||
public List<string> Permissions | ||
{ | ||
get | ||
{ | ||
return new List<string>() { "rpevents.arrest" }; | ||
} | ||
} | ||
|
||
public string Syntax | ||
{ | ||
get | ||
{ | ||
return "<playername>"; | ||
} | ||
} | ||
|
||
public void Execute(IRocketPlayer caller, string[] command) | ||
{ | ||
UnturnedPlayer player = command.GetUnturnedPlayerParameter(0); | ||
if (player == null) UnturnedChat.Say(caller, Main.Instance.Translate("player_not_found")); | ||
|
||
if (command.Length == null) | ||
{ | ||
Logger.LogError("This command cannot be called from the console!"); | ||
return; | ||
} | ||
else | ||
{ | ||
UnturnedChat.Say(Main.Instance.Translate("command_arrest", caller.DisplayName, player.CharacterName)); | ||
return; | ||
} | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
using Rocket.API; | ||
using Rocket.Core.Logging; | ||
using Rocket.Unturned.Chat; | ||
using Rocket.Unturned.Player; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace coolpuppy24.rpevents | ||
{ | ||
public class ArrestFinishCommand : IRocketCommand | ||
{ | ||
public static Main Instance; | ||
|
||
public List<string> Aliases | ||
{ | ||
get | ||
{ | ||
return new List<string>() { }; | ||
} | ||
} | ||
|
||
public AllowedCaller AllowedCaller | ||
{ | ||
get | ||
{ | ||
return AllowedCaller.Player; | ||
} | ||
} | ||
|
||
public string Help | ||
{ | ||
get | ||
{ | ||
return "Finishes arrest on a player"; | ||
} | ||
} | ||
|
||
public string Name | ||
{ | ||
get | ||
{ | ||
return "arrestfinish"; | ||
} | ||
} | ||
|
||
public List<string> Permissions | ||
{ | ||
get | ||
{ | ||
return new List<string>() { "rpevents.arrest" }; | ||
} | ||
} | ||
|
||
public string Syntax | ||
{ | ||
get | ||
{ | ||
return "<playername>"; | ||
} | ||
} | ||
|
||
public void Execute(IRocketPlayer caller, string[] command) | ||
{ | ||
UnturnedPlayer player = (UnturnedPlayer)caller; | ||
|
||
if (command.Length == null) | ||
{ | ||
Logger.Log("This command cannot be called from the console!"); | ||
return; | ||
} | ||
else | ||
{ | ||
UnturnedChat.Say(Main.Instance.Translate("command_arrestfinish", player.CharacterName)); | ||
return; | ||
} | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
using Rocket.API; | ||
using Rocket.Core.Logging; | ||
using Rocket.Unturned.Chat; | ||
using Rocket.Core.Plugins; | ||
using Rocket.Unturned.Commands; | ||
using Rocket.Unturned.Player; | ||
using System; | ||
using System.Collections.Generic; | ||
using SDG.Unturned; | ||
using Rocket.API.Extensions; | ||
|
||
namespace coolpuppy24.rpevents | ||
{ | ||
public class RaidCommand : IRocketCommand | ||
{ | ||
public static Main Instance; | ||
|
||
public List<string> Aliases | ||
{ | ||
get | ||
{ | ||
return new List<string>() {}; | ||
} | ||
} | ||
|
||
public AllowedCaller AllowedCaller | ||
{ | ||
get | ||
{ | ||
return AllowedCaller.Player; | ||
} | ||
} | ||
|
||
public string Help | ||
{ | ||
get | ||
{ | ||
return "Show who's getting raided!"; | ||
} | ||
} | ||
|
||
public string Name | ||
{ | ||
get | ||
{ | ||
return "raid"; | ||
} | ||
} | ||
|
||
public List<string> Permissions | ||
{ | ||
get | ||
{ | ||
return new List<string>() { "rpevents.raid" }; | ||
} | ||
} | ||
|
||
public string Syntax | ||
{ | ||
get | ||
{ | ||
return "<playername>"; | ||
} | ||
} | ||
|
||
public void Execute(IRocketPlayer caller, string[] command) | ||
{ | ||
UnturnedPlayer player = (UnturnedPlayer)caller; | ||
|
||
string message = command.GetParameterString(0); | ||
|
||
if (command.Length == 0) | ||
{ | ||
UnturnedChat.Say(caller, Main.Instance.Translate("command_raid_help")); | ||
return; | ||
} | ||
if (command.Length == null) | ||
{ | ||
Logger.Log("This command cannot be called from the console!"); | ||
return; | ||
} | ||
else | ||
{ | ||
UnturnedChat.Say(Main.Instance.Translate("command_raid", caller.DisplayName, message)); | ||
return; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
using Rocket.API; | ||
using Rocket.Core.Logging; | ||
using Rocket.Unturned.Chat; | ||
using Rocket.Core.Plugins; | ||
using Rocket.Unturned.Commands; | ||
using Rocket.Unturned.Player; | ||
using System; | ||
using System.Collections.Generic; | ||
using SDG.Unturned; | ||
using Rocket.API.Extensions; | ||
|
||
namespace coolpuppy24.rpevents | ||
{ | ||
public class RaidFinishCommand : IRocketCommand | ||
{ | ||
public static Main Instance; | ||
|
||
public List<string> Aliases | ||
{ | ||
get | ||
{ | ||
return new List<string>() { }; | ||
} | ||
} | ||
|
||
public AllowedCaller AllowedCaller | ||
{ | ||
get | ||
{ | ||
return AllowedCaller.Player; | ||
} | ||
} | ||
|
||
public string Help | ||
{ | ||
get | ||
{ | ||
return "Finishes the raid on an area"; | ||
} | ||
} | ||
|
||
public string Name | ||
{ | ||
get | ||
{ | ||
return "raidfinish"; | ||
} | ||
} | ||
|
||
public List<string> Permissions | ||
{ | ||
get | ||
{ | ||
return new List<string>() { "rpevents.raid" }; | ||
} | ||
} | ||
|
||
public string Syntax | ||
{ | ||
get | ||
{ | ||
return "<playername>"; | ||
} | ||
} | ||
|
||
public void Execute(IRocketPlayer caller, string[] command) | ||
{ | ||
UnturnedPlayer player = (UnturnedPlayer)caller; | ||
|
||
string message = command.GetParameterString(0); | ||
|
||
if (command.Length == null) | ||
{ | ||
Logger.Log("This command cannot be called from the console!"); | ||
return; | ||
} | ||
else | ||
{ | ||
UnturnedChat.Say(Main.Instance.Translate("command_raidfinish", message)); | ||
return; | ||
} | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.