fix: add Main to manifest

Signed-off-by: ItsNeil17 <neil@willofsteel.me>
This commit is contained in:
ItsNeil17
2026-01-13 23:26:45 +05:30
parent d39ec0203e
commit b76cce7f98
7 changed files with 73 additions and 25 deletions

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Ask2AgentMigrationStateService">
<option name="migrationStatus" value="COMPLETED" />
</component>
</project>

7
.idea/encodings.xml generated Normal file
View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>

9
.idea/misc.xml generated
View File

@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" default="true"> <component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_25" default="true" project-jdk-name="25" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
</project> </project>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

55
.idea/workspace.xml generated
View File

@@ -4,7 +4,12 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="47969b88-c695-4f14-9163-36984ef6c371" name="Changes" comment="" /> <list default="true" id="47969b88-c695-4f14-9163-36984ef6c371" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/dev/hytalemodding/ExamplePlugin.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/dev/hytalemodding/ExamplePlugin.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/manifest.json" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/manifest.json" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -33,8 +38,11 @@
</component> </component>
<component name="PropertiesComponent">{ <component name="PropertiesComponent">{
&quot;keyToString&quot;: { &quot;keyToString&quot;: {
&quot;Maven.ExamplePlugin [package].executor&quot;: &quot;Run&quot;,
&quot;Maven.ExamplePlugin.executor&quot;: &quot;Run&quot;,
&quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;, &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;, &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252&quot;: &quot;true&quot;,
&quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;, &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
&quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;, &quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;main&quot;, &quot;git-widget-placeholder&quot;: &quot;main&quot;,
@@ -59,6 +67,36 @@
<recent name="$PROJECT_DIR$/src" /> <recent name="$PROJECT_DIR$/src" />
</key> </key>
</component> </component>
<component name="RunManager">
<configuration name="ExamplePlugin" type="MavenRunConfiguration" factoryName="Maven" nameIsGenerated="true">
<MavenSettings>
<option name="myGeneralSettings" />
<option name="myRunnerSettings" />
<option name="myRunnerParameters">
<MavenRunnerParameters>
<option name="cmdOptions" />
<option name="profiles">
<set />
</option>
<option name="goals">
<list />
</option>
<option name="multimoduleDir" />
<option name="pomFileName" />
<option name="profilesMap">
<map />
</option>
<option name="projectsCmdOptionValues">
<list />
</option>
<option name="resolveToWorkspace" value="false" />
<option name="workingDirPath" value="$PROJECT_DIR$" />
</MavenRunnerParameters>
</option>
</MavenSettings>
<method v="2" />
</configuration>
</component>
<component name="SharedIndexes"> <component name="SharedIndexes">
<attachedChunks> <attachedChunks>
<set> <set>
@@ -77,23 +115,16 @@
<workItem from="1768315350302" duration="701000" /> <workItem from="1768315350302" duration="701000" />
<workItem from="1768316395110" duration="1174000" /> <workItem from="1768316395110" duration="1174000" />
<workItem from="1768319287152" duration="1109000" /> <workItem from="1768319287152" duration="1109000" />
<workItem from="1768321268964" duration="2350000" />
<workItem from="1768324308233" duration="1197000" />
<workItem from="1768325514193" duration="799000" />
<workItem from="1768326782596" duration="206000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" /> <option name="version" value="3" />
</component> </component>
<component name="XDebuggerManager">
<breakpoint-manager>
<breakpoints>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/main/java/dev/hytalemodding/ExamplePlugin.java</url>
<line>13</line>
<option name="timeStamp" value="1" />
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
<component name="github-copilot-workspace"> <component name="github-copilot-workspace">
<instructionFileLocations> <instructionFileLocations>
<option value=".github/instructions" /> <option value=".github/instructions" />

View File

@@ -19,14 +19,4 @@ public class ExamplePlugin extends JavaPlugin {
this.getCommandRegistry().registerCommand(new ExampleCommand("example", "An example command")); this.getCommandRegistry().registerCommand(new ExampleCommand("example", "An example command"));
this.getEventRegistry().registerGlobal(PlayerReadyEvent.class, ExampleEvent::onPlayerReady); this.getEventRegistry().registerGlobal(PlayerReadyEvent.class, ExampleEvent::onPlayerReady);
} }
@Override
protected void start() {
super.start();
}
@Override
protected void shutdown() {
super.shutdown();
}
} }

View File

@@ -1,6 +1,6 @@
{ {
"Group": "dev.hytalemodding", "Group": "dev.hytalemodding",
"Name": "YourPluginName", "Name": "ExamplePlugin",
"Version": "1.0.0", "Version": "1.0.0",
"Description": "Description of your plugin", "Description": "Description of your plugin",
"Authors": [ "Authors": [
@@ -14,5 +14,6 @@
"ServerVersion": "*", "ServerVersion": "*",
"Dependencies": {}, "Dependencies": {},
"OptionalDependencies": {}, "OptionalDependencies": {},
"DisabledByDefault": false "DisabledByDefault": false,
"Main": "dev.hytalemodding.ExamplePlugin"
} }