Пример #1
0
 private void Init()
 {
     plugin = this;
     permission.RegisterPermission(permissionNameADMIN, this);
     permission.RegisterPermission(permissionNameRESTRICTED, this);
     LoadConfigVariables();
 }
Пример #2
0
        private void Init()
        {
            plugin = this;
            permission.RegisterPermission(permissionNameADMIN, this);
            permission.RegisterPermission(permissionNameRESTRICTED, this);
            LoadVariables();

            lang.RegisterMessages(new Dictionary <string, string>
            {
                //chat
                ["No Permission"]    = "You are not allowed to use this command!",
                ["Grab tool start"]  = "The telekinesis tool has been enabled",
                ["Grab tool end"]    = "The telekinesis tool has been disabled",
                ["Invalid entity"]   = "No valid entity was found",
                ["Building Blocked"] = "You are not allowed to use this tool if you are building blocked",
                ["No Undo Found"]    = "No undo data was found!",
                ["Undo Success"]     = "Your last telekinesis movement was undone",
                ["TLS Mode Changed"] = "Current mode: {0}",
            }, this);
        }