diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2018-03-21 20:52:28 +0000 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2018-03-21 20:52:28 +0000 |
commit | f6692f60908b57efc4defb43573dc12c5b1846b8 (patch) | |
tree | 7cfa8280bdafc534b470e1ee89744861b89f9f05 | |
download | PrimalMC-master.tar.gz PrimalMC-master.tar.bz2 PrimalMC-master.zip |
53 files changed, 2072 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.idea/artifacts/PrimalMC_jar.xml b/.idea/artifacts/PrimalMC_jar.xml new file mode 100644 index 0000000..d831fb6 --- /dev/null +++ b/.idea/artifacts/PrimalMC_jar.xml @@ -0,0 +1,8 @@ +<component name="ArtifactManager"> + <artifact type="jar" build-on-make="true" name="PrimalMC:jar"> + <output-path>$USER_HOME$/Desktop/TestServer/plugins</output-path> + <root id="archive" name="PrimalMC.jar"> + <element id="module-output" name="PrimalMC" /> + </root> + </artifact> +</component> \ No newline at end of file diff --git a/.idea/libraries/Lombok_1_6_6.xml b/.idea/libraries/Lombok_1_6_6.xml new file mode 100644 index 0000000..94252ac --- /dev/null +++ b/.idea/libraries/Lombok_1_6_6.xml @@ -0,0 +1,9 @@ +<component name="libraryTable"> + <library name="Lombok-1.6.6"> + <CLASSES> + <root url="jar://$PROJECT_DIR$/../untitled/Lombok-1.6.6.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> +</component> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..0548357 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> + <output url="file://$PROJECT_DIR$/out" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3c061e1 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/PrimalMC.iml" filepath="$PROJECT_DIR$/PrimalMC.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..79ee29e --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,930 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ChangeListManager"> + <list default="true" id="a6ef9085-f132-4302-ada3-8c46833b02d3" name="Default" comment="" /> + <ignored path="$PROJECT_DIR$/out/" /> + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> + <option name="TRACKING_ENABLED" value="true" /> + <option name="SHOW_DIALOG" value="false" /> + <option name="HIGHLIGHT_CONFLICTS" value="true" /> + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> + <option name="LAST_RESOLUTION" value="IGNORE" /> + </component> + <component name="FavoritesManager"> + <favorites_list name="PrimalMC" /> + </component> + <component name="FileEditorManager"> + <leaf SIDE_TABS_SIZE_LIMIT_KEY="375"> + <file leaf-file-name="Main.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Main.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="826"> + <caret line="105" column="1" lean-forward="true" selection-start-line="105" selection-start-column="1" selection-end-line="105" selection-end-column="1" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#1458#1459#0" expanded="true" /> + <element signature="e#1486#1487#0" expanded="true" /> + <element signature="e#2615#2616#0" expanded="true" /> + <element signature="e#2662#2663#0" expanded="true" /> + <element signature="e#2743#2744#0" expanded="true" /> + <element signature="e#2793#2794#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="TeamspeakCommand.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/TeamspeakCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="126"> + <caret line="10" column="10" lean-forward="false" selection-start-line="10" selection-start-column="10" selection-end-line="10" selection-end-column="10" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="ChatUtils.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ChatUtils.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="336"> + <caret line="23" column="21" lean-forward="false" selection-start-line="23" selection-start-column="21" selection-end-line="23" selection-end-column="21" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="PanicCommand.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/PanicCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="609"> + <caret line="30" column="36" lean-forward="false" selection-start-line="30" selection-start-column="36" selection-end-line="30" selection-end-column="36" /> + <folding> + <element signature="imports" expanded="true" /> + </folding> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="StaffItems.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/inventories/Items/StaffItems.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="658"> + <caret line="37" column="5" lean-forward="true" selection-start-line="37" selection-start-column="5" selection-end-line="37" selection-end-column="5" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#612#620#0" expanded="true" /> + <element signature="e#1096#1104#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="VanishCommand.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/VanishCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="567"> + <caret line="37" column="0" lean-forward="false" selection-start-line="37" selection-start-column="0" selection-end-line="37" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="HubEvents.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/HubEvents.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="1029"> + <caret line="61" column="24" lean-forward="false" selection-start-line="61" selection-start-column="24" selection-end-line="61" selection-end-column="24" /> + <folding> + <element signature="imports" expanded="true" /> + </folding> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="StaffInventory.java" pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/inventories/StaffInventory.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="231"> + <caret line="21" column="51" lean-forward="true" selection-start-line="21" selection-start-column="51" selection-end-line="21" selection-end-column="51" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="config.yml" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/config.yml"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="42"> + <caret line="2" column="17" lean-forward="false" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="Events.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/StaffEvents/Events.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="567"> + <caret line="38" column="42" lean-forward="false" selection-start-line="38" selection-start-column="42" selection-end-line="38" selection-end-column="42" /> + <folding /> + </state> + </provider> + </entry> + </file> + </leaf> + </component> + <component name="FileTemplateManagerImpl"> + <option name="RECENT_TEMPLATES"> + <list> + <option value="Class" /> + </list> + </option> + </component> + <component name="Git.Settings"> + <option name="ROOT_SYNC" value="DONT_SYNC" /> + </component> + <component name="GradleLocalSettings"> + <option name="externalProjectsViewState"> + <projects_view /> + </option> + </component> + <component name="IdeDocumentHistory"> + <option name="CHANGED_PATHS"> + <list> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ConfigurationManager.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/Scoreboard/Scoreboard.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/events/Mobs.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/Alert.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/events/StaffJoin.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/events/MobsSpawn.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/events/FirstLogin.java" /> + <option value="$PROJECT_DIR$/src/players.yml" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/VersionCommand.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/events/PlayerJoin.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/StaffCommand.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/VanishCommand.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/WebsiteCommand.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/StoreCommand.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/DiscordCommand.java" /> + <option value="$PROJECT_DIR$/src/plugin.yml" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/events/StaffEvents/Events.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/AlertCommand.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ChatUtils.java" /> + <option value="$PROJECT_DIR$/src/config.yml" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/events/HubEvents.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/TeamspeakCommand.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/commands/PanicCommand.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/inventories/Items/StaffItems.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/Main.java" /> + <option value="$PROJECT_DIR$/src/com/baitinq/primalmc/inventories/StaffInventory.java" /> + </list> + </option> + </component> + <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" /> + <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" /> + <component name="JsGulpfileManager"> + <detection-done>true</detection-done> + <sorting>DEFINITION_ORDER</sorting> + </component> + <component name="ProjectFrameBounds" extendedState="6"> + <option name="x" value="502" /> + <option name="y" value="84" /> + <option name="width" value="1924" /> + <option name="height" value="862" /> + </component> + <component name="ProjectView"> + <navigator currentView="ProjectPane" proportions="" version="1"> + <flattenPackages /> + <showMembers /> + <showModules /> + <showLibraryContents /> + <hideEmptyPackages /> + <abbreviatePackageNames /> + <autoscrollToSource /> + <autoscrollFromSource /> + <sortByType /> + <manualOrder /> + <foldersAlwaysOnTop value="true" /> + </navigator> + <panes> + <pane id="PackagesPane" /> + <pane id="AndroidView" /> + <pane id="Scratches" /> + <pane id="Scope" /> + <pane id="ProjectPane"> + <subPane> + <expand> + <path> + <item name="PrimalMC" type="b2602c69:ProjectViewProjectNode" /> + <item name="PrimalMC" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="PrimalMC" type="b2602c69:ProjectViewProjectNode" /> + <item name="PrimalMC" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="PrimalMC" type="b2602c69:ProjectViewProjectNode" /> + <item name="PrimalMC" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="primalmc" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="PrimalMC" type="b2602c69:ProjectViewProjectNode" /> + <item name="PrimalMC" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="primalmc" type="462c0819:PsiDirectoryNode" /> + <item name="commands" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="PrimalMC" type="b2602c69:ProjectViewProjectNode" /> + <item name="PrimalMC" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="primalmc" type="462c0819:PsiDirectoryNode" /> + <item name="events" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="PrimalMC" type="b2602c69:ProjectViewProjectNode" /> + <item name="PrimalMC" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="primalmc" type="462c0819:PsiDirectoryNode" /> + <item name="inventories" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="PrimalMC" type="b2602c69:ProjectViewProjectNode" /> + <item name="PrimalMC" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + <item name="primalmc" type="462c0819:PsiDirectoryNode" /> + <item name="utils" type="462c0819:PsiDirectoryNode" /> + </path> + </expand> + <select /> + </subPane> + </pane> + </panes> + </component> + <component name="PropertiesComponent"> + <property name="settings.editor.selected.configurable" value="vcs.Git" /> + <property name="last_opened_file_path" value="$PROJECT_DIR$" /> + <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" /> + <property name="WebServerToolWindowFactoryState" value="false" /> + <property name="aspect.path.notification.shown" value="true" /> + <property name="project.structure.last.edited" value="Modules" /> + <property name="project.structure.proportion" value="0.0" /> + <property name="project.structure.side.proportion" value="0.2" /> + </component> + <component name="RunDashboard"> + <option name="ruleStates"> + <list> + <RuleState> + <option name="name" value="ConfigurationTypeDashboardGroupingRule" /> + </RuleState> + <RuleState> + <option name="name" value="StatusDashboardGroupingRule" /> + </RuleState> + </list> + </option> + </component> + <component name="RunManager"> + <configuration default="true" type="Applet" factoryName="Applet"> + <option name="HTML_USED" value="false" /> + <option name="WIDTH" value="400" /> + <option name="HEIGHT" value="300" /> + <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" /> + <module /> + </configuration> + <configuration default="true" type="Application" factoryName="Application"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <option name="MAIN_CLASS_NAME" /> + <option name="VM_PARAMETERS" /> + <option name="PROGRAM_PARAMETERS" /> + <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="ENABLE_SWING_INSPECTOR" value="false" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <module name="" /> + <envs /> + </configuration> + <configuration default="true" type="JUnit" factoryName="JUnit"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <module name="" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="PACKAGE_NAME" /> + <option name="MAIN_CLASS_NAME" /> + <option name="METHOD_NAME" /> + <option name="TEST_OBJECT" value="class" /> + <option name="VM_PARAMETERS" value="-ea" /> + <option name="PARAMETERS" /> + <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <option name="TEST_SEARCH_SCOPE"> + <value defaultName="singleModule" /> + </option> + <envs /> + <patterns /> + </configuration> + <configuration default="true" type="Remote" factoryName="Remote"> + <option name="USE_SOCKET_TRANSPORT" value="true" /> + <option name="SERVER_MODE" value="false" /> + <option name="SHMEM_ADDRESS" value="javadebug" /> + <option name="HOST" value="localhost" /> + <option name="PORT" value="5005" /> + </configuration> + <configuration default="true" type="TestNG" factoryName="TestNG"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <module name="" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="SUITE_NAME" /> + <option name="PACKAGE_NAME" /> + <option name="MAIN_CLASS_NAME" /> + <option name="METHOD_NAME" /> + <option name="GROUP_NAME" /> + <option name="TEST_OBJECT" value="CLASS" /> + <option name="VM_PARAMETERS" value="-ea" /> + <option name="PARAMETERS" /> + <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" /> + <option name="OUTPUT_DIRECTORY" /> + <option name="ANNOTATION_TYPE" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <option name="TEST_SEARCH_SCOPE"> + <value defaultName="singleModule" /> + </option> + <option name="USE_DEFAULT_REPORTERS" value="false" /> + <option name="PROPERTIES_FILE" /> + <envs /> + <properties /> + <listeners /> + </configuration> + <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin"> + <module name="" /> + <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" /> + <option name="PROGRAM_PARAMETERS" /> + <predefined_log_file id="idea.log" enabled="true" /> + </configuration> + </component> + <component name="ShelveChangesManager" show_recycled="false"> + <option name="remove_strategy" value="false" /> + </component> + <component name="SvnConfiguration"> + <configuration /> + </component> + <component name="TaskManager"> + <task active="true" id="Default" summary="Default task"> + <changelist id="a6ef9085-f132-4302-ada3-8c46833b02d3" name="Default" comment="" /> + <created>1520375438744</created> + <option name="number" value="Default" /> + <option name="presentableId" value="Default" /> + <updated>1520375438744</updated> + <workItem from="1520375439963" duration="128000" /> + <workItem from="1520375633492" duration="15000" /> + <workItem from="1520375666133" duration="35000" /> + <workItem from="1520440220970" duration="534000" /> + <workItem from="1520443622679" duration="16000" /> + <workItem from="1520451798396" duration="4000" /> + <workItem from="1520452120626" duration="877000" /> + <workItem from="1520530367487" duration="667000" /> + <workItem from="1520532885839" duration="710000" /> + <workItem from="1520533707892" duration="588000" /> + <workItem from="1520535444151" duration="84000" /> + <workItem from="1520537202785" duration="10000" /> + <workItem from="1520537359736" duration="80000" /> + <workItem from="1520543226288" duration="3429000" /> + <workItem from="1520548271000" duration="15000" /> + <workItem from="1520548381160" duration="1483000" /> + <workItem from="1520579932054" duration="206000" /> + <workItem from="1520612159699" duration="116000" /> + <workItem from="1520874127080" duration="506000" /> + <workItem from="1520879727807" duration="273000" /> + <workItem from="1520883795470" duration="581000" /> + <workItem from="1520961925080" duration="40000" /> + <workItem from="1520962906161" duration="14000" /> + <workItem from="1521050103646" duration="1092000" /> + <workItem from="1521053568684" duration="77000" /> + <workItem from="1521064979353" duration="112000" /> + <workItem from="1521236585165" duration="515000" /> + <workItem from="1521305078983" duration="6000" /> + <workItem from="1521480086649" duration="600000" /> + <workItem from="1521486619603" duration="43000" /> + <workItem from="1521581200848" duration="1113000" /> + </task> + <servers /> + </component> + <component name="TimeTrackingManager"> + <option name="totallyTimeSpent" value="13969000" /> + </component> + <component name="ToolWindowManager"> + <frame x="-9" y="-9" width="1938" height="1048" extended-state="6" /> + <editor active="true" /> + <layout> + <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> + <window_info id="Palette	" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32928178" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> + <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2515625" sideWeight="0.49613258" order="0" side_tool="false" content_ui="combo" /> + <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> + <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> + <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5038674" order="2" side_tool="true" content_ui="tabs" /> + <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> + <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> + <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> + <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> + <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32928178" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> + <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> + </layout> + </component> + <component name="TypeScriptGeneratedFilesManager"> + <option name="version" value="1" /> + </component> + <component name="VcsContentAnnotationSettings"> + <option name="myLimit" value="2678400000" /> + </component> + <component name="XDebuggerManager"> + <breakpoint-manager /> + <watches-manager /> + </component> + <component name="editorHistoryManager"> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/inventories/StaffInventory.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="147"> + <caret line="17" column="29" lean-forward="false" selection-start-line="17" selection-start-column="29" selection-end-line="17" selection-end-column="29" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ConfigurationManager.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="147"> + <caret line="15" column="31" lean-forward="false" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Scoreboard/Scoreboard.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="147"> + <caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ChatUtils.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="126"> + <caret line="9" column="32" lean-forward="false" selection-start-line="9" selection-start-column="32" selection-end-line="9" selection-end-column="32" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/StaffEvents/Events.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="294"> + <caret line="20" column="5" lean-forward="false" selection-start-line="20" selection-start-column="5" selection-end-line="20" selection-end-column="5" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Main.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="693"> + <caret line="42" column="20" lean-forward="false" selection-start-line="42" selection-start-column="20" selection-end-line="42" selection-end-column="20" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#1458#1459#0" expanded="true" /> + <element signature="e#1486#1487#0" expanded="true" /> + <element signature="e#2615#2616#0" expanded="true" /> + <element signature="e#2662#2663#0" expanded="true" /> + <element signature="e#2743#2744#0" expanded="true" /> + <element signature="e#2793#2794#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/StaffCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="630"> + <caret line="30" column="23" lean-forward="false" selection-start-line="30" selection-start-column="23" selection-end-line="30" selection-end-column="23" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/FirstLogin.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="168"> + <caret line="16" column="0" lean-forward="false" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/StaffJoin.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="63"> + <caret line="3" column="43" lean-forward="false" selection-start-line="3" selection-start-column="43" selection-end-line="3" selection-end-column="43" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/PlayerJoin.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="189"> + <caret line="9" column="44" lean-forward="true" selection-start-line="9" selection-start-column="44" selection-end-line="9" selection-end-column="44" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/inventories/StaffInventory.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="147"> + <caret line="17" column="29" lean-forward="true" selection-start-line="17" selection-start-column="29" selection-end-line="17" selection-end-column="29" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ConfigurationManager.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="147"> + <caret line="15" column="31" lean-forward="false" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Scoreboard/Scoreboard.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="147"> + <caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ChatUtils.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="126"> + <caret line="9" column="32" lean-forward="false" selection-start-line="9" selection-start-column="32" selection-end-line="9" selection-end-column="32" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/StaffEvents/Events.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="294"> + <caret line="20" column="5" lean-forward="true" selection-start-line="20" selection-start-column="5" selection-end-line="20" selection-end-column="5" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Main.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="84"> + <caret line="10" column="13" lean-forward="false" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#1458#1459#0" expanded="true" /> + <element signature="e#1486#1487#0" expanded="true" /> + <element signature="e#2615#2616#0" expanded="true" /> + <element signature="e#2662#2663#0" expanded="true" /> + <element signature="e#2743#2744#0" expanded="true" /> + <element signature="e#2793#2794#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/plugin.yml"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="189"> + <caret line="9" column="33" lean-forward="true" selection-start-line="9" selection-start-column="33" selection-end-line="9" selection-end-column="33" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Main.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="84"> + <caret line="10" column="13" lean-forward="false" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#1458#1459#0" expanded="true" /> + <element signature="e#1486#1487#0" expanded="true" /> + <element signature="e#2615#2616#0" expanded="true" /> + <element signature="e#2662#2663#0" expanded="true" /> + <element signature="e#2743#2744#0" expanded="true" /> + <element signature="e#2793#2794#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/plugin.yml"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="168"> + <caret line="8" column="10" lean-forward="true" selection-start-line="8" selection-start-column="10" selection-end-line="8" selection-end-column="10" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Main.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="84"> + <caret line="10" column="13" lean-forward="false" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#1458#1459#0" expanded="true" /> + <element signature="e#1486#1487#0" expanded="true" /> + <element signature="e#2615#2616#0" expanded="true" /> + <element signature="e#2662#2663#0" expanded="true" /> + <element signature="e#2743#2744#0" expanded="true" /> + <element signature="e#2793#2794#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/plugin.yml"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="210"> + <caret line="10" column="20" lean-forward="true" selection-start-line="10" selection-start-column="20" selection-end-line="10" selection-end-column="20" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/Mobs.java" /> + <entry file="file://$USER_HOME$/Desktop/PrimalSpigot/Spigot-API/src/main/java/org/bukkit/PortalType.java" /> + <entry file="file://$USER_HOME$/Desktop/PrimalSpigot/Spigot-API/src/main/java/org/bukkit/plugin/SimplePluginManager.java" /> + <entry file="file://$USER_HOME$/Desktop/PrimalSpigot/Spigot-Server/src/main/java/net/minecraft/server/PlayerList.java" /> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/Alert.java" /> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Scoreboard/Scoreboard.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="294"> + <caret line="18" column="0" lean-forward="false" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/MobsSpawn.java" /> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/FirstLogin.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="378"> + <caret line="26" column="34" lean-forward="false" selection-start-line="26" selection-start-column="34" selection-end-line="26" selection-end-column="34" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ConfigurationManager.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="147"> + <caret line="15" column="0" lean-forward="false" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/players.yml"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="0"> + <caret line="0" column="8" lean-forward="false" selection-start-line="0" selection-start-column="8" selection-end-line="0" selection-end-column="8" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/VersionCommand.java" /> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/PlayerJoin.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="231"> + <caret line="18" column="33" lean-forward="false" selection-start-line="18" selection-start-column="33" selection-end-line="18" selection-end-column="33" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/StaffCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="546"> + <caret line="45" column="38" lean-forward="false" selection-start-line="45" selection-start-column="38" selection-end-line="45" selection-end-column="38" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/BaitinqCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="42"> + <caret line="2" column="27" lean-forward="false" selection-start-line="2" selection-start-column="27" selection-end-line="2" selection-end-column="27" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/WebsiteCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="0"> + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="23" selection-end-column="1" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/StoreCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="294"> + <caret line="18" column="63" lean-forward="false" selection-start-line="18" selection-start-column="63" selection-end-line="18" selection-end-column="63" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/DiscordCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="294"> + <caret line="18" column="65" lean-forward="false" selection-start-line="18" selection-start-column="65" selection-end-line="18" selection-end-column="65" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/plugin.yml"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="336"> + <caret line="16" column="42" lean-forward="false" selection-start-line="16" selection-start-column="42" selection-end-line="16" selection-end-column="42" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/AlertCommand.java" /> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/StaffJoin.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="273"> + <caret line="22" column="48" lean-forward="false" selection-start-line="22" selection-start-column="48" selection-end-line="22" selection-end-column="48" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/StaffEvents/Events.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="567"> + <caret line="38" column="42" lean-forward="false" selection-start-line="38" selection-start-column="42" selection-end-line="38" selection-end-column="42" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/config.yml"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="42"> + <caret line="2" column="17" lean-forward="false" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/events/HubEvents.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="1029"> + <caret line="61" column="24" lean-forward="false" selection-start-line="61" selection-start-column="24" selection-end-line="61" selection-end-column="24" /> + <folding> + <element signature="imports" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/utils/ChatUtils.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="336"> + <caret line="23" column="21" lean-forward="false" selection-start-line="23" selection-start-column="21" selection-end-line="23" selection-end-column="21" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/VanishCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="567"> + <caret line="37" column="0" lean-forward="false" selection-start-line="37" selection-start-column="0" selection-end-line="37" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/TeamspeakCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="126"> + <caret line="10" column="10" lean-forward="false" selection-start-line="10" selection-start-column="10" selection-end-line="10" selection-end-column="10" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/commands/PanicCommand.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="609"> + <caret line="30" column="36" lean-forward="false" selection-start-line="30" selection-start-column="36" selection-end-line="30" selection-end-column="36" /> + <folding> + <element signature="imports" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/inventories/Items/StaffItems.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="658"> + <caret line="37" column="5" lean-forward="true" selection-start-line="37" selection-start-column="5" selection-end-line="37" selection-end-column="5" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#612#620#0" expanded="true" /> + <element signature="e#1096#1104#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/Main.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="826"> + <caret line="105" column="1" lean-forward="true" selection-start-line="105" selection-start-column="1" selection-end-line="105" selection-end-column="1" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#1458#1459#0" expanded="true" /> + <element signature="e#1486#1487#0" expanded="true" /> + <element signature="e#2615#2616#0" expanded="true" /> + <element signature="e#2662#2663#0" expanded="true" /> + <element signature="e#2743#2744#0" expanded="true" /> + <element signature="e#2793#2794#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/com/baitinq/primalmc/inventories/StaffInventory.java"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="231"> + <caret line="21" column="51" lean-forward="true" selection-start-line="21" selection-start-column="51" selection-end-line="21" selection-end-column="51" /> + <folding /> + </state> + </provider> + </entry> + </component> + <component name="masterDetails"> + <states> + <state key="ArtifactsStructureConfigurable.UI"> + <settings> + <artifact-editor /> + <last-edited>PrimalMC:jar</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + <option value="0.5" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="FacetStructureConfigurable.UI"> + <settings> + <last-edited>No facets are configured</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="GlobalLibrariesConfigurable.UI"> + <settings> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="JdkListConfigurable.UI"> + <settings> + <last-edited>1.8</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="ModuleStructureConfigurable.UI"> + <settings> + <last-edited>PrimalMC</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="ProjectJDKs.UI"> + <settings> + <last-edited>1.8</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + <state key="ProjectLibrariesConfigurable.UI"> + <settings> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + </states> + </component> +</project> \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ad410e1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/PrimalMC.iml b/PrimalMC.iml new file mode 100644 index 0000000..82b9a2d --- /dev/null +++ b/PrimalMC.iml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="JAVA_MODULE" version="4"> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$USER_HOME$/Desktop/Server/HCF/spigot.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES> + <root url="jar://$USER_HOME$/Desktop/Server/HCF/spigot.jar!/" /> + </SOURCES> + </library> + </orderEntry> + <orderEntry type="library" name="Lombok-1.6.6" level="project" /> + </component> +</module> \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..145b1e5 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# PrimalMC diff --git a/out/production/PrimalMC/Main.iml b/out/production/PrimalMC/Main.iml new file mode 100644 index 0000000..52b9b8c --- /dev/null +++ b/out/production/PrimalMC/Main.iml @@ -0,0 +1,23 @@ +<?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$"> + <excludeFolder url="file://$MODULE_DIR$/target" /> + </content> + <orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$USER_HOME$/Dr/Server/HCF/spigot.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES> + <root url="jar://$USER_HOME$/Desktop/Server/HCF/spigot.jar!/" /> + </SOURCES> + </library> + </orderEntry> + </component> +</module> \ No newline at end of file diff --git a/out/production/PrimalMC/com/baitinq/primalmc/Main.class b/out/production/PrimalMC/com/baitinq/primalmc/Main.class new file mode 100644 index 0000000..acdda99 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/Main.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/Scoreboard/Scoreboard.class b/out/production/PrimalMC/com/baitinq/primalmc/Scoreboard/Scoreboard.class new file mode 100644 index 0000000..b6268e2 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/Scoreboard/Scoreboard.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/commands/BaitinqCommand.class b/out/production/PrimalMC/com/baitinq/primalmc/commands/BaitinqCommand.class new file mode 100644 index 0000000..07194e7 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/commands/BaitinqCommand.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/commands/DiscordCommand.class b/out/production/PrimalMC/com/baitinq/primalmc/commands/DiscordCommand.class new file mode 100644 index 0000000..9b6249c --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/commands/DiscordCommand.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/commands/StaffCommand.class b/out/production/PrimalMC/com/baitinq/primalmc/commands/StaffCommand.class new file mode 100644 index 0000000..3250e4c --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/commands/StaffCommand.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/commands/StoreCommand.class b/out/production/PrimalMC/com/baitinq/primalmc/commands/StoreCommand.class new file mode 100644 index 0000000..3198421 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/commands/StoreCommand.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/commands/TeamspeakCommand.class b/out/production/PrimalMC/com/baitinq/primalmc/commands/TeamspeakCommand.class new file mode 100644 index 0000000..d8bf29d --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/commands/TeamspeakCommand.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/commands/VanishCommand.class b/out/production/PrimalMC/com/baitinq/primalmc/commands/VanishCommand.class new file mode 100644 index 0000000..c116d6c --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/commands/VanishCommand.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/commands/WebsiteCommand.class b/out/production/PrimalMC/com/baitinq/primalmc/commands/WebsiteCommand.class new file mode 100644 index 0000000..61f80f1 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/commands/WebsiteCommand.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/events/FirstLogin.class b/out/production/PrimalMC/com/baitinq/primalmc/events/FirstLogin.class new file mode 100644 index 0000000..25096cd --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/events/FirstLogin.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/events/HubEvents.class b/out/production/PrimalMC/com/baitinq/primalmc/events/HubEvents.class new file mode 100644 index 0000000..d477604 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/events/HubEvents.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/events/PlayerJoin.class b/out/production/PrimalMC/com/baitinq/primalmc/events/PlayerJoin.class new file mode 100644 index 0000000..7133a3c --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/events/PlayerJoin.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/events/StaffEvents/Events.class b/out/production/PrimalMC/com/baitinq/primalmc/events/StaffEvents/Events.class new file mode 100644 index 0000000..58f8113 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/events/StaffEvents/Events.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/events/StaffJoin.class b/out/production/PrimalMC/com/baitinq/primalmc/events/StaffJoin.class new file mode 100644 index 0000000..c4badd7 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/events/StaffJoin.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/inventories/StaffInventory.class b/out/production/PrimalMC/com/baitinq/primalmc/inventories/StaffInventory.class new file mode 100644 index 0000000..c524d79 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/inventories/StaffInventory.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/utils/ChatUtils.class b/out/production/PrimalMC/com/baitinq/primalmc/utils/ChatUtils.class new file mode 100644 index 0000000..bc5d9a9 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/utils/ChatUtils.class Binary files differdiff --git a/out/production/PrimalMC/com/baitinq/primalmc/utils/ConfigurationManager.class b/out/production/PrimalMC/com/baitinq/primalmc/utils/ConfigurationManager.class new file mode 100644 index 0000000..d519e83 --- /dev/null +++ b/out/production/PrimalMC/com/baitinq/primalmc/utils/ConfigurationManager.class Binary files differdiff --git a/out/production/PrimalMC/config.yml b/out/production/PrimalMC/config.yml new file mode 100644 index 0000000..6be211a --- /dev/null +++ b/out/production/PrimalMC/config.yml @@ -0,0 +1,3 @@ +PrimalVersion: 1.0 +hub: false +doublejump: false \ No newline at end of file diff --git a/out/production/PrimalMC/players.yml b/out/production/PrimalMC/players.yml new file mode 100644 index 0000000..238c7ea --- /dev/null +++ b/out/production/PrimalMC/players.yml @@ -0,0 +1 @@ +players: \ No newline at end of file diff --git a/out/production/PrimalMC/plugin.yml b/out/production/PrimalMC/plugin.yml new file mode 100644 index 0000000..32e9660 --- /dev/null +++ b/out/production/PrimalMC/plugin.yml @@ -0,0 +1,21 @@ +name: PrimalMC +version: 0.1-Alpha +author: Baitinq +main: com.baitinq.primalmc.Main +description: PrimalMC Network Core Plugin. +load: STARTUP +commands: + staff: + aliases: [mod, primalstaff] + vanish: + aliases: [v] + alert: + aliases: [broadcast, primalalert] + teamspeak: + aliases: [ts, primalts, primalteamspeak] + discord: + aliases: [disc, pdisc, primaldiscord] + website: + aliases: [website, www, primalwebsite, pwebsite, pwww, web, pweb] + store: + aliases: [primalstore, pstore] diff --git a/src/Main.iml b/src/Main.iml new file mode 100644 index 0000000..52b9b8c --- /dev/null +++ b/src/Main.iml @@ -0,0 +1,23 @@ +<?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$"> + <excludeFolder url="file://$MODULE_DIR$/target" /> + </content> + <orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$USER_HOME$/Dr/Server/HCF/spigot.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES> + <root url="jar://$USER_HOME$/Desktop/Server/HCF/spigot.jar!/" /> + </SOURCES> + </library> + </orderEntry> + </component> +</module> \ No newline at end of file diff --git a/src/com/baitinq/primalmc/Main.java b/src/com/baitinq/primalmc/Main.java new file mode 100644 index 0000000..dfaba93 --- /dev/null +++ b/src/com/baitinq/primalmc/Main.java @@ -0,0 +1,116 @@ +package com.baitinq.primalmc; + +import com.baitinq.primalmc.commands.*; +import com.baitinq.primalmc.events.HubEvents; +import com.baitinq.primalmc.inventories.StaffInventory; +import com.baitinq.primalmc.utils.ChatUtils; +import com.baitinq.primalmc.utils.ConfigurationManager; +import lombok.Getter; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.command.CommandExecutor; +import org.bukkit.entity.Player; +import org.bukkit.event.Listener; +import com.baitinq.primalmc.events.PlayerJoin; +import org.bukkit.plugin.java.JavaPlugin; +import java.util.ArrayList; +import java.util.UUID; + +@Getter +public class Main extends JavaPlugin implements Listener, CommandExecutor{ + + @SuppressWarnings( "deprecation" ) + + private ConfigurationManager cfg; + private StaffCommand staffcmd; + private StaffInventory staffinv; + + @Getter public String PREFIX = ChatUtils.chat(ChatColor.GOLD+""+ChatColor.BOLD+"PrimalMC»"); + @Getter public String STAFF = ChatUtils.chat(ChatColor.GRAY+"["+ChatColor.GOLD+ChatColor.BOLD+"Staff"+ChatColor.RESET+ChatColor.GRAY+"]"); + + @Getter public String staffpermission = "primalmc.staff"; + + //List of Online Staff + @Getter public ArrayList<UUID> Staff = new ArrayList<UUID>(); + + @Getter public ArrayList<UUID> Vanished = new ArrayList<UUID>(); + + + @Override + public void onEnable(){ + loadEvents(); + loadCMD(); + LoadConfig(); + } + @Override + public void onDisable(){ + saveConfig(); + } + + public void LoadConfig(){ + LoadConfigManager(); + getConfig().options().copyDefaults(true); + saveConfig(); + reloadConfig(); + } + //ConfigManager (Config.yml reload, save, etc) + public void LoadConfigManager(){ + cfg = new ConfigurationManager(); + cfg.setup(); + cfg.SavePlayers(); + cfg.ReloadPlayers(); + } +//loadCommands (Clean up onEnable) + public void loadCMD(){ + getCommand("staff").setExecutor(new StaffCommand()); + getCommand("vanish").setExecutor(new VanishCommand()); + getCommand("discord").setExecutor(new DiscordCommand()); + getCommand("website").setExecutor(new WebsiteCommand()); + getCommand("teamspeak").setExecutor(new TeamspeakCommand()); + getCommand("store").setExecutor(new StoreCommand()); +//loadEvents (Clean up onEnable) + } + public void loadEvents(){ + + getServer().getPluginManager().registerEvents(new PlayerJoin(), this); + getServer().getPluginManager().registerEvents(new HubEvents(), this); + } + + //void to add to staff + public void addToStaffMode(Player player){ + Staff.add(player.getUniqueId()); + } + //void remove from staff + public void removeFromStaffMode(Player player){ + Staff.remove(player.getUniqueId()); + } + //void vanish the player + public void setVanished(Player player){ + Vanished.add(player.getUniqueId()); + for(Player p : Bukkit.getServer().getOnlinePlayers()){ + p.hidePlayer(player); + } + } + //void unvanish the player + public void removeVanished(Player player){ + Vanished.remove(player.getUniqueId()); + for(Player p : Bukkit.getServer().getOnlinePlayers()){ + p.showPlayer(player); + } + } + //set the staff inv + // public void giveStaffInv(Player player){ + // StaffInventory i = new StaffInventory(); + // i. + //} +} + + + + + + + + + + diff --git a/src/com/baitinq/primalmc/Scoreboard/Scoreboard.java b/src/com/baitinq/primalmc/Scoreboard/Scoreboard.java new file mode 100644 index 0000000..68921b8 --- /dev/null +++ b/src/com/baitinq/primalmc/Scoreboard/Scoreboard.java @@ -0,0 +1,22 @@ +package com.baitinq.primalmc.Scoreboard; + +import com.baitinq.primalmc.Main; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.Listener; +import org.bukkit.scoreboard.ScoreboardManager; + +public class Scoreboard implements Listener { + + private static Main plugin; + + public void CreateScoreboard(Player player){ + + //ScoreboardManager sm = Bukkit.getServer().getScoreboardManager(); + //sm.getNewScoreboard().registerNewTeam("Vanish"); + // sm.getNewScoreboard().registerNewTeam("Gamemode"); + // player.setScoreboard(board); + + } + +} diff --git a/src/com/baitinq/primalmc/commands/BaitinqCommand.java b/src/com/baitinq/primalmc/commands/BaitinqCommand.java new file mode 100644 index 0000000..87ac8b6 --- /dev/null +++ b/src/com/baitinq/primalmc/commands/BaitinqCommand.java @@ -0,0 +1,4 @@ +package com.baitinq.primalmc.commands; + +public class BaitinqCommand { +} diff --git a/src/com/baitinq/primalmc/commands/DiscordCommand.java b/src/com/baitinq/primalmc/commands/DiscordCommand.java new file mode 100644 index 0000000..40f8003 --- /dev/null +++ b/src/com/baitinq/primalmc/commands/DiscordCommand.java @@ -0,0 +1,24 @@ +package com.baitinq.primalmc.commands; + +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +public class DiscordCommand implements CommandExecutor{ + + private String discord = "discord"; + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + if(!(sender instanceof Player)){ + sender.sendMessage(ChatColor.RED+"Only executable by players."); + } + Player player = (Player) sender; + player.sendMessage(ChatColor.YELLOW+"The PrimalMC Discord is "+ChatColor.GOLD+ discord); + + + return true; + } +} diff --git a/src/com/baitinq/primalmc/commands/PanicCommand.java b/src/com/baitinq/primalmc/commands/PanicCommand.java new file mode 100644 index 0000000..ede0bf4 --- /dev/null +++ b/src/com/baitinq/primalmc/commands/PanicCommand.java @@ -0,0 +1,41 @@ +package com.baitinq.primalmc.commands; + +import com.baitinq.primalmc.Main; +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; +import org.bukkit.event.player.PlayerMoveEvent; + +import java.util.ArrayList; + +public class PanicCommand implements CommandExecutor{ + + private TeamspeakCommand plugin; + + ArrayList<Player> paniced = new ArrayList<Player>(); + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + if(!(sender instanceof Player)){ + sender.sendMessage(ChatColor.YELLOW+"This command is only executable by players."); + } + Player player = (Player) sender; + + + return true; + } + + + public void PanicEvent(PlayerMoveEvent event){ + Player player = event.getPlayer(); + if(paniced.contains(player)){ + //añadir si tiene permiso pueda quitar de panick si no no + paniced.remove(player); + player.sendMessage(ChatColor.YELLOW+"You are no longer panicked."); + } + paniced.add(player); + player.sendMessage(ChatColor.YELLOW+"You are in panick mode! Connect to" + ChatColor.GOLD+plugin.teamspeak); + } +} diff --git a/src/com/baitinq/primalmc/commands/StaffCommand.java b/src/com/baitinq/primalmc/commands/StaffCommand.java new file mode 100644 index 0000000..fe13064 --- /dev/null +++ b/src/com/baitinq/primalmc/commands/StaffCommand.java @@ -0,0 +1,86 @@ +package com.baitinq.primalmc.commands; + +import com.baitinq.primalmc.Main; +import com.baitinq.primalmc.inventories.StaffInventory; +import com.sun.org.apache.xerces.internal.xs.datatypes.ByteList; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.GameMode; +import org.bukkit.Material; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.HumanEntity; +import org.bukkit.entity.Player; +import org.bukkit.event.Listener; +import org.bukkit.event.inventory.InventoryType; +import org.bukkit.inventory.Inventory; +import org.bukkit.inventory.InventoryHolder; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.ItemMeta; + +import java.util.*; + + +public class StaffCommand implements CommandExecutor, Listener { + + @SuppressWarnings( "deprecation" ) + + private static Main plugin; + private static StaffInventory staffinv; +//TODO PREFIX + + ArrayList<UUID> staff= new ArrayList<UUID>(); + + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + if(!(sender instanceof Player)){ + sender.sendMessage(ChatColor.RED+"This command is only executable by players."); + } + Player player = (Player) sender; + if(player.hasPermission("primalmc.staff")){ + if(!staff.contains(player.getUniqueId())){ + player.sendMessage(ChatColor.GOLD+"Staff Mode Enabled."); + player.setGameMode(GameMode.CREATIVE); + plugin.addToStaffMode(player); + // player.getInventory(); + // staffinv.CreateInv(player); + plugin.setVanished(player); + + + return true; + } + player.sendMessage(ChatColor.GOLD+"Staff Mode Disabled."); + player.setGameMode(GameMode.SURVIVAL); + plugin.removeFromStaffMode(player); + plugin.removeVanished(player); + //player.getInventory().setContents(); + + + + + } + else{ + player.sendMessage(ChatColor.RED+"You don't have permission to use this command."); + + } return true; + } + + public void Vanish(Player player){ + for (Player p : Bukkit.getServer().getOnlinePlayers()){ + p.hidePlayer(player); + } + + } + + public void UnVanish(Player player){ + for (Player p : Bukkit.getServer().getOnlinePlayers()){ + p.showPlayer(player); + } + + } +} + + + diff --git a/src/com/baitinq/primalmc/commands/StoreCommand.java b/src/com/baitinq/primalmc/commands/StoreCommand.java new file mode 100644 index 0000000..48d79e5 --- /dev/null +++ b/src/com/baitinq/primalmc/commands/StoreCommand.java @@ -0,0 +1,24 @@ +package com.baitinq.primalmc.commands; + +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +public class StoreCommand implements CommandExecutor{ + + private String store = "store.primalmc.com"; + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + if(!(sender instanceof Player)){ + sender.sendMessage(ChatColor.RED+"Only executable by players."); + } + Player player = (Player) sender; + player.sendMessage(ChatColor.YELLOW+"The PrimalMC Store is "+ChatColor.GOLD+ store); + + + return true; + } +} diff --git a/src/com/baitinq/primalmc/commands/TeamspeakCommand.java b/src/com/baitinq/primalmc/commands/TeamspeakCommand.java new file mode 100644 index 0000000..f9d2cc0 --- /dev/null +++ b/src/com/baitinq/primalmc/commands/TeamspeakCommand.java @@ -0,0 +1,24 @@ +package com.baitinq.primalmc.commands; + +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +public class TeamspeakCommand implements CommandExecutor{ + + public String teamspeak = "ts.primalmc.com"; + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + if(!(sender instanceof Player)){ + sender.sendMessage(ChatColor.RED+"Only executable by players."); + } + Player player = (Player) sender; + player.sendMessage(ChatColor.YELLOW+"The PrimalMC Teamspeak is "+ChatColor.GOLD+ teamspeak); + + + return true; + } +} \ No newline at end of file diff --git a/src/com/baitinq/primalmc/commands/VanishCommand.java b/src/com/baitinq/primalmc/commands/VanishCommand.java new file mode 100644 index 0000000..ad4248f --- /dev/null +++ b/src/com/baitinq/primalmc/commands/VanishCommand.java @@ -0,0 +1,47 @@ +package com.baitinq.primalmc.commands; + +import com.baitinq.primalmc.Main; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.craftbukkit.libs.org.ibex.nestedvm.util.Platform; +import org.bukkit.entity.Player; + +import java.util.ArrayList; +import java.util.UUID; + +public class VanishCommand implements CommandExecutor{ + + @SuppressWarnings( "deprecation" ) + + private static Main plugin; + + //TODO PREFIX + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + Player player = (Player) sender; + if(!(sender instanceof Player)){ + sender.sendMessage(ChatColor.RED+"This command is only executable by players."); + } + + if(player.hasPermission("primalmc.staff")){ + if(!plugin.Vanished.contains(player.getUniqueId())){ + plugin.Vanished.add(player.getUniqueId()); + return true; + } + + plugin.Vanished.remove(player.getUniqueId()); + return true; + + } + + player.sendMessage(ChatColor.RED+"You dont have permission to use this command."); + + return true; + } +} + + diff --git a/src/com/baitinq/primalmc/commands/WebsiteCommand.java b/src/com/baitinq/primalmc/commands/WebsiteCommand.java new file mode 100644 index 0000000..aaa2e6b --- /dev/null +++ b/src/com/baitinq/primalmc/commands/WebsiteCommand.java @@ -0,0 +1,24 @@ +package com.baitinq.primalmc.commands; + +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +public class WebsiteCommand implements CommandExecutor{ + + private String website = "www.primalmc.com"; + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + if(!(sender instanceof Player)){ + sender.sendMessage(ChatColor.RED+"Only executable by players."); + } + Player player = (Player) sender; + player.sendMessage(ChatColor.YELLOW+"The PrimalMC Website is "+ChatColor.GOLD+ website); + + + return true; + } +} diff --git a/src/com/baitinq/primalmc/events/FirstLogin.java b/src/com/baitinq/primalmc/events/FirstLogin.java new file mode 100644 index 0000000..0aefbd6 --- /dev/null +++ b/src/com/baitinq/primalmc/events/FirstLogin.java @@ -0,0 +1,32 @@ +package com.baitinq.primalmc.events; + +import com.baitinq.primalmc.Main; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerJoinEvent; + +public class FirstLogin implements Listener{ + + private static Main plugin; + public FirstLogin(Main plugin){ + this.plugin = plugin; + } + + int players = plugin.getConfig().getInt("number"); + + @EventHandler + public void FirstLogin(PlayerJoinEvent event){ + Player player = event.getPlayer(); + if(!player.hasPlayedBefore()){ + players++; + Bukkit.getServer().broadcastMessage(plugin.PREFIX+ChatColor.GOLD+""+ player +ChatColor.YELLOW +"has joined the server"+" ("+ChatColor.DARK_GRAY+players+"#"+ChatColor.GRAY+")"); + plugin.saveConfig(); + plugin.reloadConfig(); + } + } + + +} diff --git a/src/com/baitinq/primalmc/events/HubEvents.java b/src/com/baitinq/primalmc/events/HubEvents.java new file mode 100644 index 0000000..a1b43bf --- /dev/null +++ b/src/com/baitinq/primalmc/events/HubEvents.java @@ -0,0 +1,78 @@ +package com.baitinq.primalmc.events; + +import com.baitinq.primalmc.Main; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.Material; +import org.bukkit.event.entity.EntityCombustEvent; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.event.entity.EntitySpawnEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerToggleFlightEvent; + +public class HubEvents implements Listener { + + private static Main plugin; + + + //anti mob-spawn + public void MobSpawn(final EntitySpawnEvent event){ + if(plugin.getConfig().getBoolean("hub", true)){ + event.setCancelled(true); + } + } + + //no damage in hub + public void Damage(final EntityDamageByEntityEvent event){ + if(plugin.getConfig().getBoolean("hub", true)){ + event.setCancelled(true); + } + } + //no burning in hub + public void CombustEvent(final EntityCombustEvent event){ + if(plugin.getConfig().getBoolean("hub", true)){ + event.setCancelled(true); + } + } + //tp to Spawn if they fall into void + public void VoidFall(final EntityDamageEvent event){ + Player player = (Player) event.getEntity(); + if(plugin.getConfig().getBoolean("hub", true)){ + if(event.getCause().equals(EntityDamageEvent.DamageCause.VOID) && event.getEntity().equals(player)){ + player.teleport(player.getWorld().getSpawnLocation()); + } + } + } + + //doublejump method + @EventHandler + public void DoubleJump(final PlayerMoveEvent event){ + Player player = (Player) event.getPlayer(); + if(plugin.getConfig().getBoolean("doublejump", true)){ + if((player.getGameMode()!=GameMode.CREATIVE) && (player.getLocation().subtract(0, 1, 0).getBlock().getType()!= Material.AIR) && (!player.isFlying())){ + player.setAllowFlight(true); + } + } + + } + //actual double jump + @EventHandler + public void DoubleJumpUtil(final PlayerToggleFlightEvent event){ + Player player = (Player) event.getPlayer(); + if(plugin.getConfig().getBoolean("doublejump", true)){ + if(player.getGameMode()==GameMode.CREATIVE){ + return; + } + event.setCancelled(true); + player.setAllowFlight(false); + player.setFlying(false); + player.setVelocity(player.getLocation().getDirection().multiply(1.5).setY(1)); + + } + } + +} diff --git a/src/com/baitinq/primalmc/events/PlayerJoin.java b/src/com/baitinq/primalmc/events/PlayerJoin.java new file mode 100644 index 0000000..2680958 --- /dev/null +++ b/src/com/baitinq/primalmc/events/PlayerJoin.java @@ -0,0 +1,31 @@ +package com.baitinq.primalmc.events; + +import com.baitinq.primalmc.Main; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import com.baitinq.primalmc.utils.ChatUtils; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerJoinEvent; + +public class PlayerJoin implements Listener { + + private static Main plugin; + + @EventHandler + public void JoinEvent(PlayerJoinEvent event){ + Player player = event.getPlayer(); + event.setJoinMessage(""); + player.sendMessage(ChatColor.GOLD+" PrimalMC"); + player.sendMessage(ChatColor.YELLOW+""+ChatColor.STRIKETHROUGH+"----------------------------"); + player.sendMessage(ChatColor.GOLD+"www.primalmc.com"); + player.sendMessage(ChatColor.GOLD+"ts.primalmc.net"); + player.sendMessage(ChatColor.GOLD+"store.primalmc.com"); + player.sendMessage(ChatColor.YELLOW+""+ChatColor.STRIKETHROUGH+"----------------------------"); + + + } + + +} diff --git a/src/com/baitinq/primalmc/events/StaffEvents/Events.java b/src/com/baitinq/primalmc/events/StaffEvents/Events.java new file mode 100644 index 0000000..a8a739a --- /dev/null +++ b/src/com/baitinq/primalmc/events/StaffEvents/Events.java @@ -0,0 +1,53 @@ +package com.baitinq.primalmc.events.StaffEvents; + +import com.baitinq.primalmc.Main; +import com.baitinq.primalmc.commands.StaffCommand; +import org.bukkit.entity.Entity; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.event.block.BlockPlaceEvent; +import org.bukkit.event.player.PlayerInteractEntityEvent; +import org.bukkit.event.player.PlayerPickupItemEvent; + +public class Events implements Listener { + + private static Main plugin; + private static StaffCommand staffcmd; + + public Events(Main plugin){ + this.plugin = plugin; + } + + //@EventHandler + //public void PickupItem(PlayerPickupItemEvent event){ + // Player player = event.getPlayer(); + //if(plugin.staff.contains(player.getUniqueId())){ + //player.setCanPickupItems(false); + //} + // } + + public void PlayerInteractEntity(PlayerInteractEntityEvent event){ + Player player = event.getPlayer(); + //if(plugin.staff.contains(player.getUniqueId())){ + event.setCancelled(true); + player.sendMessage("You can not interact while vanished"); + + } + public void BlockPlace(BlockPlaceEvent event){ + Player player = event.getPlayer(); + //if(plugin.getStaff().contains(player.getUniqueId())) + event.setCancelled(true); + player.sendMessage("You can not build while vanished"); + + } + + public void BlockBreak(BlockBreakEvent event){ + Player player = event.getPlayer(); + //if(plugin.staff.contains(player.getUniqueId())){ + event.setCancelled(true); + player.sendMessage("You can not build when vanished"); + + } +} diff --git a/src/com/baitinq/primalmc/events/StaffJoin.java b/src/com/baitinq/primalmc/events/StaffJoin.java new file mode 100644 index 0000000..c3a75d5 --- /dev/null +++ b/src/com/baitinq/primalmc/events/StaffJoin.java @@ -0,0 +1,30 @@ +package com.baitinq.primalmc.events; + +import com.baitinq.primalmc.Main; +import com.baitinq.primalmc.utils.ChatUtils; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerJoinEvent; + +public class StaffJoin implements Listener{ + + private static Main plugin; + public StaffJoin(Main plugin){ + this.plugin = plugin; + } + String staffprefix = plugin.STAFF; + String prefix = plugin.PREFIX; + @EventHandler + public void StaffJoin(PlayerJoinEvent event){ + Player player = event.getPlayer(); + if(player.hasPermission("primalmc.staff")){ + Bukkit.getServer().broadcast(prefix+ ChatColor.GOLD+player+ChatColor.GRAY+" has joined the server.", "primalmc.staff"); + + + + } + } +} \ No newline at end of file diff --git a/src/com/baitinq/primalmc/inventories/Items/StaffItems.java b/src/com/baitinq/primalmc/inventories/Items/StaffItems.java new file mode 100644 index 0000000..52a5ac6 --- /dev/null +++ b/src/com/baitinq/primalmc/inventories/Items/StaffItems.java @@ -0,0 +1,40 @@ +package com.baitinq.primalmc.inventories.Items; + +import org.bukkit.ChatColor; +import org.bukkit.Material; +import org.bukkit.entity.Player; +import org.bukkit.event.Listener; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.ItemMeta; + +import java.util.ArrayList; + +public class StaffItems implements Listener { + + public void VanishItem(Player player){ + ItemStack vanishitem = new ItemStack(Material.CAKE, 1); + ItemMeta vanishmeta = vanishitem.getItemMeta(); + + vanishmeta.setDisplayName(ChatColor.GREEN + "Vanish"); + + ArrayList<String> vanishlore = new ArrayList<String>(); + vanishlore.add(ChatColor.YELLOW + "Right click this to get in and out of vanish!"); + + vanishmeta.setLore(vanishlore); + vanishitem.setItemMeta(vanishmeta); + } + + public void AlertsItem(Player player){ + ItemStack alertsitem = new ItemStack(Material.REDSTONE_BLOCK, 1); + ItemMeta alertsmeta = alertsitem.getItemMeta(); + + alertsmeta.setDisplayName(ChatColor.RED + "Alerts"); + + ArrayList<String> vanishlore = new ArrayList<String>(); + vanishlore.add(ChatColor.YELLOW + "Right click this to get enable and disable alerts"); + + alertsmeta.setLore(vanishlore); + alertsitem.setItemMeta(alertsmeta); + } + +} diff --git a/src/com/baitinq/primalmc/inventories/StaffInventory.java b/src/com/baitinq/primalmc/inventories/StaffInventory.java new file mode 100644 index 0000000..1266de7 --- /dev/null +++ b/src/com/baitinq/primalmc/inventories/StaffInventory.java @@ -0,0 +1,25 @@ +package com.baitinq.primalmc.inventories; + +import com.baitinq.primalmc.Main; +import com.baitinq.primalmc.inventories.Items.StaffItems; +import org.bukkit.ChatColor; +import org.bukkit.Material; +import org.bukkit.entity.Player; +import org.bukkit.event.Listener; +import org.bukkit.inventory.Inventory; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.ItemMeta; + +import java.util.ArrayList; + +public class StaffInventory implements Listener{ + + private static Main plugin; + private static StaffItems items; + + public void StaffInv(Player player){ + Inventory staffinv = plugin.getServer().createInventory(null, 36, ChatColor.GOLD + "StaffInventory"); + //staffinv.setContents(items.VanishItem()); + + } +} diff --git a/src/com/baitinq/primalmc/utils/ChatUtils.java b/src/com/baitinq/primalmc/utils/ChatUtils.java new file mode 100644 index 0000000..07c312f --- /dev/null +++ b/src/com/baitinq/primalmc/utils/ChatUtils.java @@ -0,0 +1,28 @@ +package com.baitinq.primalmc.utils; + +import com.baitinq.primalmc.Main; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.entity.Player; + +public class ChatUtils { + + private static Main plugin; + + public ChatUtils(Main plugin){ + this.plugin = plugin; + } + //translates the weird s to & in color codes + public static String chat(String msg){ + return ChatColor.translateAlternateColorCodes('&',msg); + } + + //sends a message to all players with "primalmc.staff" permission + public static void StaffMsg(String message){ + for(Player player : Bukkit.getServer().getOnlinePlayers()){ + if(player.hasPermission("primalmc.staff")){ + player.sendMessage(message); + } + } + } +} diff --git a/src/com/baitinq/primalmc/utils/ConfigurationManager.java b/src/com/baitinq/primalmc/utils/ConfigurationManager.java new file mode 100644 index 0000000..4f39bbe --- /dev/null +++ b/src/com/baitinq/primalmc/utils/ConfigurationManager.java @@ -0,0 +1,59 @@ +package com.baitinq.primalmc.utils; + +import com.baitinq.primalmc.Main; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.configuration.file.FileConfiguration; +import org.bukkit.configuration.file.YamlConfiguration; + +import java.io.File; +import java.io.IOError; +import java.io.IOException; + +public class ConfigurationManager { + + private Main plugin = Main.getPlugin(Main.class); + + + public FileConfiguration playerscfg; + public File playersfile; + + public void setup(){ + + if(!plugin.getDataFolder().exists()){ + plugin.getDataFolder().mkdir(); + } + playersfile = new File(plugin.getDataFolder(),"players.yml"); + + if(!playersfile.exists()){ + try{ + playersfile.createNewFile(); + }catch (IOException e){ + Bukkit.getServer().getConsoleSender().sendMessage(ChatColor.RED+"Could not create players.yml"); + } + } + playerscfg = YamlConfiguration.loadConfiguration(playersfile); + } + + public FileConfiguration getPlayers() { + return playerscfg; + } + + public void SavePlayers(){ + try{ + playerscfg.save(playersfile); + + }catch (IOException e){ + Bukkit.getServer().getConsoleSender().sendMessage(ChatColor.RED+"Could not save players.yml"); + } + } + public void ReloadPlayers(){ + try{ + playerscfg = YamlConfiguration.loadConfiguration(playersfile); + + }catch(IOError e){ + + playerscfg = YamlConfiguration.loadConfiguration(playersfile); + } + } +} diff --git a/src/config.yml b/src/config.yml new file mode 100644 index 0000000..6be211a --- /dev/null +++ b/src/config.yml @@ -0,0 +1,3 @@ +PrimalVersion: 1.0 +hub: false +doublejump: false \ No newline at end of file diff --git a/src/players.yml b/src/players.yml new file mode 100644 index 0000000..238c7ea --- /dev/null +++ b/src/players.yml @@ -0,0 +1 @@ +players: \ No newline at end of file diff --git a/src/plugin.yml b/src/plugin.yml new file mode 100644 index 0000000..32e9660 --- /dev/null +++ b/src/plugin.yml @@ -0,0 +1,21 @@ +name: PrimalMC +version: 0.1-Alpha +author: Baitinq +main: com.baitinq.primalmc.Main +description: PrimalMC Network Core Plugin. +load: STARTUP +commands: + staff: + aliases: [mod, primalstaff] + vanish: + aliases: [v] + alert: + aliases: [broadcast, primalalert] + teamspeak: + aliases: [ts, primalts, primalteamspeak] + discord: + aliases: [disc, pdisc, primaldiscord] + website: + aliases: [website, www, primalwebsite, pwebsite, pwww, web, pweb] + store: + aliases: [primalstore, pstore] |