Иконка ресурса

FREE NoTechTree : 1.2 1.2

Нет прав для скачивания
C#:
// Все права принадлежат дискорд сообществу https://discord.gg/VgNHPpNrz6
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Oxide.Core.Libraries.Covalence;

namespace Oxide.Plugins
{
    [Info("No Tech Tree", "Sche1sseHund", 1.2)]
    [Description("Allows server owner to disable the use of the tech tree")]

    class NoTechTree: RustPlugin
    {    
    	
        private const string PERMISSION_ALLOWBLOCKBYPASS = "notechtree.bypass";		
        
        private void Init()
		{
			permission.RegisterPermission(PERMISSION_ALLOWBLOCKBYPASS, this);
			
		}       
		private object CanUnlockTechTreeNode(BasePlayer player, TechTreeData.NodeInstance node, TechTreeData techTree)
        {      	
            
        	if(permission.UserHasPermission(player.UserIDString, PERMISSION_ALLOWBLOCKBYPASS))
        		return null;             	                
				
			PrintToChat(player, lang.GetMessage("NoTechTree", this, player.UserIDString));                 
            return false;
        }
        
        
      
		protected override void LoadDefaultMessages()
		{
			// English
			lang.RegisterMessages(new Dictionary<string, string>
			{
				["NoTechTree"] = "The Tech Tree has been disabled.",				
			}, this, "en");
            
            // Espanol
			lang.RegisterMessages(new Dictionary<string, string>
			{
				["NoTechTree"] = "El árbol tecnológico se ha desactivado",				
			}, this, "es");
            
            // Deutsch
			lang.RegisterMessages(new Dictionary<string, string>
			{
				["NoTechTree"] = "Der Forschungsbaum wurde deaktiviert.",				
			}, this, "de");
		}
        
    }
    
}

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху