init
This commit is contained in:
		
							parent
							
								
									88c51ef7f7
								
							
						
					
					
						commit
						6d50234fc1
					
				
							
								
								
									
										3
									
								
								.idea/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.idea/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| # Default ignored files | ||||
| /shelf/ | ||||
| /workspace.xml | ||||
							
								
								
									
										16
									
								
								.idea/compiler.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								.idea/compiler.xml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="CompilerConfiguration"> | ||||
|     <annotationProcessing> | ||||
|       <profile name="Maven default annotation processors profile" enabled="true"> | ||||
|         <sourceOutputDir name="target/generated-sources/annotations" /> | ||||
|         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> | ||||
|         <outputRelativeToContentRoot value="true" /> | ||||
|         <module name="example" /> | ||||
|       </profile> | ||||
|     </annotationProcessing> | ||||
|     <bytecodeTargetLevel> | ||||
|       <module name="example" target="1.8" /> | ||||
|     </bytecodeTargetLevel> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										7
									
								
								.idea/encodings.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.idea/encodings.xml
									
									
									
									
									
										Normal 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> | ||||
							
								
								
									
										30
									
								
								.idea/jarRepositories.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.idea/jarRepositories.xml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="RemoteRepositoriesConfiguration"> | ||||
|     <remote-repository> | ||||
|       <option name="id" value="central" /> | ||||
|       <option name="name" value="Central Repository" /> | ||||
|       <option name="url" value="https://repo.maven.apache.org/maven2" /> | ||||
|     </remote-repository> | ||||
|     <remote-repository> | ||||
|       <option name="id" value="spigot-repo" /> | ||||
|       <option name="name" value="spigot-repo" /> | ||||
|       <option name="url" value="https://hub.spigotmc.org/nexus/content/repositories/snapshots/" /> | ||||
|     </remote-repository> | ||||
|     <remote-repository> | ||||
|       <option name="id" value="recoreh-repo" /> | ||||
|       <option name="name" value="recoreh-repo" /> | ||||
|       <option name="url" value="https://git.recorehosting.com/maven/snapshots/" /> | ||||
|     </remote-repository> | ||||
|     <remote-repository> | ||||
|       <option name="id" value="central" /> | ||||
|       <option name="name" value="Maven Central repository" /> | ||||
|       <option name="url" value="https://repo1.maven.org/maven2" /> | ||||
|     </remote-repository> | ||||
|     <remote-repository> | ||||
|       <option name="id" value="jboss.community" /> | ||||
|       <option name="name" value="JBoss Community repository" /> | ||||
|       <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> | ||||
|     </remote-repository> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										11
									
								
								.idea/misc.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.idea/misc.xml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="MavenProjectsManager"> | ||||
|     <option name="originalFiles"> | ||||
|       <list> | ||||
|         <option value="$PROJECT_DIR$/pom.xml" /> | ||||
|       </list> | ||||
|     </option> | ||||
|   </component> | ||||
|   <component name="ProjectRootManager" version="2" languageLevel="JDK_16" default="true" project-jdk-name="openjdk-16" project-jdk-type="JavaSDK" /> | ||||
| </project> | ||||
							
								
								
									
										8
									
								
								.idea/modules.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.idea/modules.xml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="ProjectModuleManager"> | ||||
|     <modules> | ||||
|       <module fileurl="file://$PROJECT_DIR$/example.iml" filepath="$PROJECT_DIR$/example.iml" /> | ||||
|     </modules> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										124
									
								
								.idea/uiDesigner.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										124
									
								
								.idea/uiDesigner.xml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,124 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="Palette2"> | ||||
|     <group name="Swing"> | ||||
|       <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" /> | ||||
|       </item> | ||||
|       <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" /> | ||||
|         <initial-values> | ||||
|           <property name="text" value="Button" /> | ||||
|         </initial-values> | ||||
|       </item> | ||||
|       <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> | ||||
|         <initial-values> | ||||
|           <property name="text" value="RadioButton" /> | ||||
|         </initial-values> | ||||
|       </item> | ||||
|       <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> | ||||
|         <initial-values> | ||||
|           <property name="text" value="CheckBox" /> | ||||
|         </initial-values> | ||||
|       </item> | ||||
|       <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" /> | ||||
|         <initial-values> | ||||
|           <property name="text" value="Label" /> | ||||
|         </initial-values> | ||||
|       </item> | ||||
|       <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | ||||
|           <preferred-size width="150" height="-1" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | ||||
|           <preferred-size width="150" height="-1" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | ||||
|           <preferred-size width="150" height="-1" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | ||||
|           <preferred-size width="150" height="50" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | ||||
|           <preferred-size width="150" height="50" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | ||||
|           <preferred-size width="150" height="50" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | ||||
|           <preferred-size width="150" height="50" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3"> | ||||
|           <preferred-size width="150" height="50" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | ||||
|           <preferred-size width="150" height="50" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> | ||||
|           <preferred-size width="200" height="200" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> | ||||
|           <preferred-size width="200" height="200" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1"> | ||||
|           <preferred-size width="-1" height="20" /> | ||||
|         </default-constraints> | ||||
|       </item> | ||||
|       <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" /> | ||||
|       </item> | ||||
|       <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | ||||
|         <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" /> | ||||
|       </item> | ||||
|     </group> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										6
									
								
								.idea/vcs.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.idea/vcs.xml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="VcsDirectoryMappings"> | ||||
