refactoring: removed external dependencies from server, removed webhooks from server
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
using NLog;
|
||||
using Ragon.Protocol;
|
||||
using Ragon.Server.IO;
|
||||
using Ragon.Server.Lobby;
|
||||
using Ragon.Server.Logging;
|
||||
|
||||
namespace Ragon.Server.Handler
|
||||
{
|
||||
public class PlayerUserDataOperation : BaseOperation
|
||||
{
|
||||
private readonly ILogger _logger = LogManager.GetCurrentClassLogger();
|
||||
private readonly IRagonLogger _logger = LoggerManager.GetLogger(nameof(PlayerUserDataOperation));
|
||||
private readonly int _userDataLimit;
|
||||
|
||||
|
||||
public PlayerUserDataOperation(
|
||||
RagonBuffer reader,
|
||||
RagonBuffer writer,
|
||||
@@ -23,10 +23,10 @@ namespace Ragon.Server.Handler
|
||||
{
|
||||
if (context.ConnectionStatus == ConnectionStatus.Unauthorized)
|
||||
{
|
||||
_logger.Warn($"Player {context.Connection.Id} not authorized for this request");
|
||||
_logger.Warning($"Player {context.Connection.Id} not authorized for this request");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
context.UserData.Read(Reader);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user