Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object OnServerCommand(ConsoleSystem.Arg arg)
- {
- bool oContains = arg.cmd.FullName.Contains("o.");
- bool oxideContains = arg.cmd.FullName.Contains("oxide.");
- bool haveConnection = arg.Connection != null;
- bool isPlayer = arg.Player() != null;
- //PrintWarning($"{oContains} {oxideContains} {haveConnection} {isPlayer}");
- if ((oContains || oxideContains) && (haveConnection || isPlayer))
- {
- if (haveConnection && isPlayer)
- return null;
- PrintWarning($"Попытка взлома {arg.Connection.ipaddress}, команда: {arg.cmd.FullName} {arg.FullString}");
- return false;
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement