fix(core): Fixes call priority (#553)

- [X] Fixes call priority
This commit is contained in:
Kamron Batman 2021-03-15 16:51:27 -07:00 committed by GitHub
parent c50322c0e3
commit 24ed9b3236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 5 deletions

View file

@ -73,12 +73,12 @@ namespace Server
if (objs.Length == 0)
{
return 0;
return 50;
}
if (!(objs[0] is CallPriorityAttribute attr))
{
return 0;
return 50;
}
return attr.Priority;

View file

@ -12,7 +12,6 @@ namespace Server.Commands
public static List<CommandInfo> SortedHelpInfo { get; private set; } = new();
[CallPriority(100)]
public static void Initialize()
{
CommandSystem.Register("HelpInfo", AccessLevel.Player, HelpInfo_OnCommand);

View file

@ -40,7 +40,7 @@ namespace Server.Network
public static void Configure()
{
var enabled = ServerConfiguration.GetOrUpdateSetting("connectuo.enabled", true);
var token = ServerConfiguration.GetOrUpdateSetting("connectuo.token", null);
var token = ServerConfiguration.GetOrUpdateSetting("connectuo.token", "");
if (enabled)
{

View file

@ -17,7 +17,6 @@ using System;
using System.Buffers;
using System.Text;
using Server.Misc;
using Server.Text;
namespace Server.Network
{