This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Plugin("CoreCommands", "The core commands for MiNET", "1.0", "MiNET Team")] | |
public class CoreCommands : Plugin | |
{ | |
[Command] | |
public void Login(Player player, string password) | |
{ | |
UserManager<User> userManager = player.Server.UserManager; | |
if (userManager != null) | |
{ | |
if (player.Username == null) return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Plugin] | |
public class StartupPlugin : Plugin, IStartup | |
{ | |
private static readonly ILog Log = LogManager.GetLogger(typeof (StartupPlugin)); | |
/// <summary> | |
/// Startup class for MiNET. Example sets the user and role managers and stores | |
/// for the application. | |
/// </summary> | |
/// <param name="server"></param> |
NewerOlder