|     <mapping directory="$PROJECT_DIR$" vcs="Git" /> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										20
									
								
								example.iml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								example.iml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||||
|   <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | ||||
|     <output url="file://$MODULE_DIR$/target/classes" /> | ||||
|     <output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||||
|     <content url="file://$MODULE_DIR$"> | ||||
|       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | ||||
|       <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | ||||
|       <excludeFolder url="file://$MODULE_DIR$/target" /> | ||||
|     </content> | ||||
|     <orderEntry type="inheritedJdk" /> | ||||
|     <orderEntry type="sourceFolder" forTests="false" /> | ||||
|     <orderEntry type="library" scope="PROVIDED" name="Maven: org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT" level="project" /> | ||||
|     <orderEntry type="library" scope="PROVIDED" name="Maven: commons-lang:commons-lang:2.6" level="project" /> | ||||
|     <orderEntry type="library" scope="PROVIDED" name="Maven: com.google.guava:guava:21.0" level="project" /> | ||||
|     <orderEntry type="library" scope="PROVIDED" name="Maven: com.google.code.gson:gson:2.8.0" level="project" /> | ||||
|     <orderEntry type="library" scope="PROVIDED" name="Maven: net.md-5:bungeecord-chat:1.16-R0.4" level="project" /> | ||||
|     <orderEntry type="library" scope="PROVIDED" name="Maven: org.yaml:snakeyaml:1.27" level="project" /> | ||||
|   </component> | ||||
| </module> | ||||
							
								
								
									
										19
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								pom.xml
									
									
									
									
									
								
							|  | @ -23,7 +23,7 @@ | |||
| 
 | ||||
|       <repository> | ||||
|           <id>recoreh-repo</id> | ||||
|           <url> https://git.recorehosting.com/maven/snapshots/ </url> | ||||
|           <url>https://git.recorehosting.com/maven/snapshots/</url> | ||||
|       </repository> | ||||
| 
 | ||||
|     </repositories> | ||||
|  | @ -34,16 +34,15 @@ | |||
|             <artifactId>spigot-api</artifactId> | ||||
|             <version>1.16.5-R0.1-SNAPSHOT</version> | ||||
|             <scope>provided</scope> | ||||
|     </dependency> | ||||
| 
 | ||||
|     <dependency> | ||||
|          <groupId>me.map.ultimatekingdom</groupId> | ||||
|          <artifactId>UltimateKingdom</artifactId> | ||||
|      <version>0.18.0-BETA-SNAPSHOT</version> | ||||
|     </dependency> | ||||
| 
 | ||||
|    </dependencies> | ||||
|       </dependency> | ||||
|           <dependency> | ||||
|               <groupId>me.map.ultimatekingdom</groupId> | ||||
|               <artifactId>UltimateKingdom</artifactId> | ||||
|               <version>0.18.0-BETA-SNAPSHOT</version> | ||||
|               <scope>provided</scope> | ||||
|           </dependency> | ||||
| 
 | ||||
|   </dependencies> | ||||
|     <build> | ||||
|         <resources> | ||||
|             <resource> | ||||
|  |  | |||
|  | @ -1,40 +0,0 @@ | |||
| /** | ||||
|  *  | ||||
|  * (C) Copyright MAP  <info@recorehosting.com> | ||||
|  *  | ||||
|  * This work is licensed under the Creative Commons | ||||
|  * Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) License. | ||||
|  **/ | ||||
| package me.map.moduletest; | ||||
| 
 | ||||
| import java.util.Collection; | ||||
| import java.util.Iterator; | ||||
| 
 | ||||
| import org.bukkit.Bukkit; | ||||
| import org.bukkit.entity.Player; | ||||
| 
 | ||||
| import org.bukkit.event.EventHandler; | ||||
| import org.bukkit.event.EventPriority; | ||||
| import org.bukkit.event.player.PlayerLoginEvent; | ||||
| 
 | ||||
