mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-13 23:34:34 +01:00
readonlies
This commit is contained in:
@@ -6,11 +6,11 @@ namespace Common
|
|||||||
{
|
{
|
||||||
public static class Global
|
public static class Global
|
||||||
{
|
{
|
||||||
public static IConfig config = new ConfigurationBuilder<IConfig>().UseJsonFile("config.json").Build();
|
public static readonly IConfig config = new ConfigurationBuilder<IConfig>().UseJsonFile("config.json").Build();
|
||||||
public static Logger c = new("Global");
|
public static readonly Logger c = new("Global");
|
||||||
|
|
||||||
public static MongoClient MongoClient = new MongoClient(config.DatabaseUri);
|
public static readonly MongoClient MongoClient = new(config.DatabaseUri);
|
||||||
public static IMongoDatabase db = MongoClient.GetDatabase("PemukulPaku");
|
public static readonly IMongoDatabase db = MongoClient.GetDatabase("PemukulPaku");
|
||||||
public static long GetUnixInSeconds() => ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeSeconds();
|
public static long GetUnixInSeconds() => ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeSeconds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace PemukulPaku.Gameserver
|
|||||||
{
|
{
|
||||||
public class Server
|
public class Server
|
||||||
{
|
{
|
||||||
public static Logger c = new("TCP", ConsoleColor.Blue);
|
public static readonly Logger c = new("TCP", ConsoleColor.Blue);
|
||||||
|
|
||||||
public static void Start()
|
public static void Start()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user