Giter Site home page Giter Site logo

creators-area / advisor Goto Github PK

View Code? Open in Web Editor NEW
45.0 4.0 2.0 138 KB

An open source and expandable administration framework for your S&box servers and addons.

Home Page: https://discord.gg/gca

License: MIT License

C# 99.34% HTML 0.45% SCSS 0.21%
facepunch administration sbox

advisor's Issues

Advisor Commands: Support for params in command arguments

This would give support for the follow command declaration:

[Command("kicktargets")]
public void KickTargets(params Player[] targets)
{
    // Kick all the targets here.
}

It would be executed in this manner: !kicktargets PlayerOne PlayerTwo

The command handler would likely need to read the entire remaining message arguments and keep converting these, then adding them to the object list for dynamic invocation.

Potential S&box incompatibility: Reflection usage

One thing that's still unclear is whether or not Reflection will be allowed or not. While we'll be able to disable the access list serverside, not having Reflection clientside would cause a lot of issues, notably with populating commands.

Furthermore, not having Reflection clientside would stop us from running commands on the client after verifying if they have the permission serverside, and all commands will have to be ran on the server.

Potential Form of Some Intelisense

This repository contains some of the S&Box API (it hasn't been updated for a while so it's probably outdated), so this could be used to reduce the amount of errors and get some Intelisense, of course not all of it needs to be used but some of it being used could help a bit

Add more properties for CommandAttribute

Name of the requested feature/enhancement:
Expanding properties?

Description:
Instead of having this compact code

[Command("do-stuff", SandboxRealm.Shared, Description = "This command doing some stuff!", Target = TargetPermission.All)]
public void DoStuff()
{
}

we have

[Command("do-stuff", SandboxRealm.Shared)]
[Description("This command doing some stuff!")]
[Target(TargetPermission.All)]
public void DoStuff()
{
}

Additional context
Don't have

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.