├── PyPlugin.Example
├── README.txt
├── config.py
└── plugin.py
├── PyPlugin
├── EmbeddedScripts
│ ├── coroutine.py
│ └── log.py
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── BootstrapConfig.cs
├── EmbeddedScriptsApi
│ └── Coroutine.cs
├── Bootstrap.cs
├── PluginManager.cs
├── PythonPluginLoader.cs
├── PythonPlugin.cs
└── PyPlugin.csproj
├── .github
└── workflows
│ └── main.yml
├── PyPlugin.sln
├── README.md
├── ForDevelopers.md
├── .gitignore
└── LICENSE
/PyPlugin.Example/README.txt:
--------------------------------------------------------------------------------
1 | This plugin sends broadcast to players every N seconds.
--------------------------------------------------------------------------------
/PyPlugin/EmbeddedScripts/coroutine.py:
--------------------------------------------------------------------------------
1 | # PRIORITY 100
2 |
3 | from PyPlugin.EmbeddedScriptsApi.Coroutine import ToIEnumerator
4 | from System import Single
5 |
6 | def toCoroutine(generator):
7 | return ToIEnumerator[Single](generator)
--------------------------------------------------------------------------------
/PyPlugin.Example/config.py:
--------------------------------------------------------------------------------
1 | # PRIORITY 100
2 |
3 | # Broadcast duration
4 | MESSAGE_DURATION = 10
5 | # Broadcast message
6 | MESSAGE = "Hello, I am test plugin!"
7 | # Time between broadcasts
8 | MESSAGE_COOLDOWN = 30
9 | # Delay before first broadcast
10 | MESSAGE_ROUND_START_DELAY = 10
--------------------------------------------------------------------------------
/PyPlugin/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/PyPlugin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | [assembly: AssemblyTitle("PyPlugin")]
5 | [assembly: AssemblyCompany("TrickyBestia")]
6 | [assembly: AssemblyProduct("PyPlugin")]
7 | [assembly: AssemblyCopyright("Copyright © TrickyBestia 2020")]
8 | [assembly: ComVisible(false)]
9 | [assembly: AssemblyVersion("1.0.*")]
--------------------------------------------------------------------------------
/PyPlugin/EmbeddedScripts/log.py:
--------------------------------------------------------------------------------
1 | # PRIORITY 100
2 |
3 | from Exiled.API.Features.Log import Send
4 | from System import ConsoleColor
5 | from Discord import LogLevel
6 |
7 | def debug(message):
8 | Send("[" + str(NAME) + "] " + str(message), LogLevel.Debug, ConsoleColor.Green)
9 | def info(message):
10 | Send("[" + str(NAME) + "] " + str(message), LogLevel.Info, ConsoleColor.Cyan)
11 | def warn(message):
12 | Send("[" + str(NAME) + "] " + str(message), LogLevel.Warn, ConsoleColor.Magenta)
13 | def error(message):
14 | Send("[" + str(NAME) + "] " + str(message), LogLevel.Error, ConsoleColor.DarkRed)
--------------------------------------------------------------------------------
/PyPlugin/BootstrapConfig.cs:
--------------------------------------------------------------------------------
1 | using Exiled.API.Features;
2 | using Exiled.API.Interfaces;
3 | using System.ComponentModel;
4 | using System.IO;
5 |
6 | namespace PyPlugin
7 | {
8 | public class BootstrapConfig : IConfig
9 | {
10 | [Description("Should plugin be enabled.")]
11 | public bool IsEnabled { get; set; } = false;
12 | [Description("Path to the scripts folder.")]
13 | public string PluginsPath { get; set; }
14 |
15 | public BootstrapConfig()
16 | {
17 | PluginsPath = Path.Combine(Paths.Plugins, "Python");
18 | Directory.CreateDirectory(PluginsPath);
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/PyPlugin/EmbeddedScriptsApi/Coroutine.cs:
--------------------------------------------------------------------------------
1 | using IronPython.Runtime;
2 | using System.Collections.Generic;
3 |
4 | namespace PyPlugin.EmbeddedScriptsApi
5 | {
6 | public static class Coroutine
7 | {
8 | ///
9 | /// Wraps in .
10 | ///
11 | /// Python generator.
12 | /// which takes values from
13 | public static IEnumerator ToIEnumerator(PythonGenerator generator)
14 | {
15 | foreach (var generatorResult in generator)
16 | yield return (T)generatorResult;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/.github/workflows/main.yml:
--------------------------------------------------------------------------------
1 | name: Main CI
2 |
3 | on:
4 | push:
5 | pull_request:
6 |
7 | jobs:
8 | Build:
9 | runs-on: windows-latest
10 |
11 | steps:
12 | - name: Setup MSBuild
13 | uses: microsoft/setup-msbuild@v1.0.2
14 |
15 | - name: Setup NuGet
16 | uses: nuget/setup-nuget@v1
17 |
18 | - name: Pull repository
19 | uses: actions/checkout@v2.3.1
20 |
21 | - name: Restore NuGet packages
22 | run: nuget restore PyPlugin.sln
23 |
24 | - name: Build
25 | run: |
26 | msbuild PyPlugin.sln -p:Configuration=Release -p:OutDir=../buildWithTrash
27 | if ($? -eq $false) { Exit 1 }
28 |
29 | - name: Switch to solution direcotry
30 | run: cd PyPlugin
31 |
32 | - name: Move non-trash files into another build directory
33 | run: |
34 | mkdir build
35 | cp -r buildWithTrash/dependencies build/
36 | cp buildWithTrash/PyPlugin.dll build/
37 |
38 | - name: Upload artifacts
39 | uses: actions/upload-artifact@v2
40 | with:
41 | name: PyPlugin
42 | path: build
--------------------------------------------------------------------------------
/PyPlugin.Example/plugin.py:
--------------------------------------------------------------------------------
1 | # PRIORITY 0
2 |
3 | from Exiled.Events import Handlers as handlers
4 | from MEC import Timing
5 | from UnityEngine import Application
6 | from Exiled.API.Features import Player
7 |
8 | NAME = "PyPlugin.Example"
9 | AUTHOR = "TrickyBestia"
10 | VERSION = "1.0.0.0"
11 |
12 | coroutine = 0
13 |
14 | def messagesBroadcasterCoroutine():
15 | i = 0
16 | while i < Application.targetFrameRate * MESSAGE_ROUND_START_DELAY:
17 | i += 1
18 | yield Timing.WaitForOneFrame
19 | while True:
20 | for player in Player.List:
21 | player.Broadcast(MESSAGE_DURATION, MESSAGE)
22 | i = 0
23 | while i < Application.targetFrameRate * MESSAGE_COOLDOWN:
24 | i += 1
25 | yield Timing.WaitForOneFrame
26 |
27 | def onRoundStarted():
28 | coroutine = Timing.RunCoroutine(
29 | toCoroutine(messagesBroadcasterCoroutine()))
30 |
31 | def onRestartingRound():
32 | Timing.KillCoroutines(coroutine)
33 |
34 | def onEnabled():
35 | info("Hello! I am " + NAME + " and I was enabled!")
36 | handlers.Server.RoundStarted += onRoundStarted
37 | handlers.Server.RestartingRound += onRestartingRound
--------------------------------------------------------------------------------
/PyPlugin.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30413.136
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PyPlugin", "PyPlugin\PyPlugin.csproj", "{6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x64 = Debug|x64
12 | Release|Any CPU = Release|Any CPU
13 | Release|x64 = Release|x64
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}.Debug|x64.ActiveCfg = Debug|Any CPU
19 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}.Debug|x64.Build.0 = Debug|Any CPU
20 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}.Release|x64.ActiveCfg = Release|Any CPU
23 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}.Release|x64.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {C882B76B-4E3B-40FE-A1B9-6A64FAB08D77}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PyPlugin
2 |
3 | 
4 | 
5 | 
6 |
7 | PyPlugin is an [EXILED](https://github.com/galaxy119/EXILED) plugin, which allows you to write plugins in Python. You can use all Exiled API in your plugin (except yaml configs).
8 |
9 | # Installation
10 |
11 | You should download binaries from [releases page](https://github.com/TrickyBestia/PyPlugin/releases), unarchive them and put them in plugins folder (%appdata%/EXILED/Plugins for Windows).
12 |
13 | Then you should download plugins and put them into folder you specified in PyPlugin's config.
14 | It will look like:
15 | ```
16 | Python:
17 | PluginA:
18 | plugin.py
19 | config.py
20 | PluginB:
21 | plugin.py
22 | config.py
23 | ```
24 |
25 | # Config
26 |
27 | Python plugins don't have yaml configs, but developer can create config.py file in plugin's folder with ~same content:
28 | ```python
29 | # PRIORITY 100
30 |
31 | # Broadcast duration
32 | MESSAGE_DURATION = 10
33 | # Broadcast message
34 | MESSAGE = "Hello, I am test plugin!"
35 | # Time between broadcasts
36 | MESSAGE_COOLDOWN = 30
37 | # Delay before first broadcast
38 | MESSAGE_ROUND_START_DELAY = 10
39 | ```
40 | And you can edit values in this file.
41 |
42 | # [For developers](https://github.com/TrickyBestia/PyPlugin/blob/development/ForDevelopers.md)
--------------------------------------------------------------------------------
/PyPlugin/Bootstrap.cs:
--------------------------------------------------------------------------------
1 | using Exiled.API.Enums;
2 | using Exiled.API.Features;
3 | using System;
4 | using System.Reflection;
5 |
6 | namespace PyPlugin
7 | {
8 | internal class Bootstrap : Plugin
9 | {
10 | ///
11 | /// Instance of .
12 | ///
13 | public static Bootstrap Instance { get; private set; }
14 |
15 | ///
16 | public override string Author { get; } = "TrickyBestia";
17 | ///
18 | public override string Name { get; } = "PyPlugin";
19 | ///
20 | public override string Prefix { get; } = "PyPlugin";
21 | ///
22 | public override Version RequiredExiledVersion { get; } = new Version(2, 1, 18);
23 | ///
24 | public override PluginPriority Priority { get; } = PluginPriority.Default;
25 | ///
26 | public override Version Version => Assembly.GetName().Version;
27 |
28 | ///
29 | public Bootstrap()
30 | {
31 | Instance = this;
32 | }
33 | ///
34 | public override void OnEnabled()
35 | {
36 | PluginManager.LoadPlugins(Config.PluginsPath);
37 | PluginManager.EnableAll();
38 |
39 | base.OnEnabled();
40 | }
41 | ///
42 | public override void OnDisabled()
43 | {
44 | PluginManager.DisableAll();
45 |
46 | base.OnDisabled();
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/PyPlugin/PluginManager.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Scripting.Hosting;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.IO;
5 |
6 | namespace PyPlugin
7 | {
8 | public static class PluginManager
9 | {
10 | ///
11 | /// Scripts host.
12 | ///
13 | public static ScriptEngine Engine { get; }
14 | ///
15 | /// Loaded plugins.
16 | ///
17 | public static List Plugins { get; }
18 |
19 | static PluginManager()
20 | {
21 | Engine = IronPython.Hosting.Python.CreateEngine();
22 | Plugins = new List();
23 |
24 | foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
25 | Engine.Runtime.LoadAssembly(assembly);
26 | }
27 | ///
28 | /// Loads all plugins from directory.
29 | ///
30 | /// Path to the directory.
31 | public static void LoadPlugins(string root)
32 | {
33 | foreach (var pluginRoot in Directory.GetDirectories(root))
34 | Plugins.Add(PythonPluginLoader.Load(pluginRoot));
35 | }
36 | ///
37 | /// Disables all loaded plugins.
38 | ///
39 | public static void DisableAll()
40 | {
41 | foreach (var plugin in Plugins)
42 | plugin.Disable();
43 | }
44 | ///
45 | /// Enables all loaded plugins.
46 | ///
47 | public static void EnableAll()
48 | {
49 | foreach (var plugin in Plugins)
50 | plugin.Enable();
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/ForDevelopers.md:
--------------------------------------------------------------------------------
1 | # For developers
2 |
3 | Hello developer!
4 | If you want to write SCP: SL plugins with EXILED and Python it is very simple!
5 |
6 | ## Creating files
7 |
8 | For start you should create folder (preferably with your plugin's name).
9 | Then you should create plugin.py and config.py in this folder.
10 | Now you can write some code!
11 |
12 | ## Writing some code
13 | ### First steps
14 |
15 | For example, you want to greet every player connected to the server.
16 | Open plugin.py and write
17 | ```Python
18 | NAME = "PlayerGreeter"
19 | VERSION = "1.0.0.0"
20 | AUTHOR = "Your name"
21 | ```
22 | Copy plugin's folder in your Python plugins folder and start server. You will see that message:
23 | ```
24 | [17:06:00] [INFO] [PyPlugin] PlayerGreeter v1.0.0, made by Your name, has been enabled!
25 | ```
26 |
27 | ### Registering event handlers
28 |
29 | So you need to send broadcast to player when he is connected to your server. You need to register an event handler which will be called by server when player connects.
30 | ```Python
31 | from Eiled.Events import Handlers as handlers
32 |
33 | NAME = "PlayerGreeter"
34 | AUTHOR = "Your name"
35 | VERSION = "1.0.0.0"
36 |
37 | def onPlayerJoined(args):
38 | args.Player.Broadcast(10, "Greetings, player!")
39 |
40 | def onEnabled():
41 | handlers.Player.Joined += onPlayerJoined
42 | ```
43 |
44 | ### Creating config
45 |
46 | So you have written your plugin with 1000 (11, I counted lol) lines of code and you want to publish it.
47 | But plugin users can be a little stupid so they can't edit your code to change some values they want.
48 | It is time for the config.py! Open it and write that:
49 | ```Python
50 | # PRIORITY 100
51 | # Later about priorities
52 |
53 | BROADCAST_MESSAGE = "Greetings, player!" # You MUST (no) use upper letters because it is more glamorous than lower (yes)
54 | BROADCAST_DURATION = 10
55 | ```
56 | Now you can change your plugin.py:
57 | ```Python
58 | from Eiled.Events import Handlers as handlers
59 |
60 | NAME = "PlayerGreeter"
61 | AUTHOR = "Your name"
62 | VERSION = "1.0.0.0"
63 |
64 | def onPlayerJoined(args):
65 | args.Player.Broadcast(BROADCAST_DURATION, BROADCAST_MESSAGE)
66 |
67 | def onEnabled():
68 | handlers.Player.Joined += onPlayerJoined
69 | ```
70 |
71 | ### Priorities
72 |
73 | Priority definition:
74 | ```Python
75 | # PRIORITY 100
76 | ```
77 | Files with higher priorities are being loaded earlier.
78 |
79 | # You can find another example [here](https://github.com/TrickyBestia/PyPlugin/tree/master/PyPlugin.Example)
--------------------------------------------------------------------------------
/PyPlugin/PythonPluginLoader.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Scripting;
2 | using Microsoft.Scripting.Hosting;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Reflection;
6 | using System.Text.RegularExpressions;
7 |
8 | namespace PyPlugin
9 | {
10 | ///
11 | /// Gives functionality to load s.
12 | ///
13 | public static class PythonPluginLoader
14 | {
15 | ///
16 | /// Loads from given directory.
17 | ///
18 | /// Directory of .
19 | /// Loaded .
20 | public static PythonPlugin Load(string root)
21 | {
22 | var scriptScope = PluginManager.Engine.CreateScope();
23 |
24 | LoadEmbeddedScripts(scriptScope);
25 |
26 | var files = Directory.EnumerateFiles(root, "*.py", SearchOption.AllDirectories).ToList();
27 | var sources = files.Select(file => GetScriptDataFromFile(file));
28 | var prioritySortedSources = sources.OrderByDescending(data => data.priority);
29 | foreach (var (priority, source) in prioritySortedSources)
30 | source.Execute(scriptScope);
31 |
32 | return new PythonPlugin(scriptScope);
33 | }
34 | ///
35 | /// Loads embedded scripts into given .
36 | ///
37 | /// Given .
38 | private static void LoadEmbeddedScripts(ScriptScope scriptScope)
39 | {
40 | var resources = Assembly.GetExecutingAssembly().GetManifestResourceNames();
41 | var embeddedScripts = resources.Where(resource => Regex.IsMatch(resource, @".*EmbeddedScripts\..*\.py"));
42 | var sources = embeddedScripts.Select(script =>
43 | {
44 | using var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(script);
45 | return GetScriptDataFromStream(stream);
46 | });
47 | var prioritySortedSources = sources.OrderByDescending(data => data.priority);
48 | foreach (var (priority, source) in prioritySortedSources)
49 | source.Execute(scriptScope);
50 | }
51 | private static (int priority, ScriptSource source) GetScriptDataFromFile(string file)
52 | {
53 | using var stream = new FileStream(file, FileMode.Open);
54 | return GetScriptDataFromStream(stream);
55 | }
56 | private static (int priority, ScriptSource source) GetScriptDataFromStream(Stream stream)
57 | {
58 | string code = null;
59 | using (StreamReader reader = new StreamReader(stream))
60 | code = reader.ReadToEnd();
61 |
62 | var firstLine = code.Substring(0, code.IndexOf('\n') + 1);
63 | var match = Regex.Match(firstLine.Replace(" ", string.Empty), @"#PRIORITY(\d+)");
64 | int priority = 0;
65 | if (match.Success)
66 | int.TryParse(match.Result("$1"), out priority);
67 |
68 | return (priority, PluginManager.Engine.CreateScriptSourceFromString(code, SourceCodeKind.File));
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/PyPlugin/PythonPlugin.cs:
--------------------------------------------------------------------------------
1 | using Exiled.API.Features;
2 | using Microsoft.Scripting.Hosting;
3 | using System;
4 |
5 | namespace PyPlugin
6 | {
7 | ///
8 | /// Represents a plugin written in Python.
9 | ///
10 | public class PythonPlugin
11 | {
12 | ///
13 | /// Gets a value indicating whether or not the plugin is enabled.
14 | ///
15 | public bool IsEnabled { get; private set; }
16 | ///
17 | /// Gets a plugin .
18 | ///
19 | public ScriptScope Scope { get; }
20 | ///
21 | /// Gets name of this plugin.
22 | ///
23 | public string Name { get; }
24 | ///
25 | /// Gets author of this plugin.
26 | ///
27 | public string Author { get; }
28 | ///
29 | /// Gets version of a plugin.
30 | ///
31 | public Version Version { get; }
32 |
33 | ///
34 | /// Creates new instance of .
35 | ///
36 | /// Plugin's .
37 | internal PythonPlugin(ScriptScope scope)
38 | {
39 | Scope = scope;
40 |
41 | if (Scope.TryGetVariable("NAME", out string name))
42 | Name = name;
43 | else Name = "Unknown";
44 |
45 | if (Scope.TryGetVariable("AUTHOR", out string author))
46 | Author = author;
47 | else Author = "Unknown";
48 |
49 | var version = new Version(1, 0, 0, 0);
50 | if (Scope.TryGetVariable("VERSION", out string versionText))
51 | Version.TryParse(versionText, out version);
52 | Version = version;
53 | }
54 | ///
55 | /// Enables plugin.
56 | ///
57 | public void Enable()
58 | {
59 | if (!IsEnabled)
60 | {
61 | IsEnabled = true;
62 | if (Scope.TryGetVariable("onEnabled", out Action enabledEventHandler))
63 | {
64 | try
65 | {
66 | enabledEventHandler();
67 | }
68 | catch (Exception exception)
69 | {
70 | Log.Error($"Plugin \"{Name}\" threw an exception while enabling: {exception}");
71 | }
72 | }
73 | Log.Info($"{Name} v{Version.Major}.{Version.Minor}.{Version.Build}, made by {Author}, has been enabled!");
74 | }
75 | }
76 | ///
77 | /// Disables plugin.
78 | ///
79 | public void Disable()
80 | {
81 | if (IsEnabled)
82 | {
83 | IsEnabled = false;
84 | if (Scope.TryGetVariable("onDisabled", out Action disabledEventHandler))
85 | {
86 | try
87 | {
88 | disabledEventHandler();
89 | }
90 | catch (Exception exception)
91 | {
92 | Log.Error($"Plugin \"{Name}\" threw an exception while disabling: {exception}");
93 | }
94 | }
95 | Log.Info($"{Name} v{Version.Major}.{Version.Minor}.{Version.Build}, made by {Author}, has been disabled!");
96 | }
97 | }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/PyPlugin/PyPlugin.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {6FDD2F9D-8A34-4BF3-BC3C-CBD95A60A61A}
8 | Library
9 | Properties
10 | PyPlugin
11 | PyPlugin
12 | v4.7.2
13 | 512
14 | false
15 | 9.0
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | none
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 | AnyCPU
34 | Off
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | $(EXILED_REFERENCES)\Assembly-CSharp-firstpass.dll
51 | False
52 |
53 |
54 | ..\packages\EXILED.2.1.18\lib\net472\Exiled.API.dll
55 | False
56 |
57 |
58 | ..\packages\EXILED.2.1.18\lib\net472\Exiled.Bootstrap.dll
59 | False
60 |
61 |
62 | ..\packages\EXILED.2.1.18\lib\net472\Exiled.Events.dll
63 | False
64 |
65 |
66 | ..\packages\EXILED.2.1.18\lib\net472\Exiled.Loader.dll
67 | False
68 |
69 |
70 | ..\packages\EXILED.2.1.18\lib\net472\Exiled.Permissions.dll
71 | False
72 |
73 |
74 | ..\packages\EXILED.2.1.18\lib\net472\Exiled.Updater.dll
75 | False
76 |
77 |
78 | ..\packages\IronPython.2.7.11\lib\net45\IronPython.dll
79 | True
80 |
81 |
82 | ..\packages\IronPython.2.7.11\lib\net45\IronPython.Modules.dll
83 | True
84 |
85 |
86 | ..\packages\IronPython.2.7.11\lib\net45\IronPython.SQLite.dll
87 | True
88 |
89 |
90 | ..\packages\IronPython.2.7.11\lib\net45\IronPython.Wpf.dll
91 | True
92 |
93 |
94 | ..\packages\DynamicLanguageRuntime.1.3.0\lib\net45\Microsoft.Dynamic.dll
95 | True
96 |
97 |
98 | ..\packages\DynamicLanguageRuntime.1.3.0\lib\net45\Microsoft.Scripting.dll
99 | True
100 |
101 |
102 | ..\packages\DynamicLanguageRuntime.1.3.0\lib\net45\Microsoft.Scripting.Metadata.dll
103 | True
104 |
105 |
106 | False
107 |
108 |
109 | False
110 |
111 |
112 | C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.CSharp.dll
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 | del "$(TargetDir)*.xml"
124 | mkdir "$(TargetDir)dependencies"
125 | move "$(TargetDir)*.dll" "$(TargetDir)dependencies"
126 | move "$(TargetDir)dependencies\PyPlugin.dll" "$(TargetDir)"
127 |
128 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Aa][Rr][Mm]/
27 | [Aa][Rr][Mm]64/
28 | bld/
29 | [Bb]in/
30 | [Oo]bj/
31 | [Ll]og/
32 |
33 | # Visual Studio 2015/2017 cache/options directory
34 | .vs/
35 | # Uncomment if you have tasks that create the project's static files in wwwroot
36 | #wwwroot/
37 |
38 | # Visual Studio 2017 auto generated files
39 | Generated\ Files/
40 |
41 | # MSTest test Results
42 | [Tt]est[Rr]esult*/
43 | [Bb]uild[Ll]og.*
44 |
45 | # NUnit
46 | *.VisualState.xml
47 | TestResult.xml
48 | nunit-*.xml
49 |
50 | # Build Results of an ATL Project
51 | [Dd]ebugPS/
52 | [Rr]eleasePS/
53 | dlldata.c
54 |
55 | # Benchmark Results
56 | BenchmarkDotNet.Artifacts/
57 |
58 | # .NET Core
59 | project.lock.json
60 | project.fragment.lock.json
61 | artifacts/
62 |
63 | # StyleCop
64 | StyleCopReport.xml
65 |
66 | # Files built by Visual Studio
67 | *_i.c
68 | *_p.c
69 | *_h.h
70 | *.ilk
71 | *.meta
72 | *.obj
73 | *.iobj
74 | *.pch
75 | *.pdb
76 | *.ipdb
77 | *.pgc
78 | *.pgd
79 | *.rsp
80 | *.sbr
81 | *.tlb
82 | *.tli
83 | *.tlh
84 | *.tmp
85 | *.tmp_proj
86 | *_wpftmp.csproj
87 | *.log
88 | *.vspscc
89 | *.vssscc
90 | .builds
91 | *.pidb
92 | *.svclog
93 | *.scc
94 |
95 | # Chutzpah Test files
96 | _Chutzpah*
97 |
98 | # Visual C++ cache files
99 | ipch/
100 | *.aps
101 | *.ncb
102 | *.opendb
103 | *.opensdf
104 | *.sdf
105 | *.cachefile
106 | *.VC.db
107 | *.VC.VC.opendb
108 |
109 | # Visual Studio profiler
110 | *.psess
111 | *.vsp
112 | *.vspx
113 | *.sap
114 |
115 | # Visual Studio Trace Files
116 | *.e2e
117 |
118 | # TFS 2012 Local Workspace
119 | $tf/
120 |
121 | # Guidance Automation Toolkit
122 | *.gpState
123 |
124 | # ReSharper is a .NET coding add-in
125 | _ReSharper*/
126 | *.[Rr]e[Ss]harper
127 | *.DotSettings.user
128 |
129 | # JustCode is a .NET coding add-in
130 | .JustCode
131 |
132 | # TeamCity is a build add-in
133 | _TeamCity*
134 |
135 | # DotCover is a Code Coverage Tool
136 | *.dotCover
137 |
138 | # AxoCover is a Code Coverage Tool
139 | .axoCover/*
140 | !.axoCover/settings.json
141 |
142 | # Visual Studio code coverage results
143 | *.coverage
144 | *.coveragexml
145 |
146 | # NCrunch
147 | _NCrunch_*
148 | .*crunch*.local.xml
149 | nCrunchTemp_*
150 |
151 | # MightyMoose
152 | *.mm.*
153 | AutoTest.Net/
154 |
155 | # Web workbench (sass)
156 | .sass-cache/
157 |
158 | # Installshield output folder
159 | [Ee]xpress/
160 |
161 | # DocProject is a documentation generator add-in
162 | DocProject/buildhelp/
163 | DocProject/Help/*.HxT
164 | DocProject/Help/*.HxC
165 | DocProject/Help/*.hhc
166 | DocProject/Help/*.hhk
167 | DocProject/Help/*.hhp
168 | DocProject/Help/Html2
169 | DocProject/Help/html
170 |
171 | # Click-Once directory
172 | publish/
173 |
174 | # Publish Web Output
175 | *.[Pp]ublish.xml
176 | *.azurePubxml
177 | # Note: Comment the next line if you want to checkin your web deploy settings,
178 | # but database connection strings (with potential passwords) will be unencrypted
179 | *.pubxml
180 | *.publishproj
181 |
182 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
183 | # checkin your Azure Web App publish settings, but sensitive information contained
184 | # in these scripts will be unencrypted
185 | PublishScripts/
186 |
187 | # NuGet Packages
188 | *.nupkg
189 | # NuGet Symbol Packages
190 | *.snupkg
191 | # The packages folder can be ignored because of Package Restore
192 | **/[Pp]ackages/*
193 | # except build/, which is used as an MSBuild target.
194 | !**/[Pp]ackages/build/
195 | # Uncomment if necessary however generally it will be regenerated when needed
196 | #!**/[Pp]ackages/repositories.config
197 | # NuGet v3's project.json files produces more ignorable files
198 | *.nuget.props
199 | *.nuget.targets
200 |
201 | # Microsoft Azure Build Output
202 | csx/
203 | *.build.csdef
204 |
205 | # Microsoft Azure Emulator
206 | ecf/
207 | rcf/
208 |
209 | # Windows Store app package directories and files
210 | AppPackages/
211 | BundleArtifacts/
212 | Package.StoreAssociation.xml
213 | _pkginfo.txt
214 | *.appx
215 | *.appxbundle
216 | *.appxupload
217 |
218 | # Visual Studio cache files
219 | # files ending in .cache can be ignored
220 | *.[Cc]ache
221 | # but keep track of directories ending in .cache
222 | !?*.[Cc]ache/
223 |
224 | # Others
225 | ClientBin/
226 | ~$*
227 | *~
228 | *.dbmdl
229 | *.dbproj.schemaview
230 | *.jfm
231 | *.pfx
232 | *.publishsettings
233 | orleans.codegen.cs
234 |
235 | # Including strong name files can present a security risk
236 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
237 | #*.snk
238 |
239 | # Since there are multiple workflows, uncomment next line to ignore bower_components
240 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
241 | #bower_components/
242 |
243 | # RIA/Silverlight projects
244 | Generated_Code/
245 |
246 | # Backup & report files from converting an old project file
247 | # to a newer Visual Studio version. Backup files are not needed,
248 | # because we have git ;-)
249 | _UpgradeReport_Files/
250 | Backup*/
251 | UpgradeLog*.XML
252 | UpgradeLog*.htm
253 | ServiceFabricBackup/
254 | *.rptproj.bak
255 |
256 | # SQL Server files
257 | *.mdf
258 | *.ldf
259 | *.ndf
260 |
261 | # Business Intelligence projects
262 | *.rdl.data
263 | *.bim.layout
264 | *.bim_*.settings
265 | *.rptproj.rsuser
266 | *- [Bb]ackup.rdl
267 | *- [Bb]ackup ([0-9]).rdl
268 | *- [Bb]ackup ([0-9][0-9]).rdl
269 |
270 | # Microsoft Fakes
271 | FakesAssemblies/
272 |
273 | # GhostDoc plugin setting file
274 | *.GhostDoc.xml
275 |
276 | # Node.js Tools for Visual Studio
277 | .ntvs_analysis.dat
278 | node_modules/
279 |
280 | # Visual Studio 6 build log
281 | *.plg
282 |
283 | # Visual Studio 6 workspace options file
284 | *.opt
285 |
286 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
287 | *.vbw
288 |
289 | # Visual Studio LightSwitch build output
290 | **/*.HTMLClient/GeneratedArtifacts
291 | **/*.DesktopClient/GeneratedArtifacts
292 | **/*.DesktopClient/ModelManifest.xml
293 | **/*.Server/GeneratedArtifacts
294 | **/*.Server/ModelManifest.xml
295 | _Pvt_Extensions
296 |
297 | # Paket dependency manager
298 | .paket/paket.exe
299 | paket-files/
300 |
301 | # FAKE - F# Make
302 | .fake/
303 |
304 | # CodeRush personal settings
305 | .cr/personal
306 |
307 | # Python Tools for Visual Studio (PTVS)
308 | __pycache__/
309 | *.pyc
310 |
311 | # Cake - Uncomment if you are using it
312 | # tools/**
313 | # !tools/packages.config
314 |
315 | # Tabs Studio
316 | *.tss
317 |
318 | # Telerik's JustMock configuration file
319 | *.jmconfig
320 |
321 | # BizTalk build output
322 | *.btp.cs
323 | *.btm.cs
324 | *.odx.cs
325 | *.xsd.cs
326 |
327 | # OpenCover UI analysis results
328 | OpenCover/
329 |
330 | # Azure Stream Analytics local run output
331 | ASALocalRun/
332 |
333 | # MSBuild Binary and Structured Log
334 | *.binlog
335 |
336 | # NVidia Nsight GPU debugger configuration file
337 | *.nvuser
338 |
339 | # MFractors (Xamarin productivity tool) working folder
340 | .mfractor/
341 |
342 | # Local History for Visual Studio
343 | .localhistory/
344 |
345 | # BeatPulse healthcheck temp database
346 | healthchecksdb
347 |
348 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
349 | MigrationBackup/
350 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Copyright (C) 2020 TrickyBestia
3 |
4 | Attribution-NonCommercial-ShareAlike 4.0 International
5 |
6 | =======================================================================
7 |
8 | Creative Commons Corporation ("Creative Commons") is not a law firm and
9 | does not provide legal services or legal advice. Distribution of
10 | Creative Commons public licenses does not create a lawyer-client or
11 | other relationship. Creative Commons makes its licenses and related
12 | information available on an "as-is" basis. Creative Commons gives no
13 | warranties regarding its licenses, any material licensed under their
14 | terms and conditions, or any related information. Creative Commons
15 | disclaims all liability for damages resulting from their use to the
16 | fullest extent possible.
17 |
18 | Using Creative Commons Public Licenses
19 |
20 | Creative Commons public licenses provide a standard set of terms and
21 | conditions that creators and other rights holders may use to share
22 | original works of authorship and other material subject to copyright
23 | and certain other rights specified in the public license below. The
24 | following considerations are for informational purposes only, are not
25 | exhaustive, and do not form part of our licenses.
26 |
27 | Considerations for licensors: Our public licenses are
28 | intended for use by those authorized to give the public
29 | permission to use material in ways otherwise restricted by
30 | copyright and certain other rights. Our licenses are
31 | irrevocable. Licensors should read and understand the terms
32 | and conditions of the license they choose before applying it.
33 | Licensors should also secure all rights necessary before
34 | applying our licenses so that the public can reuse the
35 | material as expected. Licensors should clearly mark any
36 | material not subject to the license. This includes other CC-
37 | licensed material, or material used under an exception or
38 | limitation to copyright. More considerations for licensors:
39 | wiki.creativecommons.org/Considerations_for_licensors
40 |
41 | Considerations for the public: By using one of our public
42 | licenses, a licensor grants the public permission to use the
43 | licensed material under specified terms and conditions. If
44 | the licensor's permission is not necessary for any reason--for
45 | example, because of any applicable exception or limitation to
46 | copyright--then that use is not regulated by the license. Our
47 | licenses grant only permissions under copyright and certain
48 | other rights that a licensor has authority to grant. Use of
49 | the licensed material may still be restricted for other
50 | reasons, including because others have copyright or other
51 | rights in the material. A licensor may make special requests,
52 | such as asking that all changes be marked or described.
53 | Although not required by our licenses, you are encouraged to
54 | respect those requests where reasonable. More considerations
55 | for the public:
56 | wiki.creativecommons.org/Considerations_for_licensees
57 |
58 | =======================================================================
59 |
60 | Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
61 | Public License
62 |
63 | By exercising the Licensed Rights (defined below), You accept and agree
64 | to be bound by the terms and conditions of this Creative Commons
65 | Attribution-NonCommercial-ShareAlike 4.0 International Public License
66 | ("Public License"). To the extent this Public License may be
67 | interpreted as a contract, You are granted the Licensed Rights in
68 | consideration of Your acceptance of these terms and conditions, and the
69 | Licensor grants You such rights in consideration of benefits the
70 | Licensor receives from making the Licensed Material available under
71 | these terms and conditions.
72 |
73 |
74 | Section 1 -- Definitions.
75 |
76 | a. Adapted Material means material subject to Copyright and Similar
77 | Rights that is derived from or based upon the Licensed Material
78 | and in which the Licensed Material is translated, altered,
79 | arranged, transformed, or otherwise modified in a manner requiring
80 | permission under the Copyright and Similar Rights held by the
81 | Licensor. For purposes of this Public License, where the Licensed
82 | Material is a musical work, performance, or sound recording,
83 | Adapted Material is always produced where the Licensed Material is
84 | synched in timed relation with a moving image.
85 |
86 | b. Adapter's License means the license You apply to Your Copyright
87 | and Similar Rights in Your contributions to Adapted Material in
88 | accordance with the terms and conditions of this Public License.
89 |
90 | c. BY-NC-SA Compatible License means a license listed at
91 | creativecommons.org/compatiblelicenses, approved by Creative
92 | Commons as essentially the equivalent of this Public License.
93 |
94 | d. Copyright and Similar Rights means copyright and/or similar rights
95 | closely related to copyright including, without limitation,
96 | performance, broadcast, sound recording, and Sui Generis Database
97 | Rights, without regard to how the rights are labeled or
98 | categorized. For purposes of this Public License, the rights
99 | specified in Section 2(b)(1)-(2) are not Copyright and Similar
100 | Rights.
101 |
102 | e. Effective Technological Measures means those measures that, in the
103 | absence of proper authority, may not be circumvented under laws
104 | fulfilling obligations under Article 11 of the WIPO Copyright
105 | Treaty adopted on December 20, 1996, and/or similar international
106 | agreements.
107 |
108 | f. Exceptions and Limitations means fair use, fair dealing, and/or
109 | any other exception or limitation to Copyright and Similar Rights
110 | that applies to Your use of the Licensed Material.
111 |
112 | g. License Elements means the license attributes listed in the name
113 | of a Creative Commons Public License. The License Elements of this
114 | Public License are Attribution, NonCommercial, and ShareAlike.
115 |
116 | h. Licensed Material means the artistic or literary work, database,
117 | or other material to which the Licensor applied this Public
118 | License.
119 |
120 | i. Licensed Rights means the rights granted to You subject to the
121 | terms and conditions of this Public License, which are limited to
122 | all Copyright and Similar Rights that apply to Your use of the
123 | Licensed Material and that the Licensor has authority to license.
124 |
125 | j. Licensor means the individual(s) or entity(ies) granting rights
126 | under this Public License.
127 |
128 | k. NonCommercial means not primarily intended for or directed towards
129 | commercial advantage or monetary compensation. For purposes of
130 | this Public License, the exchange of the Licensed Material for
131 | other material subject to Copyright and Similar Rights by digital
132 | file-sharing or similar means is NonCommercial provided there is
133 | no payment of monetary compensation in connection with the
134 | exchange.
135 |
136 | l. Share means to provide material to the public by any means or
137 | process that requires permission under the Licensed Rights, such
138 | as reproduction, public display, public performance, distribution,
139 | dissemination, communication, or importation, and to make material
140 | available to the public including in ways that members of the
141 | public may access the material from a place and at a time
142 | individually chosen by them.
143 |
144 | m. Sui Generis Database Rights means rights other than copyright
145 | resulting from Directive 96/9/EC of the European Parliament and of
146 | the Council of 11 March 1996 on the legal protection of databases,
147 | as amended and/or succeeded, as well as other essentially
148 | equivalent rights anywhere in the world.
149 |
150 | n. You means the individual or entity exercising the Licensed Rights
151 | under this Public License. Your has a corresponding meaning.
152 |
153 |
154 | Section 2 -- Scope.
155 |
156 | a. License grant.
157 |
158 | 1. Subject to the terms and conditions of this Public License,
159 | the Licensor hereby grants You a worldwide, royalty-free,
160 | non-sublicensable, non-exclusive, irrevocable license to
161 | exercise the Licensed Rights in the Licensed Material to:
162 |
163 | a. reproduce and Share the Licensed Material, in whole or
164 | in part, for NonCommercial purposes only; and
165 |
166 | b. produce, reproduce, and Share Adapted Material for
167 | NonCommercial purposes only.
168 |
169 | 2. Exceptions and Limitations. For the avoidance of doubt, where
170 | Exceptions and Limitations apply to Your use, this Public
171 | License does not apply, and You do not need to comply with
172 | its terms and conditions.
173 |
174 | 3. Term. The term of this Public License is specified in Section
175 | 6(a).
176 |
177 | 4. Media and formats; technical modifications allowed. The
178 | Licensor authorizes You to exercise the Licensed Rights in
179 | all media and formats whether now known or hereafter created,
180 | and to make technical modifications necessary to do so. The
181 | Licensor waives and/or agrees not to assert any right or
182 | authority to forbid You from making technical modifications
183 | necessary to exercise the Licensed Rights, including
184 | technical modifications necessary to circumvent Effective
185 | Technological Measures. For purposes of this Public License,
186 | simply making modifications authorized by this Section 2(a)
187 | (4) never produces Adapted Material.
188 |
189 | 5. Downstream recipients.
190 |
191 | a. Offer from the Licensor -- Licensed Material. Every
192 | recipient of the Licensed Material automatically
193 | receives an offer from the Licensor to exercise the
194 | Licensed Rights under the terms and conditions of this
195 | Public License.
196 |
197 | b. Additional offer from the Licensor -- Adapted Material.
198 | Every recipient of Adapted Material from You
199 | automatically receives an offer from the Licensor to
200 | exercise the Licensed Rights in the Adapted Material
201 | under the conditions of the Adapter's License You apply.
202 |
203 | c. No downstream restrictions. You may not offer or impose
204 | any additional or different terms or conditions on, or
205 | apply any Effective Technological Measures to, the
206 | Licensed Material if doing so restricts exercise of the
207 | Licensed Rights by any recipient of the Licensed
208 | Material.
209 |
210 | 6. No endorsement. Nothing in this Public License constitutes or
211 | may be construed as permission to assert or imply that You
212 | are, or that Your use of the Licensed Material is, connected
213 | with, or sponsored, endorsed, or granted official status by,
214 | the Licensor or others designated to receive attribution as
215 | provided in Section 3(a)(1)(A)(i).
216 |
217 | b. Other rights.
218 |
219 | 1. Moral rights, such as the right of integrity, are not
220 | licensed under this Public License, nor are publicity,
221 | privacy, and/or other similar personality rights; however, to
222 | the extent possible, the Licensor waives and/or agrees not to
223 | assert any such rights held by the Licensor to the limited
224 | extent necessary to allow You to exercise the Licensed
225 | Rights, but not otherwise.
226 |
227 | 2. Patent and trademark rights are not licensed under this
228 | Public License.
229 |
230 | 3. To the extent possible, the Licensor waives any right to
231 | collect royalties from You for the exercise of the Licensed
232 | Rights, whether directly or through a collecting society
233 | under any voluntary or waivable statutory or compulsory
234 | licensing scheme. In all other cases the Licensor expressly
235 | reserves any right to collect such royalties, including when
236 | the Licensed Material is used other than for NonCommercial
237 | purposes.
238 |
239 |
240 | Section 3 -- License Conditions.
241 |
242 | Your exercise of the Licensed Rights is expressly made subject to the
243 | following conditions.
244 |
245 | a. Attribution.
246 |
247 | 1. If You Share the Licensed Material (including in modified
248 | form), You must:
249 |
250 | a. retain the following if it is supplied by the Licensor
251 | with the Licensed Material:
252 |
253 | i. identification of the creator(s) of the Licensed
254 | Material and any others designated to receive
255 | attribution, in any reasonable manner requested by
256 | the Licensor (including by pseudonym if
257 | designated);
258 |
259 | ii. a copyright notice;
260 |
261 | iii. a notice that refers to this Public License;
262 |
263 | iv. a notice that refers to the disclaimer of
264 | warranties;
265 |
266 | v. a URI or hyperlink to the Licensed Material to the
267 | extent reasonably practicable;
268 |
269 | b. indicate if You modified the Licensed Material and
270 | retain an indication of any previous modifications; and
271 |
272 | c. indicate the Licensed Material is licensed under this
273 | Public License, and include the text of, or the URI or
274 | hyperlink to, this Public License.
275 |
276 | 2. You may satisfy the conditions in Section 3(a)(1) in any
277 | reasonable manner based on the medium, means, and context in
278 | which You Share the Licensed Material. For example, it may be
279 | reasonable to satisfy the conditions by providing a URI or
280 | hyperlink to a resource that includes the required
281 | information.
282 | 3. If requested by the Licensor, You must remove any of the
283 | information required by Section 3(a)(1)(A) to the extent
284 | reasonably practicable.
285 |
286 | b. ShareAlike.
287 |
288 | In addition to the conditions in Section 3(a), if You Share
289 | Adapted Material You produce, the following conditions also apply.
290 |
291 | 1. The Adapter's License You apply must be a Creative Commons
292 | license with the same License Elements, this version or
293 | later, or a BY-NC-SA Compatible License.
294 |
295 | 2. You must include the text of, or the URI or hyperlink to, the
296 | Adapter's License You apply. You may satisfy this condition
297 | in any reasonable manner based on the medium, means, and
298 | context in which You Share Adapted Material.
299 |
300 | 3. You may not offer or impose any additional or different terms
301 | or conditions on, or apply any Effective Technological
302 | Measures to, Adapted Material that restrict exercise of the
303 | rights granted under the Adapter's License You apply.
304 |
305 |
306 | Section 4 -- Sui Generis Database Rights.
307 |
308 | Where the Licensed Rights include Sui Generis Database Rights that
309 | apply to Your use of the Licensed Material:
310 |
311 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right
312 | to extract, reuse, reproduce, and Share all or a substantial
313 | portion of the contents of the database for NonCommercial purposes
314 | only;
315 |
316 | b. if You include all or a substantial portion of the database
317 | contents in a database in which You have Sui Generis Database
318 | Rights, then the database in which You have Sui Generis Database
319 | Rights (but not its individual contents) is Adapted Material,
320 | including for purposes of Section 3(b); and
321 |
322 | c. You must comply with the conditions in Section 3(a) if You Share
323 | all or a substantial portion of the contents of the database.
324 |
325 | For the avoidance of doubt, this Section 4 supplements and does not
326 | replace Your obligations under this Public License where the Licensed
327 | Rights include other Copyright and Similar Rights.
328 |
329 |
330 | Section 5 -- Disclaimer of Warranties and Limitation of Liability.
331 |
332 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
333 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
334 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
335 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
336 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
337 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
338 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
339 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
340 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
341 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
342 |
343 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
344 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
345 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
346 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
347 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
348 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
349 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
350 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
351 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
352 |
353 | c. The disclaimer of warranties and limitation of liability provided
354 | above shall be interpreted in a manner that, to the extent
355 | possible, most closely approximates an absolute disclaimer and
356 | waiver of all liability.
357 |
358 |
359 | Section 6 -- Term and Termination.
360 |
361 | a. This Public License applies for the term of the Copyright and
362 | Similar Rights licensed here. However, if You fail to comply with
363 | this Public License, then Your rights under this Public License
364 | terminate automatically.
365 |
366 | b. Where Your right to use the Licensed Material has terminated under
367 | Section 6(a), it reinstates:
368 |
369 | 1. automatically as of the date the violation is cured, provided
370 | it is cured within 30 days of Your discovery of the
371 | violation; or
372 |
373 | 2. upon express reinstatement by the Licensor.
374 |
375 | For the avoidance of doubt, this Section 6(b) does not affect any
376 | right the Licensor may have to seek remedies for Your violations
377 | of this Public License.
378 |
379 | c. For the avoidance of doubt, the Licensor may also offer the
380 | Licensed Material under separate terms or conditions or stop
381 | distributing the Licensed Material at any time; however, doing so
382 | will not terminate this Public License.
383 |
384 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
385 | License.
386 |
387 |
388 | Section 7 -- Other Terms and Conditions.
389 |
390 | a. The Licensor shall not be bound by any additional or different
391 | terms or conditions communicated by You unless expressly agreed.
392 |
393 | b. Any arrangements, understandings, or agreements regarding the
394 | Licensed Material not stated herein are separate from and
395 | independent of the terms and conditions of this Public License.
396 |
397 |
398 | Section 8 -- Interpretation.
399 |
400 | a. For the avoidance of doubt, this Public License does not, and
401 | shall not be interpreted to, reduce, limit, restrict, or impose
402 | conditions on any use of the Licensed Material that could lawfully
403 | be made without permission under this Public License.
404 |
405 | b. To the extent possible, if any provision of this Public License is
406 | deemed unenforceable, it shall be automatically reformed to the
407 | minimum extent necessary to make it enforceable. If the provision
408 | cannot be reformed, it shall be severed from this Public License
409 | without affecting the enforceability of the remaining terms and
410 | conditions.
411 |
412 | c. No term or condition of this Public License will be waived and no
413 | failure to comply consented to unless expressly agreed to by the
414 | Licensor.
415 |
416 | d. Nothing in this Public License constitutes or may be interpreted
417 | as a limitation upon, or waiver of, any privileges and immunities
418 | that apply to the Licensor or You, including from the legal
419 | processes of any jurisdiction or authority.
420 |
421 | =======================================================================
422 |
423 | Creative Commons is not a party to its public
424 | licenses. Notwithstanding, Creative Commons may elect to apply one of
425 | its public licenses to material it publishes and in those instances
426 | will be considered the “Licensor.” The text of the Creative Commons
427 | public licenses is dedicated to the public domain under the CC0 Public
428 | Domain Dedication. Except for the limited purpose of indicating that
429 | material is shared under a Creative Commons public license or as
430 | otherwise permitted by the Creative Commons policies published at
431 | creativecommons.org/policies, Creative Commons does not authorize the
432 | use of the trademark "Creative Commons" or any other trademark or logo
433 | of Creative Commons without its prior written consent including,
434 | without limitation, in connection with any unauthorized modifications
435 | to any of its public licenses or any other arrangements,
436 | understandings, or agreements concerning use of licensed material. For
437 | the avoidance of doubt, this paragraph does not form part of the
438 | public licenses.
439 |
440 | Creative Commons may be contacted at creativecommons.org.
441 |
--------------------------------------------------------------------------------