fix mod api
This commit is contained in:
@@ -4,7 +4,7 @@ using me.lucko.luckperms.common.config.generic.key;
|
||||
|
||||
namespace LuckPerms.Torch.Extensions;
|
||||
|
||||
public static class KeyedConfigurationExtensions
|
||||
internal static class KeyedConfigurationExtensions
|
||||
{
|
||||
public static bool GetBoolean(this KeyedConfiguration config, ConfigKey key, bool defaultValue = default)
|
||||
{
|
||||
|
15
LuckPerms.Torch/Extensions/MultiplayerManagerExtensions.cs
Normal file
15
LuckPerms.Torch/Extensions/MultiplayerManagerExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using java.util;
|
||||
using Torch.API;
|
||||
using Torch.API.Managers;
|
||||
using Torch.Server.Managers;
|
||||
|
||||
namespace LuckPerms.Torch.Extensions;
|
||||
|
||||
public static class MultiplayerManagerExtensions
|
||||
{
|
||||
public static IPlayer GetPlayer(this IMultiplayerManagerServer manager, ulong steamId) =>
|
||||
((MultiplayerManagerDedicated)manager).Players[steamId];
|
||||
|
||||
public static IPlayer GetPlayer(this IMultiplayerManagerServer manager, UUID uuid) =>
|
||||
((MultiplayerManagerDedicated)manager).Players[uuid.GetSteamId()];
|
||||
}
|
@@ -5,7 +5,7 @@ using Torch.Utils;
|
||||
|
||||
namespace LuckPerms.Torch.Extensions;
|
||||
|
||||
public static class StreamExtensions
|
||||
internal static class StreamExtensions
|
||||
{
|
||||
public static InputStream GetInputStream(this Stream stream)
|
||||
{
|
||||
|
Reference in New Issue
Block a user