moves Parcel set flag to static functions
This commit is contained in:
parent
6ef5a9c47a
commit
85f62b8b8a
1 changed files with 11 additions and 0 deletions
|
|
@ -8,6 +8,17 @@ namespace BSB
|
|||
{
|
||||
public static class parcel_static
|
||||
{
|
||||
public static void ParcelSetFlag(ParcelFlags F, Parcel p, bool set)
|
||||
{
|
||||
if (p.Flags.HasFlag(F))
|
||||
{
|
||||
p.Flags -= F;
|
||||
}
|
||||
if (set == true)
|
||||
{
|
||||
p.Flags |= F;
|
||||
}
|
||||
}
|
||||
public static bool has_parcel_perm(Parcel P, CommandsBot bot)
|
||||
{
|
||||
bool has_perm = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue