-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from takunology/develop
Release 1.0.0
- Loading branch information
Showing
143 changed files
with
8,549 additions
and
26 deletions.
There are no files selected for viewing
Binary file modified
BIN
+32 KB
(120%)
MinecraftConnection/.vs/MinecraftConnection/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+24.8 KB
MinecraftConnection/.vs/MinecraftConnection/v16/TestStore/0/000.testlog
Binary file not shown.
Binary file added
BIN
+24 Bytes
MinecraftConnection/.vs/MinecraftConnection/v16/TestStore/0/testlog.manifest
Binary file not shown.
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
Binary file modified
BIN
+0 Bytes
(100%)
MinecraftConnection/ExampleApp/bin/Release/netcoreapp3.1/ExampleApp.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
MinecraftConnection/ExampleApp/bin/Release/netcoreapp3.1/ExampleApp.pdb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
MinecraftConnection/ExampleApp/bin/Release/netcoreapp3.1/MinecraftConnection.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
MinecraftConnection/ExampleApp/bin/Release/netcoreapp3.1/MinecraftConnection.pdb
Binary file not shown.
Binary file modified
BIN
-546 Bytes
(99%)
...Connection/ExampleApp/obj/Release/netcoreapp3.1/ExampleApp.csproj.AssemblyReference.cache
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
MinecraftConnection/ExampleApp/obj/Release/netcoreapp3.1/ExampleApp.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
MinecraftConnection/ExampleApp/obj/Release/netcoreapp3.1/ExampleApp.pdb
Binary file not shown.
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
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
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
Binary file modified
BIN
+220 Bytes
(100%)
MinecraftConnection/MinecraftConnection/bin/Release/MinecraftConnection.1.0.0-beta2.nupkg
Binary file not shown.
Binary file added
BIN
+31.5 KB
MinecraftConnection/MinecraftConnection/bin/Release/MinecraftConnection.1.0.0.nupkg
Binary file not shown.
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
Binary file modified
BIN
+512 Bytes
(100%)
MinecraftConnection/MinecraftConnection/bin/Release/netstandard2.0/MinecraftConnection.dll
Binary file not shown.
Binary file modified
BIN
+64 Bytes
(100%)
MinecraftConnection/MinecraftConnection/bin/Release/netstandard2.0/MinecraftConnection.pdb
Binary file not shown.
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
27 changes: 27 additions & 0 deletions
27
MinecraftConnection/MinecraftConnection/obj/Release/MinecraftConnection.1.0.0.nuspec
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>MinecraftConnection</id> | ||
<version>1.0.0</version> | ||
<authors>Takumi Okawa (Takunology)</authors> | ||
<license type="expression">MIT</license> | ||
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl> | ||
<icon>MCLogo.png</icon> | ||
<projectUrl>https://www.mcwithcode.com/</projectUrl> | ||
<description>MinecraftConnection is a library for sending commands via RCON using C# to help you learn and automate your programming. It can be run on a vanilla server as well as a Spigot server, including plugins. Before running the program, you need to start a Minecraft server that allows RCON connections.</description> | ||
<releaseNotes>- Add TimeSet Method | ||
- Disable "stop" command | ||
|
||
The stop command is disabled due to the risk of stopping the server by RCON remote control. Executing the stop command in SendCommand method will raise an exception.</releaseNotes> | ||
<copyright>Copyright (c) 2021 Takumi Okawa (Takunology)</copyright> | ||
<tags>Minecraft</tags> | ||
<repository type="git" url="https://github.com/takunology/MinecraftConnection" /> | ||
<dependencies> | ||
<group targetFramework=".NETStandard2.0" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="D:\GitHub\MinecraftConnection\MinecraftConnection\MinecraftConnection\bin\Release\netstandard2.0\MinecraftConnection.dll" target="lib\netstandard2.0\MinecraftConnection.dll" /> | ||
<file src="D:\GitHub\MinecraftConnection\MinecraftConnection\MinecraftConnection\MCLogo.png" target="MCLogo.png" /> | ||
</files> | ||
</package> |
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
2 changes: 1 addition & 1 deletion
2
...necraftConnection/obj/Release/netstandard2.0/MinecraftConnection.AssemblyInfoInputs.cache
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7069fcd69ea9d188fce8e6196ceeaca374dd3ba9 | ||
9067c9c0071058e3eb7a6ddc8976bcddbd76e2e9 |
1 change: 0 additions & 1 deletion
1
...raftConnection/obj/Release/netstandard2.0/MinecraftConnection.csproj.FileListAbsolute.txt
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
Binary file modified
BIN
+512 Bytes
(100%)
MinecraftConnection/MinecraftConnection/obj/Release/netstandard2.0/MinecraftConnection.dll
Binary file not shown.
Binary file modified
BIN
+64 Bytes
(100%)
MinecraftConnection/MinecraftConnection/obj/Release/netstandard2.0/MinecraftConnection.pdb
Binary file not shown.
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
2 changes: 1 addition & 1 deletion
2
MinecraftConnection/MinecraftConnection/obj/project.nuget.cache
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="2.2.3" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="2.2.3" /> | ||
<PackageReference Include="coverlet.collector" Version="3.0.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\MinecraftConnection\MinecraftConnection.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using MinecraftConnection; | ||
using MinecraftConnection.Items; | ||
|
||
namespace TestProject | ||
{ | ||
[TestClass] | ||
public class UnitTest1 | ||
{ | ||
static string address = "127.0.0.1"; | ||
static ushort port = 25575; | ||
static string pass = "minecraft"; | ||
static MinecraftCommands commands = new MinecraftCommands(address, port, pass); | ||
|
||
[TestMethod] | ||
public void CommandTest() | ||
{ | ||
commands.TimeSet(MinecraftTime.TimeSet.MIDNIGHT); | ||
} | ||
|
||
[TestMethod] | ||
public void FireworksTest() | ||
{ | ||
// Azure—p‚ÌÀ•W | ||
/*int x = -52 - 40; | ||
int y = 68; | ||
int z = 92;*/ | ||
|
||
// Local—p‚ÌÀ•W | ||
int x = -961 + 20; | ||
int y = 70; | ||
int z = -798; | ||
|
||
/*while (true) | ||
{ | ||
Kiku(x, y, z, 30); | ||
commands.Wait(2000); | ||
}*/ | ||
Kiku(x, y, z, 30); | ||
|
||
} | ||
|
||
public void Kiku(int x, int y, int z, int time) | ||
{ | ||
Fireworks fireworksIn = new Fireworks(time, 2, FireworksShapes.SmallBall, false, true, FireworksColors.RED, FireworksColors.RED); | ||
Fireworks fireworksOut = new Fireworks(time, 2, FireworksShapes.LargeBall, false, true, FireworksColors.ORANGE, FireworksColors.ORANGE); | ||
commands.SetOffFireworks(x, y, z, fireworksOut); | ||
commands.SetOffFireworks(x, y, z, fireworksIn); | ||
commands.Wait(1000); | ||
|
||
fireworksIn = new Fireworks(time, 2, FireworksShapes.SmallBall, false, true, FireworksColors.GREEN, FireworksColors.GREEN); | ||
fireworksOut = new Fireworks(time, 2, FireworksShapes.LargeBall, false, true, FireworksColors.LIME, FireworksColors.LIME); | ||
commands.SetOffFireworks(x, y, z + 14, fireworksOut); | ||
commands.SetOffFireworks(x, y, z + 14, fireworksIn); | ||
commands.Wait(1000); | ||
|
||
fireworksIn = new Fireworks(time, 2, FireworksShapes.SmallBall, false, true, FireworksColors.BLUE, FireworksColors.BLUE); | ||
fireworksOut = new Fireworks(time, 2, FireworksShapes.LargeBall, false, true, FireworksColors.LIGHTBLUE, FireworksColors.LIGHTBLUE); | ||
commands.SetOffFireworks(x, y, z + 28, fireworksOut); | ||
commands.SetOffFireworks(x, y, z + 28, fireworksIn); | ||
} | ||
} | ||
} |
Binary file added
BIN
+1.16 KB
MinecraftConnection/TestProject/bin/Release/net5.0/CoverletSourceRootsMapping
Binary file not shown.
Binary file added
BIN
+22.4 KB
...raftConnection/TestProject/bin/Release/net5.0/Microsoft.TestPlatform.AdapterUtilities.dll
Binary file not shown.
Binary file added
BIN
+92.4 KB
...nnection/TestProject/bin/Release/net5.0/Microsoft.TestPlatform.CommunicationUtilities.dll
Binary file not shown.
Binary file added
BIN
+46.9 KB
MinecraftConnection/TestProject/bin/Release/net5.0/Microsoft.TestPlatform.CoreUtilities.dll
Binary file not shown.
Binary file added
BIN
+175 KB
...craftConnection/TestProject/bin/Release/net5.0/Microsoft.TestPlatform.CrossPlatEngine.dll
Binary file not shown.
Binary file added
BIN
+30.9 KB
...Connection/TestProject/bin/Release/net5.0/Microsoft.TestPlatform.PlatformAbstractions.dll
Binary file not shown.
Binary file added
BIN
+49.4 KB
MinecraftConnection/TestProject/bin/Release/net5.0/Microsoft.TestPlatform.Utilities.dll
Binary file not shown.
Binary file added
BIN
+15.9 KB
...aftConnection/TestProject/bin/Release/net5.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll
Binary file not shown.
Binary file added
BIN
+160 KB
...tConnection/TestProject/bin/Release/net5.0/Microsoft.VisualStudio.TestPlatform.Common.dll
Binary file not shown.
Binary file added
BIN
+138 KB
...TestProject/bin/Release/net5.0/Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll
Binary file not shown.
Binary file added
BIN
+17.9 KB
...e/net5.0/Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll
Binary file not shown.
Binary file added
BIN
+58.9 KB
...bin/Release/net5.0/Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll
Binary file not shown.
Binary file added
BIN
+161 KB
...ection/TestProject/bin/Release/net5.0/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll
Binary file not shown.
Binary file added
BIN
+16.9 KB
...oject/bin/Release/net5.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll
Binary file not shown.
Binary file added
BIN
+68.4 KB
...tion/TestProject/bin/Release/net5.0/Microsoft.VisualStudio.TestPlatform.TestFramework.dll
Binary file not shown.
Binary file added
BIN
+54.5 KB
MinecraftConnection/TestProject/bin/Release/net5.0/MinecraftConnection.dll
Binary file not shown.
Binary file added
BIN
+17.7 KB
MinecraftConnection/TestProject/bin/Release/net5.0/MinecraftConnection.pdb
Binary file not shown.
Binary file added
BIN
+458 KB
MinecraftConnection/TestProject/bin/Release/net5.0/Newtonsoft.Json.dll
Binary file not shown.
Binary file added
BIN
+106 KB
MinecraftConnection/TestProject/bin/Release/net5.0/NuGet.Frameworks.dll
Binary file not shown.
Oops, something went wrong.