CommandPacket / Authority

04/25/2018 16:32 jockus#1
Hello, i want add the comand for [Support]

for exemple in TeleportCommand i have this code:

Code:
namespace OpenNos.GameObject.CommandPackets
{
    [PacketHeader("$Teleport", "$Tp", "$TP" , PassNonParseablePacket = true, Authority = AuthorityType.GameMaster)]
    public class TeleportPacket : PacketDefinition
    {
        #region Properties

        [PacketIndex(0)]
        public string Data { get; set; }

        [PacketIndex(1)]
        public short X { get; set; }

        [PacketIndex(2)]
        public short Y { get; set; }

        public static string ReturnHelp()
        {
            return "$Teleport CHARACTERNAME/MAP X(?) Y(?)";
        }

        #endregion
    }
}
04/25/2018 16:37 jockus#2
Thanks ;)
04/25/2018 16:39 WhatsTheMatter#3
PassNonParseablePacket = true, Authority = AuthorityType.Supporter)]
04/25/2018 16:43 jockus#4
with GameMaster

also : [PacketHeader("$Teleport", "$Tp", "$TP" , PassNonParseablePacket = true, Authority = AuthorityType.GameMaster & AuthorityType.Moderator)] ?
04/25/2018 16:49 WhatsTheMatter#5
No, just Supporter its given as minimum Authority like if you put Supporter every rank above Supporter can use it.
04/25/2018 16:50 Thecrazyviktor#6
When you make AuthorityType.Support can Use all AuthorityType higher Automatical the Command :)

Sorry for this really bad English
04/25/2018 16:55 jockus#7
ah ok thanks for Help and information ! ;)