| import me.map.ultimatekingdom.API.module.Module; | ||||
| import me.map.ultimatekingdom.API.module.ModuleListener; | ||||
| 
 | ||||
| public class ConnectionListener extends ModuleListener { | ||||
| 	 | ||||
| 	public ConnectionListener(Module module)  | ||||
| 	{ | ||||
| 	    super(module); | ||||
| 	    this.module= module; | ||||
| 	} | ||||
| 	 | ||||
| 	 | ||||
| 	 | ||||
| 	@EventHandler(priority = EventPriority.HIGHEST) | ||||
| 	public void onLoginJoin(PlayerLoginEvent  event)  | ||||
| 	{ | ||||
| 	  | ||||
| 		System.out.println("listener 1"); | ||||
| 		 | ||||
| 	} | ||||
| } | ||||
|  | @ -1,49 +0,0 @@ | |||
| /** | ||||
|  *  | ||||
|  * (C) Copyright MAP  <info@recorehosting.com> | ||||
|  *  | ||||
|  * This work is licensed under the Creative Commons | ||||
|  * Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) License. | ||||
|  **/ | ||||
| package me.map.moduletest; | ||||
| 
 | ||||
| import java.util.Collection; | ||||
| import java.util.Iterator; | ||||
| 
 | ||||
| import org.bukkit.Bukkit; | ||||
| import org.bukkit.entity.Player; | ||||
| 
 | ||||
| import org.bukkit.event.EventHandler; | ||||
| import org.bukkit.event.EventPriority; | ||||
| import org.bukkit.event.player.PlayerLoginEvent; | ||||
| import org.bukkit.event.player.PlayerQuitEvent; | ||||
| 
 | ||||
| import me.map.ultimatekingdom.API.PluginConfig; | ||||
| import me.map.ultimatekingdom.API.UltimateKingdom; | ||||
| import me.map.ultimatekingdom.API.module.Module; | ||||
| import me.map.ultimatekingdom.API.module.ModuleListener; | ||||
| import me.map.ultimatekingdom.API.objects.Kingdom; | ||||
| import me.map.ultimatekingdom.API.objects.KingdomPlayer; | ||||
| 
 | ||||
| import org.bukkit.event.player.AsyncPlayerPreLoginEvent; | ||||
| 
 | ||||
| import org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; | ||||
| import org.bukkit.event.player.PlayerJoinEvent; | ||||
| import org.bukkit.event.Listener; | ||||
| 
 | ||||
| public class ConnectionListener2 extends ModuleListener { | ||||
| 	 | ||||
| 	 | ||||
| 	public ConnectionListener2(Module module)  | ||||
| 	{ | ||||
| 	    super(module); | ||||
| 	    this.module= module; | ||||
| 	} | ||||
| 	 | ||||
| 	 | ||||
| 	@EventHandler(priority = EventPriority.HIGHEST) | ||||
| 	public void onLoginJoi2(PlayerLoginEvent  event)  | ||||
| 	{ | ||||
| 		System.out.println("listener 2"); | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										18
									
								
								src/main/java/me/map/example/Example.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								src/main/java/me/map/example/Example.java
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| package me.map.example; | ||||
| 
 | ||||
| import org.bukkit.event.EventHandler; | ||||
| import org.bukkit.event.EventPriority; | ||||
| import org.bukkit.event.Listener; | ||||
| import org.bukkit.event.player.PlayerJoinEvent; | ||||
| import org.bukkit.plugin.java.JavaPlugin; | ||||
| 
 | ||||
| public class Example extends JavaPlugin implements Listener { | ||||
| 
 | ||||
|     @EventHandler(priority = EventPriority.LOWEST) | ||||
|     public void onJoin(PlayerJoinEvent event) { | ||||
| 
 | ||||
|         if (event.getPlayer() == null) return; | ||||
|         KingdomPlayer player = UltimateKingdom.Players().getPlayer(event.getPlayer()); | ||||
|     } | ||||
| 
 | ||||
| } | ||||
|  | @ -1,17 +0,0 @@ | |||
| package me.map.moduletest; | ||||
| 
 | ||||
| import me.map.ultimatekingdom.API.module.Java.JavaModule; | ||||
| 
 | ||||
| public class ModuleTest  extends JavaModule { | ||||
| 	 | ||||
| 	@Override | ||||
| 	public void onEnable() | ||||
| 	{ | ||||
| 		System.out.println("DIT IS EEN TEST TEST TEST"); | ||||
| 		 | ||||
| 		registerListener(new ConnectionListener(this)     ); | ||||
| 		registerListener(new ConnectionListener2(this)     ); | ||||
| 		 | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user