Permalink
Browse files

Fix

  • Loading branch information...
1 parent e46c1a9 commit b11fc224cc3775e2fd24c7288a9a8becd899fd0b @fr34kyn01535 fr34kyn01535 committed Dec 23, 2015
View
@@ -8,11 +8,12 @@ namespace ZaupShop
{
public class CommandBuy : IRocketCommand
{
- public bool AllowFromConsole
+
+ public AllowedCaller AllowedCaller
{
get
{
- return false;
+ return AllowedCaller.Player;
}
}
public string Name
@@ -44,6 +45,7 @@ public List<string> Permissions
{
get { return new List<string>(); }
}
+
public void Execute(IRocketPlayer playerid, string[] msg)
{
ZaupShop.Instance.Buy((UnturnedPlayer)playerid, msg);
View
@@ -13,11 +13,12 @@ namespace ZaupShop
{
public class CommandCost : IRocketCommand
{
- public bool AllowFromConsole
+
+ public AllowedCaller AllowedCaller
{
get
{
- return false;
+ return AllowedCaller.Player;
}
}
public string Name
View
@@ -9,11 +9,12 @@ namespace ZaupShop
{
public class CommandSell : IRocketCommand
{
- public bool AllowFromConsole
+
+ public AllowedCaller AllowedCaller
{
get
{
- return false;
+ return AllowedCaller.Player;
}
}
public string Name
View
@@ -16,11 +16,12 @@ namespace ZaupShop
{
public class CommandShop : IRocketCommand
{
- public bool AllowFromConsole
+
+ public AllowedCaller AllowedCaller
{
get
{
- return true;
+ return AllowedCaller.Both;
}
}
public string Name
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.

0 comments on commit b11fc22

Please sign in to comment.