mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-14 07:24:50 +01:00
ship skin comamnd and changing skin
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BLHX.Server.Common.Utils;
|
||||
using BLHX.Server.Game.Handlers;
|
||||
using System.Reflection;
|
||||
|
||||
namespace BLHX.Server.Game.Commands;
|
||||
@@ -77,6 +78,11 @@ public abstract class Command
|
||||
Execute(args);
|
||||
}
|
||||
|
||||
public virtual void NotifySuccess(Connection connection)
|
||||
{
|
||||
connection.SendSystemMsg($"{GetType().Name} success!");
|
||||
}
|
||||
|
||||
protected T Parse<T>(string? value, T fallback = default!)
|
||||
{
|
||||
var tryParseMethod = typeof(T).GetMethod("TryParse", [typeof(string), typeof(T).MakeByRefType()]);
|
||||
|
||||
Reference in New Issue
Block a user