├── .classpath ├── .github └── workflows │ └── maven-publish.yml ├── .gitignore ├── .project ├── .settings ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs └── org.eclipse.m2e.core.prefs ├── README.md ├── jitpack.yml ├── pom.xml ├── resources ├── LICENSE └── plugin.yml └── src ├── .gitignore └── com └── Zrips └── CMI ├── CMI.java ├── Config.java ├── Containers ├── ActionType.java ├── BasicRecipe.java ├── BlockStateType.java ├── CMIBanEntry.java ├── CMIBanRecords.java ├── CMICollision.java ├── CMIColorTypes.java ├── CMICounter.java ├── CMIDamageCause.java ├── CMIDirection.java ├── CMIEquipmentSlot.java ├── CMIEvent.java ├── CMIExperience.java ├── CMIHitBox.java ├── CMIInteractType.java ├── CMIIpBanEntry.java ├── CMIItemDonations.java ├── CMIItemRepair.java ├── CMIKitUsage.java ├── CMIPlayerInventory.java ├── CMIRay.java ├── CMIRayTrace.java ├── CMISpawner.java ├── CMISunMover.java ├── CMITabComplete.java ├── CMITextCleaner.java ├── CMITimeRate.java ├── CMITreeType.java ├── CMIUser.java ├── CMIUserAlert.java ├── CMIUserJailData.java ├── CMIVanish.java ├── ChunkInfo.java ├── ChunkPreviewInfo.java ├── CommandAlias.java ├── CommandAliasType.java ├── CommandReg.java ├── CondenseResult.java ├── CounterInfo.java ├── DamageControl.java ├── Direction.java ├── FixChunkInfo.java ├── LocationType.java ├── PInfo.java ├── PlayerMail.java ├── PlayerNote.java ├── RandomTeleport.java ├── RegionFiles.java ├── ScanFindPlace.java ├── SilentChest.java ├── SleepStats.java ├── Snd.java ├── Speed.java ├── UCInfo.java ├── itemInfo.java ├── teleportAll.java └── worldFlyState.java ├── CustomEventTrigers └── AnvilLstener.java ├── Locale ├── CMILC.java └── Language.java ├── Modules ├── AStand │ ├── ArmorStandCopy.java │ ├── ArmorStandManager.java │ └── ArmorStandSave.java ├── Afk │ ├── AfkInfo.java │ ├── AfkManager.java │ └── checkInfo.java ├── Alias │ ├── AliasManager.java │ └── Allias.java ├── Animations │ ├── AnimationManager.java │ └── LeatherAnimation.java ├── Anvil │ ├── AnvilManager.java │ └── CMIAnvilGUI.java ├── ArmorEffects │ └── ArmorEffectManager.java ├── AttachedCommands │ ├── CustomNBTManager.java │ └── itemCooldown.java ├── BungeeCord │ ├── BungeeCordManager.java │ ├── BungeeCordServer.java │ ├── BungeePlayer.java │ ├── CMIBungeeCord.java │ ├── CMIBungeeType.java │ └── ServerListPing.java ├── Chat │ ├── CMIChatBubble.java │ ├── CMIPlayerMessageColor.java │ ├── ChatBubbleManager.java │ └── ChatManager.java ├── ChatFilter │ ├── ChatFilterManager.java │ ├── ChatFilterRule.java │ ├── MessageLog.java │ └── RuleResponse.java ├── ChatFormat │ ├── CMIChatRoom.java │ └── ChatFormatManager.java ├── ChatTag │ └── TagManager.java ├── ChunkPreview │ └── ChunkPreview.java ├── CmdCooldown │ ├── CMICmdCooldown.java │ ├── CmdCooldown.java │ └── CooldownManager.java ├── CmdCost │ ├── CMICommandCost.java │ ├── CMICommandCostManager.java │ └── CMICommandCostUsage.java ├── CmdWarmUp │ ├── CmdWarmUp.java │ ├── WarmUpInfo.java │ └── WarmUpManager.java ├── CustomText │ ├── CText.java │ ├── CTextManager.java │ └── CTextPage.java ├── DataBase │ ├── .gitignore │ ├── DBClassLoader.java │ ├── DBConnection.java │ ├── DBConnectionPool.java │ ├── DBDAO.java │ ├── DBDrivers.java │ ├── DBManager.java │ ├── DBMySQL.java │ └── DBSQLite.java ├── DeathMessages │ ├── CMIDeathMsgInfo.java │ ├── CMIDeathType.java │ ├── CMIKillerInfo.java │ ├── DeathMessageManager.java │ ├── DeathMessages.java │ └── damageInformation.java ├── DiscordSRV │ └── DiscordSRVManager.java ├── Display │ ├── CMIBillboard.java │ ├── CMIDisplay.java │ ├── CMIDisplayTransform.java │ ├── CMIDisplayType.java │ ├── CMIInteractionEntity.java │ ├── CMIItemDisplay.java │ ├── CMITextAlignment.java │ └── CMITextDisplay.java ├── DynMap │ └── DynMapManager.java ├── DynamicSigns │ ├── CMISign.java │ └── SignManager.java ├── Economy │ ├── CMIEconomyAcount.java │ ├── Economy.java │ ├── EconomyManager.java │ ├── VaultHandler.java │ └── VaultManager.java ├── Elytra │ └── ElytraManager.java ├── Enchants │ └── EnchantManager.java ├── EventActions │ └── EventActionManager.java ├── FindBiome │ ├── FindBiomeInfo.java │ └── FindBiomeManager.java ├── FlightCharge │ ├── FlightCharge.java │ ├── FlightChargeManager.java │ ├── freeFall.java │ └── traveledDistance.java ├── GeoIP │ ├── Country.java │ ├── DatabaseInfo.java │ ├── IPLocation.java │ └── LookupService.java ├── Holograms │ ├── CMIDataWatcher.java │ ├── CMIFont.java │ ├── CMIHoloLineType.java │ ├── CMIHologram.java │ ├── CMIHologramBatch.java │ ├── CMIHologramClickEvent.java │ ├── CMIHologramLine.java │ ├── CMIHologramPage.java │ ├── HologramGUIEditor.java │ └── HologramManager.java ├── Homes │ ├── CmiHome.java │ ├── HomeManager.java │ └── HomeWorldLimit.java ├── Hooks │ ├── CMIHookSubType.java │ └── CMIHookType.java ├── InteractiveCommand │ ├── CMIInteractiveCommand.java │ ├── CMINPC.java │ ├── CitizensManager.java │ └── InteractiveCommandManager.java ├── InvEndEditor │ ├── EndWatcher.java │ └── EnderChestManager.java ├── InvRegEditor │ ├── CMIInvSee.java │ └── RegChestManager.java ├── Ips │ └── IpManager.java ├── Jail │ ├── CMIJail.java │ ├── CMIJailCell.java │ └── JailManager.java ├── Kits │ ├── Clickery.java │ ├── Kit.java │ └── KitsManager.java ├── LightFix │ ├── LightFix.java │ └── LightFixInfo.java ├── Mirror │ ├── MirrorManager.java │ ├── Mirrors.java │ └── Rotation.java ├── ModuleHandling │ ├── CMIModule.java │ ├── CMIModuleClass.java │ └── CMIModuleManager.java ├── NickName │ └── NickNameManager.java ├── Notify │ └── Notification.java ├── Packets │ ├── FakeInfo.java │ ├── PacketHandler.java │ ├── PacketInjector.java │ └── ToolBarLoad.java ├── Painting │ └── PaintingManager.java ├── Particl │ ├── CMIPEAnimation.java │ ├── CMIPEAnimationInterface.java │ ├── CMIPECircle.java │ ├── CMIPEFireWork.java │ ├── CMIVisualEffect.java │ ├── ParticleManager.java │ └── Vectors.java ├── Patrol │ └── PatrolManager.java ├── Permissions │ ├── BPermissionsHandler.java │ ├── GroupManagerXHandler.java │ ├── LuckPermsHandler4.java │ ├── LuckPermsHandler5.java │ ├── NoneHandler.java │ ├── PEXHandler.java │ ├── PermissionInfo.java │ ├── PermissionInterface.java │ ├── PermissionsManager.java │ ├── PowerfullPermsHandler.java │ ├── PowerfullPermsgustav9797Handler.java │ ├── UltraPermissions3Handler.java │ ├── VaultHandler.java │ └── ZPermissionsHandler.java ├── Placeholders │ ├── MVdWPlaceholderAPIHook.java │ ├── Placeholder.java │ └── PlaceholderCache.java ├── PlayTime │ ├── CMIPlayDay.java │ ├── CMIPlayTime.java │ ├── CMIPlayTimeFormat.java │ └── PlayTimeManager.java ├── PlayTimeRewards │ ├── PTROneTime.java │ ├── PTRRepeat.java │ ├── PlayTimeReward.java │ ├── PlayTimeRewardsManager.java │ └── PlaytimeClaimCache.java ├── PlayerCombat │ ├── CMIPlayerCombat.java │ ├── CombatDamageType.java │ ├── EntityHeadDrop.java │ ├── EntityKillCount.java │ ├── PlayerCombatManager.java │ └── PlayerKillCount.java ├── PlayerMeta │ └── PlayerMeta.java ├── PlayerOptions │ ├── PlayerOption.java │ └── PlayerOptionsManager.java ├── Portals │ ├── CMIPlane.java │ ├── CMIPlaneIntersection.java │ ├── CMIPortal.java │ ├── CMIVector2D.java │ ├── CMIVector3D.java │ ├── CuboidArea.java │ ├── PortalManager.java │ └── RandomLoc.java ├── Ranks │ ├── AureliumManager.java │ ├── CMIRank.java │ ├── CMIRankPlaceholder.java │ ├── InformTimer.java │ ├── JobsManager.java │ ├── McMMOManager.java │ ├── RankManager.java │ ├── rankPlaceholderAction.java │ └── rankPlaceholderType.java ├── Recipes │ ├── RecipeManager.java │ └── recipeInformation.java ├── Region │ ├── CMIRegion.java │ ├── WorldInfo.java │ └── WorldManager.java ├── Repair │ └── RepairManager.java ├── ReplaceBlock │ ├── BRInfo.java │ └── ReplaceBlock.java ├── SavedInv │ ├── CMIInventory.java │ ├── SavedInventories.java │ └── SavedInventoryManager.java ├── SavedItems │ ├── SavedItem.java │ └── SavedItemManager.java ├── Scan │ ├── Scan.java │ ├── ScanInfo.java │ └── ScanResultLocations.java ├── Scavenger │ ├── CMIScavengeItem.java │ └── ScavengeManager.java ├── Search │ ├── Search.java │ ├── SearchInfo.java │ └── SearchType.java ├── Selection │ ├── SelectionManager.java │ ├── SelectionSides.java │ └── Visualizer.java ├── Sheduler │ ├── SchedTime.java │ ├── Schedule.java │ └── SchedulerManager.java ├── ShulkerBoxInventory │ ├── ShulkerBoxManager.java │ └── ShulkerInv.java ├── Skin │ ├── CMISkin.java │ └── SkinManager.java ├── SpawnerCharge │ ├── PlayerCharge.java │ ├── SCharges.java │ └── SpawnerChargeManager.java ├── SpecializedCommands │ ├── SpecCMDCooldown.java │ ├── SpecializedCommandManager.java │ ├── overflowCommands.java │ └── specCommand.java ├── Statistics │ ├── CMIStats.java │ └── StatsManager.java ├── TabList │ ├── CMITabSortingOrder.java │ ├── CMITabSortingType.java │ ├── TabList.java │ ├── TabListCache.java │ ├── TabListHeaderFooterHandler.java │ └── TabListManager.java ├── TagName │ └── TagNameManager.java ├── Teleportations │ ├── CMIChunkSnapShot.java │ ├── CMIRunningRandomTeleports.java │ ├── CMITeleportCondition.java │ ├── CMITeleportFeedback.java │ ├── CMITeleportLocation.java │ ├── CMITeleportType.java │ ├── CMITeleportationBounds.java │ ├── DangerousTp.java │ ├── PositionRelativeData.java │ ├── RandomTeleportationManager.java │ ├── SafeTeleport.java │ ├── TeleportHandler.java │ ├── TeleportManager.java │ └── TpInfo.java ├── TimedCommands │ └── TimedCommandManager.java ├── Totems │ ├── TotemBossBar.java │ └── TotemManager.java ├── Vanish │ ├── VanishAction.java │ └── VanishManager.java ├── ViewRange │ ├── ViewRangeInfo.java │ └── ViewRangeManager.java ├── Votifier │ └── VotifierManager.java ├── Warnings │ ├── CMIPlayerWarning.java │ ├── CMIWarningCategory.java │ └── WarningManager.java ├── Warps │ ├── CmiWarp.java │ └── WarpManager.java ├── Worlds │ ├── CMIChunk.java │ ├── CMIRegion.java │ ├── CMIWorld.java │ ├── UpdateOnWorldLoad.java │ └── WorldManager.java └── Worth │ ├── WorthEnchantment.java │ ├── WorthItem.java │ ├── WorthItemCheck.java │ └── WorthManager.java ├── NBT └── NMS.java ├── PlayerManager.java ├── Reflections.java ├── TabComplete.java ├── commands ├── .gitignore ├── CAnnotation.java ├── CMICommand.java ├── Cmd.java ├── CommandsHandler.java └── Void.java ├── events ├── CMIAfkEnterEvent.java ├── CMIAfkKickEvent.java ├── CMIAfkLeaveEvent.java ├── CMIAnvilItemRenameEvent.java ├── CMIAnvilItemRepairEvent.java ├── CMIArmorChangeEvent.java ├── CMIAsyncPlayerTeleportEvent.java ├── CMIBackpackOpenEvent.java ├── CMICancellableEvent.java ├── CMIChequeCreationEvent.java ├── CMIChequeUsageEvent.java ├── CMIChunkChangeEvent.java ├── CMIConfigReloadEvent.java ├── CMIEvent.java ├── CMIEventCommandEvent.java ├── CMIIpBanEvent.java ├── CMIIpUnBanEvent.java ├── CMIPlayerBanEvent.java ├── CMIPlayerCancellableEvent.java ├── CMIPlayerChatFilterCapsEvent.java ├── CMIPlayerChatFilterEvent.java ├── CMIPlayerEvent.java ├── CMIPlayerFakeEntityInteractEvent.java ├── CMIPlayerItemsSellEvent.java ├── CMIPlayerJailEvent.java ├── CMIPlayerKickEvent.java ├── CMIPlayerNickNameChangeEvent.java ├── CMIPlayerOpenArmorStandEditorEvent.java ├── CMIPlayerSitEvent.java ├── CMIPlayerTeleportRequestEvent.java ├── CMIPlayerUnBanEvent.java ├── CMIPlayerUnVanishEvent.java ├── CMIPlayerUnjailEvent.java ├── CMIPlayerVanishEvent.java ├── CMIPlayerWarnEvent.java ├── CMIPlayerWarpEvent.java ├── CMIPortalCreateEvent.java ├── CMIPortalUseEvent.java ├── CMIPvEEndEventAsync.java ├── CMIPvEStartEventAsync.java ├── CMIPvPEndEventAsync.java ├── CMIPvPStartEventAsync.java ├── CMISelectionEvent.java ├── CMISelectionVisualizationEvent.java ├── CMIStaffMessageEvent.java ├── CMIUserBalanceChangeEvent.java ├── CMIUserCancellableEvent.java ├── CMIUserEvent.java ├── CMIUserHomeCreateEvent.java ├── CMIUserHomeRemoveEvent.java ├── CMIUserKitAcquireEvent.java └── EventAnnotation.java └── utils ├── CMIDiskUsage.java ├── CMIEncoder.java ├── CMINBTListType.java ├── ChunkFix.java ├── DateFormat.java ├── EssentialsConverter.java ├── FileDownloader.java ├── HDConverter.java ├── Lag.java ├── ListEditor.java ├── PlayerVaultManager.java ├── Purge.java ├── SpawnUtil.java ├── TimeManager.java ├── UUIDFetcher.java ├── UnloadChunks.java ├── Util.java ├── VersionChecker.java └── importSettings.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.github/workflows/maven-publish.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created 2 | # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path 3 | 4 | name: Maven Package 5 | 6 | on: 7 | release: 8 | types: [created] 9 | 10 | jobs: 11 | build: 12 | 13 | runs-on: ubuntu-latest 14 | permissions: 15 | contents: read 16 | packages: write 17 | 18 | steps: 19 | - uses: actions/checkout@v4 20 | - name: Set up JDK 21 21 | uses: actions/setup-java@v3 22 | with: 23 | java-version: '21' 24 | distribution: 'temurin' 25 | server-id: github # Value of the distributionManagement/repository/id field of the pom.xml 26 | settings-path: ${{ github.workspace }} # location for the settings.xml file 27 | 28 | - name: Build with Maven 29 | run: mvn -B package --file pom.xml 30 | 31 | - name: Publish to GitHub Packages Apache Maven 32 | run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml 33 | env: 34 | GITHUB_TOKEN: ${{ github.token }} 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.ear 17 | *.zip 18 | *.tar.gz 19 | *.rar 20 | 21 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 22 | hs_err_pid* 23 | /bin/ 24 | /target/ 25 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | CMI-API 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.jdt.core.javanature 22 | 23 | 24 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | encoding/src=UTF-8 4 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CMI-API 2 | Public API for CMI plugin 3 | 4 | ### Misc. 5 | More information and examples [zrips.net/cmi/api](https://www.zrips.net/cmi/api/) 6 | -------------------------------------------------------------------------------- /jitpack.yml: -------------------------------------------------------------------------------- 1 | jdk: 2 | - openjdk21 3 | -------------------------------------------------------------------------------- /resources/LICENSE: -------------------------------------------------------------------------------- 1 | No code usage in any other plugin than those maintained by Zrips or without his specific permission. 2 | 3 | Copyright (C) 2022 4 | 5 | Zrips#9691 6 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | /JobCommand.class 2 | /JobsCommands.class 3 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/ActionType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public enum ActionType { 4 | NORMAL("Normal"), 5 | ENDER("Ender"), 6 | CHECKING("Checking"), 7 | NONE("NONE"); 8 | 9 | private String name; 10 | private ActionType(String name) { 11 | this.name = name; 12 | } 13 | 14 | public String getName() { 15 | return name; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/BasicRecipe.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.inventory.ItemStack; 4 | 5 | public class BasicRecipe { 6 | private ItemStack result; 7 | private ItemStack input; 8 | 9 | public BasicRecipe(ItemStack result, ItemStack input) { 10 | this.result = result; 11 | this.input = input; 12 | } 13 | 14 | public ItemStack getResult() { 15 | return result.clone(); 16 | } 17 | 18 | public ItemStack getInput() { 19 | return input.clone(); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIBanRecords.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.Date; 4 | import java.util.HashMap; 5 | import java.util.UUID; 6 | 7 | import org.bukkit.BanEntry; 8 | 9 | public class CMIBanRecords { 10 | 11 | private static HashMap banCache = new HashMap(); 12 | 13 | public static CMIBanEntry getBanEntryRaw(UUID uuid) { 14 | return banCache.get(uuid); 15 | } 16 | 17 | public static CMIBanEntry getBanEntry(UUID uuid) { 18 | return null; 19 | } 20 | 21 | public static CMIBanEntry addBanEntry(UUID uuid, CMIBanEntry entry) { 22 | return banCache.put(uuid, entry); 23 | } 24 | 25 | public static CMIBanEntry removeBanEntry(UUID uuid) { 26 | return banCache.remove(uuid); 27 | } 28 | 29 | public static void updateBanEntry(CMIUser user, BanEntry entry) { 30 | } 31 | 32 | public static CMIUser setBanned(CMIUser user, String reason, CMIUser by, Date until, Date when) { 33 | return null; 34 | } 35 | 36 | public static CMIUser unBan(CMIUser user) { 37 | return null; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMICollision.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.util.Vector; 5 | 6 | public class CMICollision { 7 | 8 | private Vector min; 9 | private Vector max; 10 | 11 | public CMICollision(CMIHitBox box) { 12 | this(box.getMin(), box.getMax()); 13 | } 14 | 15 | public CMICollision(Vector min, Vector max) { 16 | this(min.getX(), min.getY(), min.getZ(), max.getX(), max.getY(), max.getZ()); 17 | } 18 | 19 | public CMICollision(double x1, double y1, double z1, double x2, double y2, double z2) { 20 | this.min = new Vector(Math.min(x1, x2), Math.min(y1, y2), Math.min(z1, z2)); 21 | this.max = new Vector(Math.max(x1, x2), Math.max(y1, y2), Math.max(z1, z2)); 22 | } 23 | 24 | public Vector getMin() { 25 | return min; 26 | } 27 | 28 | public Vector getMax() { 29 | return max; 30 | } 31 | 32 | public double min(int i) { 33 | return 0; 34 | 35 | } 36 | 37 | public double max(int i) { 38 | return 0; 39 | 40 | } 41 | 42 | public boolean collides(CMIRay ray, double tmin, double tmax) { 43 | return true; 44 | } 45 | 46 | public double collidesNearest(CMIRay ray, double tmin, double tmax) { 47 | return 0; 48 | } 49 | 50 | public boolean contains(Location location) { 51 | return true; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIColorTypes.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public enum CMIColorTypes { 4 | publicmessage(true), privatemessage(true), me(true), nickname(true), signs(false), books(true), itemname(true), itemlore(true); 5 | 6 | private boolean clean; 7 | 8 | CMIColorTypes(boolean clean) { 9 | this.clean = clean; 10 | } 11 | 12 | public boolean isClean() { 13 | return clean; 14 | } 15 | 16 | public void setClean(boolean clean) { 17 | this.clean = clean; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMICounter.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.HashMap; 4 | import java.util.UUID; 5 | 6 | public class CMICounter { 7 | 8 | private static HashMap> counters = new HashMap>(); 9 | 10 | public static boolean isJoinedCounter(UUID uuid) { 11 | return counters.containsKey(uuid); 12 | } 13 | 14 | public static void setJoinedCounter(UUID uuid, boolean joinedCounter) { 15 | } 16 | 17 | public static HashMap getCounter(UUID uuid) { 18 | return counters.computeIfAbsent(uuid, a -> new HashMap()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIDamageCause.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.HashMap; 4 | 5 | import org.bukkit.event.entity.EntityDamageEvent.DamageCause; 6 | 7 | public enum CMIDamageCause { 8 | 9 | BLOCK_EXPLOSION, 10 | CONTACT, 11 | CRAMMING, 12 | CUSTOM, 13 | DRAGON_BREATH, 14 | DROWNING, 15 | DRYOUT, 16 | ENTITY_ATTACK, 17 | ENTITY_EXPLOSION, 18 | ENTITY_SWEEP_ATTACK, 19 | FALL, 20 | FALLING_BLOCK, 21 | FIRE, 22 | FIRE_TICK, 23 | FLY_INTO_WALL, 24 | HOT_FLOOR, 25 | LAVA, 26 | LIGHTNING, 27 | MAGIC, 28 | MELTING, 29 | POISON, 30 | PROJECTILE, 31 | STARVATION, 32 | SUFFOCATION, 33 | SUICIDE, 34 | THORNS, 35 | VOID, 36 | WITHER; 37 | 38 | static HashMap byName = new HashMap(); 39 | 40 | private String name = null; 41 | private String secondaryName = null; 42 | private DamageCause cause = null; 43 | 44 | CMIDamageCause() { 45 | this(null, null); 46 | } 47 | 48 | CMIDamageCause(String name, String secondaryName) { 49 | this.name = name; 50 | this.secondaryName = secondaryName; 51 | } 52 | 53 | public String getName() { 54 | return name; 55 | } 56 | 57 | public String getSecondaryName() { 58 | return secondaryName; 59 | } 60 | 61 | public static CMIDamageCause getByName(String name) { 62 | return byName.get(name.toLowerCase().replace("_", "")); 63 | } 64 | 65 | public DamageCause getCause() { 66 | return cause; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIEquipmentSlot.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.event.player.PlayerInteractAtEntityEvent; 4 | import org.bukkit.event.player.PlayerInteractEvent; 5 | import org.bukkit.inventory.EquipmentSlot; 6 | 7 | public enum CMIEquipmentSlot { 8 | NONE, CHEST, FEET, HAND, HEAD, LEGS, OFF_HAND; 9 | public static CMIEquipmentSlot get(String name) { 10 | return null; 11 | } 12 | 13 | public static CMIEquipmentSlot get(EquipmentSlot slot) { 14 | return get(slot.toString()); 15 | } 16 | 17 | public static CMIEquipmentSlot get(PlayerInteractAtEntityEvent event) { 18 | return null; 19 | } 20 | 21 | public static CMIEquipmentSlot get(PlayerInteractEvent event) { 22 | return null; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.block.Block; 4 | import org.bukkit.block.Sign; 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.event.block.BlockPlaceEvent; 7 | import org.bukkit.inventory.EquipmentSlot; 8 | import org.bukkit.inventory.ItemStack; 9 | 10 | import net.Zrips.CMILib.Version.Version; 11 | 12 | public class CMIEvent { 13 | 14 | public static BlockPlaceEvent createSignEvent(Block block, Sign sign, Player player) { 15 | return null; 16 | } 17 | 18 | public static BlockPlaceEvent placeSignEvent(Block block, Sign sign, Player player) { 19 | return null; 20 | } 21 | 22 | public static BlockPlaceEvent placeBlockEvent(Block block, Player player) { 23 | return null; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIInteractType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.event.block.Action; 5 | 6 | public enum CMIInteractType { 7 | LeftClick, RightClick, LeftShiftClick, RightShiftClick; 8 | 9 | public static CMIInteractType getByName(String name) { 10 | return null; 11 | } 12 | 13 | public static CMIInteractType getFromAction(Action action, Player player) { 14 | 15 | CMIInteractType type = CMIInteractType.LeftClick; 16 | return type; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIIpBanEntry.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public class CMIIpBanEntry { 4 | private String ip; 5 | private Long banedAt; 6 | private String Source; 7 | private Long bannedUntil; 8 | private String reason; 9 | 10 | public CMIIpBanEntry(String ip, Long banedAt, String bannedBy, Long bannedUntil, String reason) { 11 | this.ip = ip; 12 | this.banedAt = banedAt; 13 | this.Source = bannedBy; 14 | this.bannedUntil = bannedUntil; 15 | this.reason = reason; 16 | } 17 | 18 | public String getKey() { 19 | return ip; 20 | } 21 | 22 | public void setKey(String ip) { 23 | this.ip = ip; 24 | } 25 | 26 | public Long getBanedAt() { 27 | return banedAt; 28 | } 29 | 30 | public void setBanedAt(Long banedAt) { 31 | this.banedAt = banedAt; 32 | } 33 | 34 | public String getSource() { 35 | return Source; 36 | } 37 | 38 | public void setSource(String bannedBy) { 39 | this.Source = bannedBy; 40 | } 41 | 42 | public Long getExpires() { 43 | return bannedUntil; 44 | } 45 | 46 | public void setExpires(Long bannedUntil) { 47 | this.bannedUntil = bannedUntil; 48 | } 49 | 50 | public String getReason() { 51 | return reason; 52 | } 53 | 54 | public void setReason(String reason) { 55 | this.reason = reason; 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIItemRepair.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.List; 4 | 5 | import org.bukkit.inventory.ItemStack; 6 | 7 | public class CMIItemRepair { 8 | 9 | public static double getRepairCost(List items) { 10 | double repairCost = 0D; 11 | for (ItemStack one : items) { 12 | repairCost += getRepairCost(one); 13 | } 14 | return format(repairCost); 15 | } 16 | 17 | public static double getRepairCost(ItemStack item) { 18 | return 0D; 19 | } 20 | 21 | private static double format(double number) { 22 | return (int) (number * 100) / 100D; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIKitUsage.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import com.Zrips.CMI.Modules.Kits.Kit; 4 | 5 | public class CMIKitUsage { 6 | 7 | Kit kit; 8 | private long lastUsage = 0; 9 | private int usedTimes = 0; 10 | 11 | public CMIKitUsage(Kit kit) { 12 | this(kit, System.currentTimeMillis(), 0); 13 | } 14 | 15 | public CMIKitUsage(Kit kit, Long lastUsage) { 16 | this(kit, lastUsage, 0); 17 | } 18 | 19 | public CMIKitUsage(Kit kit, Long lastUsage, int usedTimes) { 20 | this.kit = kit; 21 | this.lastUsage = lastUsage == null ? 0 : lastUsage; 22 | this.usedTimes = usedTimes; 23 | } 24 | 25 | public Long getLastUsage() { 26 | return lastUsage; 27 | } 28 | 29 | public void setLastUsage(Long lastUsage) { 30 | this.lastUsage = lastUsage == null ? 0 : lastUsage; 31 | } 32 | 33 | public void addUsedTimes() { 34 | usedTimes++; 35 | } 36 | 37 | public int getUsedTimes() { 38 | return usedTimes; 39 | } 40 | 41 | public void setUsedTimes(int usedTimes) { 42 | this.usedTimes = usedTimes; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIRay.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.util.Vector; 5 | 6 | public class CMIRay { 7 | 8 | private Vector origin, direction; 9 | 10 | public CMIRay(Vector origin, Vector direction) { 11 | this.origin = origin; 12 | this.direction = direction; 13 | } 14 | 15 | public CMIRay(Player player) { 16 | this(player.getEyeLocation().toVector(), player.getLocation().getDirection()); 17 | } 18 | 19 | public Vector getOrigin() { 20 | return origin; 21 | } 22 | 23 | public Vector getDirection() { 24 | return direction; 25 | } 26 | 27 | public double origin(int i) { 28 | switch (i) { 29 | case 0: 30 | return origin.getX(); 31 | case 1: 32 | return origin.getY(); 33 | case 2: 34 | return origin.getZ(); 35 | default: 36 | return 0; 37 | } 38 | } 39 | 40 | public double direction(int i) { 41 | switch (i) { 42 | case 0: 43 | return direction.getX(); 44 | case 1: 45 | return direction.getY(); 46 | case 2: 47 | return direction.getZ(); 48 | default: 49 | return 0; 50 | } 51 | } 52 | 53 | public Vector getPoint(double distance) { 54 | return direction.clone().normalize().multiply(distance).add(origin); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIRayTrace.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.ArrayList; 4 | 5 | import org.bukkit.World; 6 | import org.bukkit.block.Block; 7 | import org.bukkit.entity.Player; 8 | import org.bukkit.util.Vector; 9 | 10 | public class CMIRayTrace { 11 | 12 | Vector origin; 13 | Vector direction; 14 | World world; 15 | 16 | public CMIRayTrace(Player player) { 17 | this.origin = player.getEyeLocation().toVector(); 18 | this.direction = player.getLocation().getDirection(); 19 | this.world = player.getWorld(); 20 | } 21 | 22 | public CMIRayTrace(World world, Vector origin, Vector direction) { 23 | this.origin = origin; 24 | this.direction = direction; 25 | this.world = world; 26 | } 27 | 28 | //get a point on the raytrace at X blocks away 29 | public Vector getPostion(double blocksAway) { 30 | return origin.clone().add(direction.clone().multiply(blocksAway)); 31 | } 32 | 33 | public ArrayList traverse(double blocksAway, double accuracy) { 34 | return null; 35 | } 36 | 37 | public ArrayList getBlocks(double blocksAway) { 38 | return getBlocks(blocksAway, 0.01); 39 | } 40 | 41 | public ArrayList getBlocks(double blocksAway, double accuracy) { 42 | 43 | return null; 44 | } 45 | 46 | public ArrayList getLastTwoBlocks(double blocksAway) { 47 | return getLastTwoBlocks(blocksAway, 0.05); 48 | } 49 | 50 | public ArrayList getLastTwoBlocks(double blocksAway, double accuracy) { 51 | return null; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMISunMover.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import net.Zrips.CMILib.Version.Schedulers.CMITask; 4 | 5 | public class CMISunMover { 6 | private CMITask task = null; 7 | private String moving; 8 | 9 | public CMITask getTimeMoverTask() { 10 | return task; 11 | } 12 | 13 | public void setTimeMoverTask(CMITask task) { 14 | this.task = task; 15 | } 16 | 17 | public String getMoving() { 18 | return moving; 19 | } 20 | 21 | public void setMoving(String moving) { 22 | this.moving = moving; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMITabComplete.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.HashMap; 4 | import java.util.List; 5 | 6 | public class CMITabComplete { 7 | 8 | public HashMap tabs = new HashMap(); 9 | 10 | public static final String externalSeparator = ","; 11 | public static final String internalSeparator = "><"; 12 | 13 | public List getTabCompleteList(String[] args) { 14 | 15 | return null; 16 | } 17 | 18 | private static boolean notRepeating(String word, String[] args) { 19 | 20 | for (String one : args) { 21 | if (one.equalsIgnoreCase(word)) 22 | return false; 23 | } 24 | return true; 25 | } 26 | 27 | public String getTabComplete(String tab) { 28 | 29 | return null; 30 | } 31 | 32 | private Object getTab(String tab, HashMap map) { 33 | 34 | return null; 35 | } 36 | 37 | public void addTabComplete(String tab) { 38 | tab = tab.replace(internalSeparator, externalSeparator); 39 | addTab(tab, tabs); 40 | } 41 | 42 | private Object addTab(String tab, HashMap map) { 43 | 44 | return null; 45 | } 46 | 47 | private static void generalAdd(String tab, HashMap map) { 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMITextCleaner.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public class CMITextCleaner { 6 | 7 | private static int cicles = 0; 8 | 9 | public static String cleanFromColorCodes(Object p, String msg, CMIColorTypes type, boolean clean) { 10 | return cleanFromColorCodes(p, msg, type, clean, false); 11 | } 12 | 13 | public static String cleanFromColorCodes(Object p, String msg, CMIColorTypes type, boolean clean, boolean forceClean) { 14 | 15 | return null; 16 | } 17 | 18 | private static boolean hasColorPermission(Player player, CMIColorTypes type, String color, boolean wildCard) { 19 | return true; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMITimeRate.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import net.Zrips.CMILib.Time.timeState; 4 | 5 | public class CMITimeRate { 6 | 7 | private int everyTicks = 1; 8 | private int addAmount = 1; 9 | private timeState state = timeState.day; 10 | private boolean turnCycleOff = false; 11 | 12 | public CMITimeRate(timeState state, int everyTicks, int addAmount) { 13 | this.state = state; 14 | this.everyTicks = everyTicks; 15 | this.addAmount = addAmount; 16 | } 17 | 18 | public int getAddAmount() { 19 | return addAmount; 20 | } 21 | 22 | public void setAddAmount(int addAmount) { 23 | this.addAmount = addAmount; 24 | } 25 | 26 | public int getEveryTicks() { 27 | return everyTicks; 28 | } 29 | 30 | public void setEveryTicks(int everyTicks) { 31 | this.everyTicks = everyTicks; 32 | } 33 | 34 | public timeState getState() { 35 | return state; 36 | } 37 | 38 | public void setState(timeState state) { 39 | this.state = state; 40 | } 41 | 42 | public boolean isTurnCycleOff() { 43 | return turnCycleOff; 44 | } 45 | 46 | public void setTurnCycleOff(boolean turnCycleOff) { 47 | this.turnCycleOff = turnCycleOff; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMITreeType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.HashMap; 4 | 5 | import org.bukkit.TreeType; 6 | 7 | public enum CMITreeType { 8 | 9 | ACACIA(), 10 | AZALEA(), 11 | BIG_TREE("Large oak", "bigoak", "big"), 12 | BIRCH("white", "whitebark"), 13 | BROWN_MUSHROOM("browngiantmushroom"), 14 | CHORUS_PLANT("chorus"), 15 | COCOA_TREE("Cocoa"), 16 | CRIMSON_FUNGUS(), 17 | CHERRY(), 18 | DARK_OAK(), 19 | JUNGLE(), 20 | JUNGLE_BUSH("jungleshrub"), 21 | MEGA_REDWOOD("Large spruce"), 22 | RED_MUSHROOM("redgiantmushroom"), 23 | REDWOOD("Spruce", "sequoia", "sequoioideae"), 24 | SMALL_JUNGLE(), 25 | SWAMP("swamptree"), 26 | TALL_BIRCH(), 27 | TALL_REDWOOD("Tall spruce", "bigspruce", "tallsequoia", "tallsequoioideae"), 28 | TALL_MANGROVE(), 29 | TREE("Oak", "regular"), 30 | WARPED_FUNGUS(), 31 | MANGROVE(); 32 | 33 | private String name; 34 | private String[] identifiers; 35 | private TreeType type = null; 36 | 37 | CMITreeType(String... identifiers) { 38 | 39 | } 40 | 41 | static HashMap map = new HashMap(); 42 | 43 | public static CMITreeType getType(String name) { 44 | return null; 45 | } 46 | 47 | public String getName() { 48 | return name; 49 | } 50 | 51 | public String[] getIdentifiers() { 52 | return identifiers; 53 | } 54 | 55 | public TreeType getType() { 56 | return type; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIUserAlert.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public class CMIUserAlert { 4 | 5 | private long until = 0; 6 | private String reason = null; 7 | 8 | public CMIUserAlert(long until) { 9 | this(until, null); 10 | } 11 | 12 | public CMIUserAlert(long until, String reason) { 13 | this.until = until; 14 | this.reason = reason; 15 | } 16 | 17 | public long getUntil() { 18 | return until; 19 | } 20 | 21 | public void setUntil(long until) { 22 | this.until = until; 23 | } 24 | 25 | public String getReason() { 26 | return reason; 27 | } 28 | 29 | public void setReason(String reason) { 30 | this.reason = reason; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CMIUserJailData.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.UUID; 4 | 5 | import com.Zrips.CMI.Modules.Jail.CMIJailCell; 6 | 7 | public class CMIUserJailData { 8 | private long jailedForTime = 0; 9 | private String jailedReason; 10 | private UUID jailedBy = null; 11 | private CMIJailCell cell; 12 | 13 | public long getJailedForTime() { 14 | return jailedForTime; 15 | } 16 | 17 | public void setJailedForTime(long jailedForTime) { 18 | this.jailedForTime = jailedForTime; 19 | } 20 | 21 | public String getJailedReason() { 22 | return jailedReason; 23 | } 24 | 25 | public void setJailedReason(String jailedReason) { 26 | this.jailedReason = jailedReason; 27 | } 28 | 29 | public UUID getJailedBy() { 30 | return jailedBy; 31 | } 32 | 33 | public void setJailedBy(UUID jailedBy) { 34 | this.jailedBy = jailedBy; 35 | } 36 | 37 | public CMIJailCell getCell() { 38 | return cell; 39 | } 40 | 41 | public void setCell(CMIJailCell cell) { 42 | this.cell = cell; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/ChunkInfo.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.World; 4 | 5 | public class ChunkInfo { 6 | 7 | private int x; 8 | private int z; 9 | private World w; 10 | 11 | public ChunkInfo(int x, int z) { 12 | this.x = x; 13 | this.z = z; 14 | } 15 | 16 | public int getX() { 17 | return x; 18 | } 19 | 20 | public int getZ() { 21 | return z; 22 | } 23 | 24 | public World getW() { 25 | return w; 26 | } 27 | 28 | public void setW(World w) { 29 | this.w = w; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CommandAliasType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public enum CommandAliasType { 4 | base, subbase, custom; 5 | } 6 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CondenseResult.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.bukkit.inventory.ItemStack; 7 | 8 | public class CondenseResult { 9 | private int iAmount = 0; 10 | private int rAmount = 0; 11 | private List items = new ArrayList(); 12 | 13 | public CondenseResult() { 14 | } 15 | 16 | public CondenseResult(int inputAmount, int resultAmount) { 17 | this.iAmount = inputAmount; 18 | this.rAmount = resultAmount; 19 | } 20 | 21 | public int getImputAmount() { 22 | return iAmount; 23 | } 24 | 25 | public void addImputAmount(int imputAmount) { 26 | this.iAmount += imputAmount; 27 | } 28 | 29 | public int getResultAmount() { 30 | return rAmount; 31 | } 32 | 33 | public void addResultAmount(int resultAmount) { 34 | this.rAmount += resultAmount; 35 | } 36 | 37 | public List getToAdd() { 38 | return items; 39 | } 40 | 41 | public void addToAdd(ItemStack toAdd) { 42 | this.items.add(toAdd); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/CounterInfo.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.util.List; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | import com.Zrips.CMI.CMI; 8 | 9 | public class CounterInfo { 10 | 11 | private String message; 12 | private List list; 13 | private int t; 14 | private CMI plugin; 15 | 16 | public CounterInfo(String message, List list, int t, CMI plugin) { 17 | this.message = message; 18 | this.list = list; 19 | this.t = t; 20 | this.plugin = plugin; 21 | } 22 | 23 | public String getMessage() { 24 | return message; 25 | } 26 | 27 | public List getList() { 28 | return list; 29 | } 30 | 31 | public int getLeftTime() { 32 | return t; 33 | } 34 | 35 | public void lowerTime() { 36 | t--; 37 | } 38 | 39 | public CMI getPlugin() { 40 | return plugin; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/DamageControl.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.event.entity.EntityDamageEvent.DamageCause; 4 | 5 | public class DamageControl { 6 | 7 | private String node; 8 | private DamageCause cause; 9 | private double mult; 10 | 11 | public DamageControl(String node, DamageCause cause, double mult) { 12 | this.node = node; 13 | this.cause = cause; 14 | this.mult = mult; 15 | } 16 | 17 | public String getNode() { 18 | return node; 19 | } 20 | 21 | public void setNode(String node) { 22 | this.node = node; 23 | } 24 | 25 | public DamageCause getCause() { 26 | return cause; 27 | } 28 | 29 | public void setCause(DamageCause cause) { 30 | this.cause = cause; 31 | } 32 | 33 | public double getMult() { 34 | return mult; 35 | } 36 | 37 | public void setMult(double mult) { 38 | this.mult = mult; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/Direction.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public enum Direction { 4 | SOUTH("South"), 5 | WEST("West"), 6 | NORTH("North"), 7 | EAST("East"); 8 | 9 | private String direction; 10 | 11 | private Direction(String direction) { 12 | this.direction = direction; 13 | } 14 | 15 | public String getDirection() { 16 | return direction; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/LocationType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public enum LocationType { 4 | INVENTORY("Inventory"), 5 | ENDERCHEST("Enderchest"); 6 | 7 | private String name; 8 | private LocationType(String name) { 9 | this.name = name; 10 | } 11 | 12 | public String getName() { 13 | return name; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/PInfo.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public class PInfo { 4 | 5 | private String permission; 6 | private String desc; 7 | private boolean cmd = false; 8 | private boolean others; 9 | 10 | public PInfo(String permission, String desc, boolean cmd) { 11 | this.permission = permission; 12 | this.desc = desc; 13 | this.cmd = cmd; 14 | } 15 | 16 | public PInfo(String permission, String desc, boolean cmd, boolean others) { 17 | this.permission = permission; 18 | this.desc = desc; 19 | this.cmd = cmd; 20 | this.others = others; 21 | } 22 | 23 | public PInfo(String permission, String desc) { 24 | this.permission = permission; 25 | this.desc = desc; 26 | } 27 | 28 | public String getPermission() { 29 | return permission; 30 | } 31 | 32 | public void setPermission(String permission) { 33 | this.permission = permission; 34 | } 35 | 36 | public String getDesc() { 37 | return desc; 38 | } 39 | 40 | public void setDesc(String desc) { 41 | this.desc = desc; 42 | } 43 | 44 | public boolean isCmd() { 45 | return cmd; 46 | } 47 | 48 | public void setCmd(boolean cmd) { 49 | this.cmd = cmd; 50 | } 51 | 52 | public boolean isOthers() { 53 | return others; 54 | } 55 | 56 | public void setOthers(boolean others) { 57 | this.others = others; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/PlayerMail.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public class PlayerMail { 4 | 5 | private String sender; 6 | private long time; 7 | private long keepFor; 8 | private String message; 9 | 10 | public PlayerMail(String sender, Long time, String message) { 11 | this(sender, time, message, 0L); 12 | } 13 | 14 | public PlayerMail(String sender, Long time, String message, Long keepForSeconds) { 15 | this.sender = sender; 16 | this.time = time == null ? 0 : time; 17 | this.message = message; 18 | keepFor = keepForSeconds == null ? 0 : keepForSeconds; 19 | } 20 | 21 | public String getSender() { 22 | return sender; 23 | } 24 | 25 | public void setSender(String sender) { 26 | this.sender = sender; 27 | } 28 | 29 | public Long getTime() { 30 | return time; 31 | } 32 | 33 | public void setTime(Long time) { 34 | this.time = time == null ? 0 : time; 35 | } 36 | 37 | public String getMessage() { 38 | return message; 39 | } 40 | 41 | public void setMessage(String message) { 42 | this.message = message; 43 | } 44 | 45 | public Long getKeepFor() { 46 | return keepFor; 47 | } 48 | 49 | public void setKeepFor(Long keepFor) { 50 | this.keepFor = keepFor == null ? 0 : keepFor; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/PlayerNote.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public class PlayerNote { 4 | 5 | private String sender; 6 | private long time; 7 | private String note; 8 | 9 | public PlayerNote(String sender, Long time, String note) { 10 | this.sender = sender; 11 | this.time = time == null ? 0 : time; 12 | this.note = note; 13 | } 14 | 15 | public String getSender() { 16 | return sender; 17 | } 18 | 19 | public void setSender(String sender) { 20 | this.sender = sender; 21 | } 22 | 23 | public Long getTime() { 24 | return time; 25 | } 26 | 27 | public void setTime(Long time) { 28 | this.time = time == null ? 0 : time; 29 | } 30 | 31 | public String getNote() { 32 | return note; 33 | } 34 | 35 | public void setNote(String note) { 36 | this.note = note; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/RegionFiles.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import java.io.*; 4 | 5 | public class RegionFiles { 6 | private static final int SECTOR_BYTES = 4096; 7 | private static final int SECTOR_INTS = SECTOR_BYTES / 4; 8 | 9 | private RandomAccessFile file; 10 | private final int offsets[]; 11 | 12 | public RegionFiles(File path) { 13 | offsets = new int[SECTOR_INTS]; 14 | try { 15 | file = new RandomAccessFile(path, "r"); 16 | file.seek(0); 17 | for (int i = 0; i < SECTOR_INTS; ++i) { 18 | int offset = file.readInt(); 19 | offsets[i] = offset; 20 | } 21 | } catch (IOException e) { 22 | e.printStackTrace(); 23 | } 24 | } 25 | 26 | private int getOffset(int x, int z) { 27 | return offsets[x + z * 32]; 28 | } 29 | 30 | public boolean hasChunk(int x, int z) { 31 | return getOffset(x, z) != 0; 32 | } 33 | 34 | public void close() throws IOException { 35 | file.close(); 36 | } 37 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/ScanFindPlace.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | public enum ScanFindPlace { 4 | CHEST("Chest"), 5 | TRAPPED_CHEST("Traped chest"), 6 | FURNACE("Furnace"), 7 | DROPPER("Dropper"), 8 | DISPENSER("Dispenser"), 9 | ITEM_FRAME("Item frame"), 10 | HOPPER("Hopper"), 11 | BREWING_STAND("Brewing stand"), 12 | HORSE("Horse"), 13 | ENTITY("Entity"), 14 | MINECART_CHEST("Minecart chest"), 15 | MINECART_HOPPER("Minecart hopper"), 16 | ARMOR_STAND("Armor stand"), 17 | SHULKER_BOX("Shulker box"), 18 | SHULKER_INCEPTION("Shulker box inside [type]"), 19 | UNKNOWN("Unknown"); 20 | 21 | private String name; 22 | private ScanFindPlace(String name) { 23 | this.name = name; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/SilentChest.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.entity.Player; 5 | import org.bukkit.inventory.Inventory; 6 | 7 | public class SilentChest { 8 | private Player player; 9 | private Inventory inv; 10 | private Location loc; 11 | private boolean editing = true; 12 | 13 | public SilentChest(Player player, Inventory inv, Location loc) { 14 | this.player = player; 15 | this.inv = inv; 16 | this.loc = loc; 17 | } 18 | 19 | public Player getPlayer() { 20 | return this.player; 21 | } 22 | 23 | public Inventory getInv() { 24 | return this.inv; 25 | } 26 | 27 | public Location getLocation() { 28 | return this.loc; 29 | } 30 | 31 | public void setEditing(boolean state) { 32 | this.editing = state; 33 | } 34 | 35 | public boolean isEditing() { 36 | return this.editing; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/itemInfo.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import net.Zrips.CMILib.Items.CMIMaterial; 4 | 5 | public class itemInfo { 6 | 7 | private CMIMaterial mat = null; 8 | private int chance = 100; 9 | 10 | public itemInfo(CMIMaterial mat) { 11 | this.mat = mat; 12 | } 13 | 14 | public CMIMaterial getMat() { 15 | return mat; 16 | } 17 | 18 | public void setId(CMIMaterial mat) { 19 | this.mat = mat; 20 | } 21 | 22 | public int getChance() { 23 | return chance; 24 | } 25 | 26 | public void setChance(int chance) { 27 | this.chance = chance; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Containers/worldFlyState.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Containers; 2 | 3 | import org.bukkit.GameMode; 4 | 5 | public class worldFlyState { 6 | 7 | private boolean state = false; 8 | private boolean temp = true; 9 | private GameMode mode = GameMode.SURVIVAL; 10 | 11 | public worldFlyState( 12 | GameMode mode, boolean state, boolean temp) { 13 | 14 | this.mode = mode; 15 | this.state = state; 16 | this.temp = temp; 17 | } 18 | 19 | public boolean isFlyEnabled() { 20 | return state; 21 | } 22 | 23 | public void setFlyEnabled(boolean state) { 24 | this.state = state; 25 | } 26 | 27 | public boolean isTemp() { 28 | return temp; 29 | } 30 | 31 | public void setTemp(boolean temp) { 32 | this.temp = temp; 33 | } 34 | 35 | public GameMode getGameMode() { 36 | return mode; 37 | } 38 | 39 | public void setMode(GameMode mode) { 40 | this.mode = mode; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/CustomEventTrigers/AnvilLstener.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.CustomEventTrigers; 2 | 3 | import org.bukkit.event.EventHandler; 4 | import org.bukkit.event.EventPriority; 5 | import org.bukkit.event.Listener; 6 | import org.bukkit.event.inventory.InventoryClickEvent; 7 | 8 | import com.Zrips.CMI.CMI; 9 | 10 | public class AnvilLstener implements Listener { 11 | 12 | private CMI plugin; 13 | 14 | public AnvilLstener(CMI plugin) { 15 | this.plugin = plugin; 16 | } 17 | 18 | @EventHandler(priority = EventPriority.NORMAL) 19 | public void onitemRename(InventoryClickEvent event) { 20 | 21 | } 22 | 23 | @EventHandler(priority = EventPriority.NORMAL) 24 | public void onItemRepair(InventoryClickEvent event) { 25 | 26 | } 27 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Afk/checkInfo.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Afk; 2 | 3 | import org.bukkit.Location; 4 | 5 | public class checkInfo { 6 | private Long time = 0L; 7 | private Location loc; 8 | private double prevAngle = 0; 9 | 10 | checkInfo(Location loc) { 11 | this.loc = loc; 12 | updateTime(); 13 | } 14 | 15 | public void updateTime() { 16 | time = System.currentTimeMillis(); 17 | } 18 | 19 | public void updateLocation(Location loc) { 20 | this.loc = loc.clone(); 21 | } 22 | 23 | public boolean isSameDirection(Location loc) { 24 | return this.loc.getPitch() == loc.getPitch() && this.loc.getYaw() == loc.getYaw(); 25 | } 26 | 27 | public boolean isOnlyPitchChange(Location loc) { 28 | return this.loc.getX() == loc.getX() && this.loc.getY() == loc.getY() && this.loc.getZ() == loc.getZ(); 29 | } 30 | 31 | public boolean timeToCheck() { 32 | return time + 400L < System.currentTimeMillis(); 33 | } 34 | 35 | public Long getTime() { 36 | return time; 37 | } 38 | 39 | public Location getLocation() { 40 | return loc; 41 | } 42 | 43 | public double getPrevAngle() { 44 | return prevAngle; 45 | } 46 | 47 | public void setPrevAngle(double prevAngle) { 48 | this.prevAngle = prevAngle; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Alias/Allias.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Alias; 2 | 3 | import org.bukkit.command.Command; 4 | import org.bukkit.command.CommandSender; 5 | 6 | import com.Zrips.CMI.Containers.CommandAlias; 7 | import com.Zrips.CMI.Containers.CommandReg; 8 | 9 | public class Allias extends CommandReg { 10 | 11 | public Allias(String command, CommandAlias alias) { 12 | super(command, alias); 13 | } 14 | 15 | @Override 16 | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { 17 | return true; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Anvil/AnvilManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Anvil; 2 | 3 | import org.bukkit.Material; 4 | import org.bukkit.inventory.ItemStack; 5 | import org.bukkit.inventory.meta.ItemMeta; 6 | import org.bukkit.inventory.meta.Repairable; 7 | 8 | import com.Zrips.CMI.CMI; 9 | 10 | public class AnvilManager { 11 | 12 | CMI plugin; 13 | 14 | public AnvilManager(CMI plugin) { 15 | this.plugin = plugin; 16 | } 17 | 18 | public int getRepairCost(ItemStack source, ItemStack source2, ItemStack result) { 19 | 20 | return 0; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/ArmorEffects/ArmorEffectManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.ArmorEffects; 2 | 3 | import java.util.HashSet; 4 | import java.util.Set; 5 | import java.util.UUID; 6 | 7 | import org.bukkit.entity.Player; 8 | import org.bukkit.potion.PotionEffect; 9 | import org.bukkit.potion.PotionEffectType; 10 | 11 | import com.Zrips.CMI.CMI; 12 | 13 | import net.Zrips.CMILib.Version.Schedulers.CMITask; 14 | 15 | public class ArmorEffectManager { 16 | 17 | private CMI plugin; 18 | 19 | public static final String NBTName = "CMIArmorEffects"; 20 | 21 | private Set players = new HashSet(); 22 | 23 | public ArmorEffectManager(CMI plugin) { 24 | this.plugin = plugin; 25 | } 26 | 27 | public void removePlayer(UUID uuid) { 28 | players.remove(uuid); 29 | if (players.isEmpty()) 30 | onDisable(); 31 | } 32 | 33 | public void addPlayer(UUID uuid) { 34 | players.add(uuid); 35 | } 36 | 37 | private CMITask saveId = null; 38 | 39 | public void onDisable() { 40 | if (saveId != null) { 41 | saveId.cancel(); 42 | saveId = null; 43 | } 44 | } 45 | 46 | public void tasker() { 47 | 48 | } 49 | 50 | public boolean checkPlayerArmor(Player player) { 51 | 52 | return true; 53 | } 54 | 55 | public static PotionEffect getPotionEffect(Player player, PotionEffectType type) { 56 | return null; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/AttachedCommands/itemCooldown.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.AttachedCommands; 2 | 3 | public class itemCooldown { 4 | private Long clickedOn = null; 5 | private Integer id = null; 6 | 7 | public Long getClickedOn() { 8 | return clickedOn; 9 | } 10 | 11 | public void setClickedOn(Long clickedOn) { 12 | this.clickedOn = clickedOn; 13 | } 14 | 15 | public Integer getId() { 16 | return id; 17 | } 18 | 19 | public void setId(Integer id) { 20 | this.id = id; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/BungeeCord/CMIBungeeType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.BungeeCord; 2 | 3 | public enum CMIBungeeType { 4 | BungeeCord, Velocity, Unknown; 5 | 6 | static CMIBungeeType getByName(String networkType) { 7 | for (CMIBungeeType one : CMIBungeeType.values()) { 8 | if (one.toString().equalsIgnoreCase(networkType)) 9 | return one; 10 | } 11 | return null; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Chat/CMIChatBubble.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Chat; 2 | 3 | import java.util.Set; 4 | 5 | import org.bukkit.Location; 6 | import org.bukkit.entity.Player; 7 | 8 | import com.Zrips.CMI.Modules.Display.CMITextDisplay; 9 | 10 | import net.Zrips.CMILib.Version.Schedulers.CMITask; 11 | 12 | public class CMIChatBubble { 13 | private CMITextDisplay tDisplay; 14 | private Player player; 15 | private Location originPoint; 16 | private Location prevloc; 17 | private String text; 18 | private long startTime; 19 | private long endTime; 20 | private Set receivers; 21 | 22 | private CMITask schedId = null; 23 | 24 | public CMIChatBubble(Player player, String text, Set receivers) { 25 | 26 | } 27 | 28 | public void show() { 29 | tasker(); 30 | } 31 | 32 | private void tasker() { 33 | 34 | } 35 | 36 | public void delete() { 37 | if (schedId != null) { 38 | schedId.cancel(); 39 | schedId = null; 40 | } 41 | remove(); 42 | } 43 | 44 | private void remove() { 45 | 46 | } 47 | 48 | private Location generateLoc() { 49 | return null; 50 | } 51 | 52 | private void spawnIn() { 53 | 54 | } 55 | 56 | private void sendUpdate() { 57 | 58 | } 59 | 60 | private void initialRecheckReceivers() { 61 | 62 | } 63 | 64 | private void recheckReceivers() { 65 | 66 | } 67 | 68 | private void generateDisplay() { 69 | 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Chat/CMIPlayerMessageColor.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Chat; 2 | 3 | import java.util.Set; 4 | import java.util.stream.Collectors; 5 | 6 | import javax.annotation.Nullable; 7 | 8 | import net.Zrips.CMILib.Colors.CMIChatColor; 9 | 10 | public class CMIPlayerMessageColor { 11 | 12 | private CMIChatColor color; 13 | private Set formats = null; 14 | 15 | public CMIPlayerMessageColor(CMIChatColor color) { 16 | this(color, null); 17 | } 18 | 19 | public CMIPlayerMessageColor(CMIChatColor color, @Nullable Set formats) { 20 | this.color = color; 21 | this.formats = formats == null ? null : formats.isEmpty() ? null : formats; 22 | } 23 | 24 | public CMIChatColor getColor() { 25 | return color; 26 | } 27 | 28 | public void setColor(CMIChatColor color) { 29 | this.color = color; 30 | } 31 | 32 | public Set getFormats() { 33 | return formats; 34 | } 35 | 36 | public void setFormat(Set formats) { 37 | this.formats = formats; 38 | } 39 | 40 | @Override 41 | public String toString() { 42 | return color.getBukkitColorCode() + formatsToString(); 43 | } 44 | 45 | public String formatsToString() { 46 | if (formats == null || formats.isEmpty()) { 47 | return ""; 48 | } 49 | 50 | return formats.stream() 51 | .map(CMIChatColor::getBukkitColorCode) 52 | .collect(Collectors.joining()); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/ChatFilter/MessageLog.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.ChatFilter; 2 | 3 | import java.util.ArrayList; 4 | import java.util.HashMap; 5 | import java.util.List; 6 | import java.util.Map.Entry; 7 | 8 | public class MessageLog { 9 | 10 | private HashMap messages = new HashMap(); 11 | private int range = 5; 12 | 13 | public MessageLog(int range) { 14 | this.range = range; 15 | } 16 | 17 | public void addMessage(String message) { 18 | messages.put(System.currentTimeMillis(), message); 19 | } 20 | 21 | private void removeOld() { 22 | List list = new ArrayList(); 23 | 24 | for (Entry one : messages.entrySet()) { 25 | if (one.getKey() + (range * 1000) < System.currentTimeMillis()) 26 | list.add(one.getKey()); 27 | } 28 | for (Long one : list) { 29 | messages.remove(one); 30 | } 31 | } 32 | 33 | public HashMap getMessages() { 34 | removeOld(); 35 | return messages; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/ChunkPreview/ChunkPreview.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.ChunkPreview; 2 | 3 | import java.util.UUID; 4 | import java.util.concurrent.ConcurrentHashMap; 5 | 6 | import com.Zrips.CMI.CMI; 7 | import com.Zrips.CMI.Containers.ChunkPreviewInfo; 8 | 9 | public class ChunkPreview { 10 | 11 | public ConcurrentHashMap Info = new ConcurrentHashMap(); 12 | private CMI plugin; 13 | 14 | public ChunkPreview(CMI plugin) { 15 | this.plugin = plugin; 16 | } 17 | 18 | public void clearCache(UUID uuid) { 19 | Info.remove(uuid); 20 | } 21 | 22 | public void loadRegionFile(ChunkPreviewInfo scan) { 23 | if (scan.getStartTime() == 0L) 24 | scan.setShowInfo(System.currentTimeMillis()); 25 | loadChunk(scan); 26 | } 27 | 28 | private void loadChunk(final ChunkPreviewInfo scan) { 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/CmdCooldown/CMICmdCooldown.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.CmdCooldown; 2 | 3 | import com.Zrips.CMI.Modules.Particl.ParticleManager.CMIPresetAnimations; 4 | 5 | public class CMICmdCooldown { 6 | 7 | private int cdSeconds = 0; 8 | private String command; 9 | private CMIPresetAnimations animation; 10 | 11 | public CMICmdCooldown(String command, int cdSeconds) { 12 | this.command = command; 13 | this.cdSeconds = cdSeconds; 14 | } 15 | 16 | public int getCooldownSeconds() { 17 | return cdSeconds; 18 | } 19 | 20 | public void setCooldown(int cdSeconds) { 21 | this.cdSeconds = cdSeconds; 22 | } 23 | 24 | public String getCommand() { 25 | return command; 26 | } 27 | 28 | public String getSubCommand() { 29 | return command.startsWith("cmi ") ? command.substring(4) : command; 30 | } 31 | 32 | public void setCommand(String command) { 33 | this.command = command; 34 | } 35 | 36 | public CMIPresetAnimations getAnimation() { 37 | return animation; 38 | } 39 | 40 | public void setAnimation(CMIPresetAnimations animation) { 41 | this.animation = animation; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/CmdCost/CMICommandCostManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.CmdCost; 2 | 3 | import java.util.HashMap; 4 | 5 | import org.bukkit.command.CommandSender; 6 | 7 | import com.Zrips.CMI.CMI; 8 | 9 | public class CMICommandCostManager { 10 | private HashMap costs = new HashMap(); 11 | 12 | CMI plugin; 13 | 14 | public CMICommandCostManager(CMI plugin) { 15 | this.plugin = plugin; 16 | } 17 | 18 | public int getCommandCostCount() { 19 | return costs.size(); 20 | } 21 | 22 | public void addCost(String cmd, double cost) { 23 | costs.put(cmd.toLowerCase(), new CMICommandCost(cmd, cost)); 24 | } 25 | 26 | public CMICommandCost getCost(String cmd) { 27 | 28 | return null; 29 | } 30 | 31 | public CMICommandCostUsage canUseCmd(CommandSender sender, String cmd) { 32 | 33 | return null; 34 | } 35 | 36 | public boolean isContinueCommand(CommandSender sender, String cmd) { 37 | 38 | return true; 39 | } 40 | 41 | private String fileName = "CommandCost.yml"; 42 | 43 | public boolean loadConfig(boolean isReload) { 44 | 45 | return true; 46 | } 47 | 48 | private static CMICommandCost get(String line) { 49 | 50 | return null; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/CmdCost/CMICommandCostUsage.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.CmdCost; 2 | 3 | public enum CMICommandCostUsage { 4 | Cant, Can, NoMoney, CostBypass, ReqConfirm; 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/CustomText/CTextPage.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.CustomText; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class CTextPage { 7 | 8 | private String label = null; 9 | private List lines = new ArrayList(); 10 | 11 | public CTextPage() { 12 | } 13 | 14 | public CTextPage(List lines) { 15 | this.lines = lines; 16 | } 17 | 18 | public String getLabel() { 19 | return label; 20 | } 21 | 22 | public CTextPage setLabel(String label) { 23 | this.label = label; 24 | return this; 25 | } 26 | 27 | public List getLines() { 28 | return lines; 29 | } 30 | 31 | public CTextPage setLines(List lines) { 32 | this.lines = lines; 33 | return this; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/DataBase/.gitignore: -------------------------------------------------------------------------------- 1 | /JobsConnection.class 2 | /JobsConnectionPool.class 3 | /JobsDAO.class 4 | /JobsDAOData.class 5 | /JobsDAOH2$JobsDAOH2SQLiteImporter.class 6 | /JobsDAOH2.class 7 | /JobsDAOMySQL.class 8 | /JobsDAOSQLite.class 9 | /JobsDriver.class 10 | /JobsDrivers.class 11 | /JobsDAO$1.class 12 | /JobsDAO$2.class 13 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/DataBase/DBClassLoader.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.DataBase; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | import java.net.URL; 6 | import java.net.URLClassLoader; 7 | 8 | import com.Zrips.CMI.CMI; 9 | 10 | public class DBClassLoader extends URLClassLoader { 11 | 12 | public DBClassLoader(CMI core) { 13 | super(new URL[0], core.getClass().getClassLoader()); 14 | } 15 | 16 | public void addFile(File f) throws IOException { 17 | addURL(f.toURI().toURL()); 18 | } 19 | 20 | @Override 21 | public void addURL(URL url) { 22 | for (URL u : getURLs()) 23 | if (url.sameFile(u)) 24 | return; 25 | 26 | super.addURL(url); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/DeathMessages/CMIDeathType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.DeathMessages; 2 | 3 | public enum CMIDeathType { 4 | Arrows, 5 | Cactus, 6 | Drowning, 7 | Suffocation, 8 | Elytra, 9 | Explosions, 10 | Falling, 11 | FallingBlocks, 12 | Fire, 13 | FireBall, 14 | EndCrystal, 15 | FireworkRockets, 16 | Lava, 17 | Lightning, 18 | MagmaBlock, 19 | Player, 20 | Block, 21 | Tnt, 22 | Mob, 23 | PotionsOfHarming, 24 | Projectile, 25 | Entity, 26 | Starving, 27 | Thorns, 28 | Trident, 29 | SplashPotion, 30 | Void, 31 | WitherEffect, 32 | Custom, 33 | Suicide; 34 | } 35 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/DeathMessages/DeathMessages.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.DeathMessages; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collections; 5 | import java.util.List; 6 | 7 | 8 | public class DeathMessages { 9 | 10 | private List messages = new ArrayList(); 11 | private String path; 12 | 13 | public DeathMessages(String path, List messages) { 14 | this.path = path; 15 | this.messages = messages; 16 | } 17 | 18 | public DeathMessages addMessage(String message) { 19 | messages.add(message); 20 | return this; 21 | } 22 | 23 | public String getRandom() { 24 | Collections.shuffle(messages); 25 | return messages.get(0); 26 | } 27 | 28 | public String getPath() { 29 | return path; 30 | } 31 | 32 | public List getMessages() { 33 | return messages; 34 | } 35 | 36 | public void setMessages(List messages) { 37 | this.messages = messages; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/DiscordSRV/DiscordSRVManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.DiscordSRV; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.CMI; 6 | 7 | public class DiscordSRVManager { 8 | 9 | private CMI plugin; 10 | 11 | private String channelName = null; 12 | 13 | public DiscordSRVManager(CMI plugin) { 14 | this.plugin = plugin; 15 | 16 | } 17 | 18 | public void sendDiscordDeathMessage(Player player, String deathMessage) { 19 | 20 | } 21 | 22 | public void sendDiscordMessage(Player player, String message) { 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Display/CMIBillboard.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Display; 2 | 3 | import org.bukkit.entity.Display.Billboard; 4 | 5 | public enum CMIBillboard { 6 | VERTICAL, CENTER, FIXED, HORIZONTAL; 7 | 8 | private Billboard bukkitBoard = null; 9 | 10 | public Billboard getBillboard() { 11 | if (bukkitBoard != null) 12 | return bukkitBoard; 13 | return Billboard.valueOf(this.toString()); 14 | } 15 | 16 | public static CMIBillboard getByName(String name) { 17 | for (CMIBillboard one : CMIBillboard.values()) { 18 | if (one.toString().equalsIgnoreCase(name)) 19 | return one; 20 | } 21 | return null; 22 | } 23 | 24 | public CMIBillboard next() { 25 | switch (this) { 26 | case CENTER: 27 | return CMIBillboard.VERTICAL; 28 | case FIXED: 29 | return CMIBillboard.CENTER; 30 | case HORIZONTAL: 31 | return CMIBillboard.FIXED; 32 | case VERTICAL: 33 | return CMIBillboard.HORIZONTAL; 34 | default: 35 | return CMIBillboard.CENTER; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Display/CMIDisplayTransform.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Display; 2 | 3 | public class CMIDisplayTransform { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Display/CMIDisplayType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Display; 2 | 3 | public enum CMIDisplayType { 4 | Text, Block, Item, Interaction; 5 | } 6 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Display/CMIInteractionEntity.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Display; 2 | 3 | import org.bukkit.Location; 4 | 5 | public class CMIInteractionEntity extends CMIDisplay { 6 | 7 | private org.bukkit.entity.Interaction td; 8 | 9 | public CMIInteractionEntity(Location loc) { 10 | super(CMIDisplayType.Interaction, loc); 11 | try { 12 | td = (org.bukkit.entity.Interaction) this.display; 13 | } catch (Throwable e) { 14 | e.printStackTrace(); 15 | } 16 | this.loc = loc; 17 | } 18 | 19 | @Override 20 | public void setWidth(double width) { 21 | td.setInteractionWidth((float) width); 22 | } 23 | 24 | @Override 25 | public void setHeight(double height) { 26 | td.setInteractionHeight((float) height); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Display/CMITextAlignment.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Display; 2 | 3 | import org.bukkit.entity.TextDisplay.TextAlignment; 4 | 5 | public enum CMITextAlignment { 6 | LEFT, CENTER, RIGHT; 7 | 8 | private TextAlignment bukkitBoard = null; 9 | 10 | public TextAlignment getTextAlignment() { 11 | if (bukkitBoard != null) 12 | return bukkitBoard; 13 | return TextAlignment.valueOf(this.toString()); 14 | } 15 | 16 | public static CMITextAlignment getByName(String name) { 17 | for (CMITextAlignment one : CMITextAlignment.values()) { 18 | if (one.toString().equalsIgnoreCase(name)) 19 | return one; 20 | } 21 | return null; 22 | } 23 | 24 | public CMITextAlignment next() { 25 | switch (this) { 26 | case CENTER: 27 | return CMITextAlignment.RIGHT; 28 | case LEFT: 29 | return CMITextAlignment.CENTER; 30 | case RIGHT: 31 | return CMITextAlignment.LEFT; 32 | default: 33 | return CMITextAlignment.CENTER; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/DynMap/DynMapManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.DynMap; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.CMI; 6 | import com.Zrips.CMI.Containers.CMIUser; 7 | 8 | public class DynMapManager { 9 | 10 | private CMI plugin; 11 | 12 | public DynMapManager(CMI plugin) { 13 | this.plugin = plugin; 14 | } 15 | 16 | public void init() { 17 | 18 | 19 | } 20 | 21 | public void processPlayer(Player player) { 22 | processPlayer(plugin.getPlayerManager().getUser(player)); 23 | } 24 | 25 | public void processPlayer(CMIUser user) { 26 | 27 | } 28 | 29 | public void sentMessage(Player player, String message) { 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Economy/VaultManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Economy; 2 | 3 | import com.Zrips.CMI.CMI; 4 | 5 | import net.milkbowl.vault.economy.Economy; 6 | 7 | public class VaultManager { 8 | 9 | private CMI plugin; 10 | private String version = ""; 11 | private boolean supportsCmi = false; 12 | 13 | public VaultManager(CMI plugin) { 14 | this.plugin = plugin; 15 | } 16 | 17 | // private Economy vaultHandler = null; 18 | 19 | private Economy economy = null; 20 | 21 | public enum EconomySetupResponse { 22 | Vault, NoVault, NoVaultEconomy, CMI; 23 | } 24 | 25 | public EconomySetupResponse setupVault() { 26 | 27 | return null; 28 | } 29 | 30 | public Economy getVaultEconomy() { 31 | return economy; 32 | } 33 | 34 | public boolean isVaultEnabled() { 35 | return economy != null; 36 | } 37 | 38 | public String format(Double money) { 39 | if (money == null) 40 | return "0"; 41 | if (this.economy == null) 42 | return String.valueOf(money); 43 | return this.economy.format(money); 44 | } 45 | 46 | public String getVersion() { 47 | return version; 48 | } 49 | 50 | public boolean isSupportsCmi() { 51 | return supportsCmi; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/FindBiome/FindBiomeManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.FindBiome; 2 | 3 | import java.util.UUID; 4 | import java.util.concurrent.ConcurrentHashMap; 5 | 6 | import org.bukkit.entity.Player; 7 | 8 | import com.Zrips.CMI.CMI; 9 | 10 | public class FindBiomeManager { 11 | 12 | public ConcurrentHashMap FindBiomeInfo = new ConcurrentHashMap(); 13 | private CMI plugin; 14 | // private static Integer count = 0; 15 | 16 | public FindBiomeManager(CMI plugin) { 17 | this.plugin = plugin; 18 | } 19 | 20 | public boolean stop(Player player) { 21 | if (FindBiomeInfo.containsKey(player.getUniqueId())) { 22 | FindBiomeInfo c = FindBiomeInfo.get(player.getUniqueId()); 23 | c.setRunning(false); 24 | if (c.getScheduleTask() != null) 25 | c.getScheduleTask().cancel(); 26 | 27 | return true; 28 | } 29 | return false; 30 | } 31 | 32 | public void start(FindBiomeInfo scan) { 33 | 34 | } 35 | 36 | @SuppressWarnings("deprecation") 37 | private void loadChunk(final FindBiomeInfo scan) { 38 | 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/FlightCharge/freeFall.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.FlightCharge; 2 | 3 | public class freeFall { 4 | 5 | private Float fallDistance = 0F; 6 | private Boolean jump = true; 7 | 8 | public Float getFallDistance() { 9 | return fallDistance; 10 | } 11 | 12 | public freeFall setFallDistance(Float fallDistance) { 13 | this.fallDistance = fallDistance; 14 | return this; 15 | } 16 | 17 | public Boolean getJump() { 18 | return jump; 19 | } 20 | 21 | public freeFall setJump(Boolean jump) { 22 | this.jump = jump; 23 | return this; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/FlightCharge/traveledDistance.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.FlightCharge; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.entity.Player; 5 | 6 | import com.Zrips.CMI.Containers.CMIUser; 7 | 8 | public class traveledDistance { 9 | 10 | private CMIUser user; 11 | private Location loc; 12 | private Long time = 0L; 13 | 14 | traveledDistance(CMIUser user) { 15 | this.user = user; 16 | if (user.isOnline()) 17 | updateLocation(); 18 | } 19 | 20 | public boolean toSoonToCheck() { 21 | return System.currentTimeMillis() - time < 1000; 22 | } 23 | 24 | public void updateLocation() { 25 | if (!user.isOnline()) 26 | return; 27 | Player player = user.getPlayer(); 28 | if (player == null) 29 | return; 30 | loc = player.getLocation(); 31 | time = System.currentTimeMillis(); 32 | } 33 | 34 | public Double getDistanceTraveled() { 35 | if (!user.isOnline()) 36 | return 0D; 37 | Player player = user.getPlayer(); 38 | if (player == null || loc == null) 39 | return 0D; 40 | if (!player.getWorld().equals(loc.getWorld())) 41 | return 0D; 42 | Double dis = player.getLocation().distance(loc); 43 | return dis; 44 | } 45 | 46 | public Long sinceLastUpdate() { 47 | return System.currentTimeMillis() - time; 48 | } 49 | 50 | public CMIUser getUser() { 51 | return user; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/GeoIP/Country.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.GeoIP; 2 | 3 | public class Country { 4 | 5 | private String code; 6 | private String name; 7 | 8 | public Country(String code, String name) { 9 | this.code = code; 10 | this.name = name; 11 | } 12 | 13 | public String getCode() { 14 | return code; 15 | } 16 | 17 | public String getName() { 18 | return name; 19 | } 20 | 21 | public void setCode(String code) { 22 | this.code = code; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/GeoIP/IPLocation.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.GeoIP; 2 | 3 | public class IPLocation { 4 | private String countryCode; 5 | private String countryName; 6 | private String region; 7 | private String city; 8 | private String postalCode; 9 | 10 | public String getCountryCode() { 11 | return countryCode; 12 | } 13 | 14 | public void setCountryCode(String countryCode) { 15 | this.countryCode = countryCode; 16 | } 17 | 18 | public String getCountryName() { 19 | return countryName; 20 | } 21 | 22 | public void setCountryName(String countryName) { 23 | this.countryName = countryName; 24 | } 25 | 26 | public String getRegion() { 27 | return region; 28 | } 29 | 30 | public void setRegion(String region) { 31 | this.region = region; 32 | } 33 | 34 | public String getCity() { 35 | return city == null ? "" : city; 36 | } 37 | 38 | public void setCity(String city) { 39 | this.city = city; 40 | } 41 | 42 | public String getPostalCode() { 43 | return postalCode; 44 | } 45 | 46 | public void setPostalCode(String postalCode) { 47 | this.postalCode = postalCode; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Holograms/CMIHoloLineType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Holograms; 2 | 3 | public enum CMIHoloLineType { 4 | plainText, placeholder, icon, staticIcon, image; 5 | } 6 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Holograms/CMIHologramBatch.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Holograms; 2 | 3 | import java.util.concurrent.ConcurrentHashMap; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | import com.Zrips.CMI.Modules.Display.CMIDisplay; 8 | 9 | import net.Zrips.CMILib.Logs.CMIDebug; 10 | 11 | public class CMIHologramBatch { 12 | 13 | private ConcurrentHashMap displays = new ConcurrentHashMap(); 14 | private ConcurrentHashMap icons = new ConcurrentHashMap(); 15 | 16 | public ConcurrentHashMap getDisplays() { 17 | return displays; 18 | } 19 | 20 | public CMIDisplay getDisplay(int side) { 21 | return displays.get(side); 22 | } 23 | 24 | public void addDisplay(int side, CMIDisplay display) { 25 | this.displays.put(side, display); 26 | } 27 | 28 | public void clear() { 29 | this.displays.clear(); 30 | this.icons.clear(); 31 | } 32 | 33 | public ConcurrentHashMap getIcons() { 34 | return icons; 35 | } 36 | 37 | public CMIDisplay getIcon(int line) { 38 | return icons.get(line); 39 | } 40 | 41 | public void addIcon(int line, CMIDisplay icon) { 42 | this.icons.put(line, icon); 43 | } 44 | 45 | public void destroy(Player player) { 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Holograms/HologramGUIEditor.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Holograms; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public class HologramGUIEditor { 6 | 7 | public static void openGui(Player player, CMIHologram holo) { 8 | 9 | } 10 | 11 | public static void editInteractions(Player player, CMIHologram holo) { 12 | 13 | } 14 | 15 | public static void editLocation(Player player, CMIHologram holo) { 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Homes/HomeWorldLimit.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Homes; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class HomeWorldLimit { 7 | 8 | private List worlds = new ArrayList(); 9 | private int limit = 0; 10 | 11 | public List getWorlds() { 12 | return worlds; 13 | } 14 | 15 | public void setWorlds(List worlds) { 16 | this.worlds = worlds; 17 | } 18 | 19 | public int getLimit() { 20 | return limit; 21 | } 22 | 23 | public void setLimit(int limit) { 24 | if (limit < -1) 25 | limit = -1; 26 | this.limit = limit; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Hooks/CMIHookSubType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Hooks; 2 | 3 | public enum CMIHookSubType { 4 | PlayerVaults, PlayerVaultsX, PlayerVaultsNBT, VaultPermissions 5 | } 6 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/InteractiveCommand/CMINPC.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.InteractiveCommand; 2 | 3 | import java.util.UUID; 4 | 5 | public class CMINPC { 6 | 7 | private UUID uuid = null; 8 | private Integer id = null; 9 | private UUID secondaryUuid = null; 10 | 11 | public CMINPC(int id) { 12 | this.id = id; 13 | } 14 | 15 | public CMINPC(UUID uuid) { 16 | this.uuid = uuid; 17 | } 18 | 19 | public UUID getUuid() { 20 | return uuid; 21 | } 22 | 23 | public CMINPC setUuid(UUID uuid) { 24 | this.uuid = uuid; 25 | return this; 26 | } 27 | 28 | public Integer getId() { 29 | return id; 30 | } 31 | 32 | public CMINPC setId(Integer id) { 33 | this.id = id; 34 | return this; 35 | } 36 | 37 | public UUID getSecondaryUUID() { 38 | return secondaryUuid; 39 | } 40 | 41 | public CMINPC setSecondaryUUID(UUID secondaryUuid) { 42 | this.secondaryUuid = secondaryUuid; 43 | return this; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/InteractiveCommand/CitizensManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.InteractiveCommand; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Entity; 6 | 7 | import com.Zrips.CMI.CMI; 8 | 9 | public class CitizensManager { 10 | 11 | private CMI plugin; 12 | 13 | public CitizensManager(CMI plugin) { 14 | this.plugin = plugin; 15 | 16 | } 17 | 18 | public boolean isCitizen(Entity ent) { 19 | 20 | return false; 21 | } 22 | 23 | public UUID getCitizenPrivateUUID(UUID uuid) { 24 | return null; 25 | } 26 | 27 | public Integer getEntityId(Entity ent) { 28 | return null; 29 | } 30 | 31 | public Integer getEntityId(UUID uuid) { 32 | 33 | return null; 34 | } 35 | 36 | public UUID getEntityUUID(Entity ent) { 37 | return null; 38 | } 39 | 40 | public UUID getEntityUUID(int id) { 41 | return null; 42 | } 43 | 44 | public UUID getEntityRealUUID(int id) { 45 | return null; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/InvEndEditor/EndWatcher.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.InvEndEditor; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public class EndWatcher { 6 | Player master = null; 7 | Player target = null; 8 | 9 | public EndWatcher(Player player1, Player target) { 10 | this.master = player1; 11 | this.target = target; 12 | } 13 | 14 | public Player getMaster() { 15 | return this.master; 16 | } 17 | 18 | public void setMaster(Player player) { 19 | this.master = player; 20 | } 21 | 22 | public Player getTarget() { 23 | return this.target; 24 | } 25 | 26 | public void setTarget(Player target) { 27 | this.target = target; 28 | } 29 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/InvEndEditor/EnderChestManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.InvEndEditor; 2 | 3 | import java.util.HashMap; 4 | import java.util.UUID; 5 | 6 | import org.bukkit.entity.Player; 7 | 8 | import com.Zrips.CMI.CMI; 9 | 10 | public class EnderChestManager { 11 | 12 | private HashMap WatcherList = new HashMap(); 13 | private HashMap WatchedList = new HashMap(); 14 | 15 | private CMI plugin; 16 | 17 | public EnderChestManager(CMI plugin) { 18 | this.plugin = plugin; 19 | } 20 | 21 | public void removeWatcher(Player player) { 22 | EndWatcher ers = WatcherList.remove(player.getUniqueId()); 23 | if (ers != null) 24 | WatchedList.remove(ers.getTarget().getUniqueId()); 25 | } 26 | 27 | public boolean isWatching(Player player) { 28 | return WatcherList.containsKey(player.getUniqueId()); 29 | } 30 | 31 | public boolean isBeingWatched(Player player) { 32 | return WatchedList.containsKey(player.getUniqueId()); 33 | } 34 | 35 | public EndWatcher getWatcher(Player player) { 36 | return WatcherList.get(player.getUniqueId()); 37 | } 38 | 39 | public EndWatcher getSlave(Player player) { 40 | return WatchedList.get(player.getUniqueId()); 41 | } 42 | 43 | public boolean openEnderChest(Player player, Player target) { 44 | return false; 45 | } 46 | 47 | public boolean updateTargetEnderChest(Player player) { 48 | return true; 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Ips/IpManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Ips; 2 | 3 | import java.util.HashMap; 4 | import java.util.HashSet; 5 | import java.util.Map.Entry; 6 | import java.util.Set; 7 | import java.util.regex.Pattern; 8 | 9 | import com.Zrips.CMI.CMI; 10 | import com.Zrips.CMI.Containers.CMIUser; 11 | 12 | public class IpManager { 13 | 14 | private CMI plugin; 15 | HashMap> ips = new HashMap>(); 16 | private static final Pattern PATTERN = Pattern.compile("^(([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.){3}([01]?\\d\\d?|2[0-4]\\d|25[0-5])$"); 17 | private static final Pattern ALTPATTERN = Pattern.compile("^(([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\_){3}([01]?\\d\\d?|2[0-4]\\d|25[0-5])$"); 18 | 19 | public boolean ipIsOk(final String ip) { 20 | return PATTERN.matcher(ip).matches(); 21 | } 22 | 23 | public boolean alternateIpIsOk(final String ip) { 24 | return ALTPATTERN.matcher(ip).matches(); 25 | } 26 | 27 | public IpManager(CMI plugin) { 28 | this.plugin = plugin; 29 | } 30 | 31 | public void addIp(HashMap map, CMIUser user) { 32 | for (Entry one : map.entrySet()) { 33 | addIp(one.getKey(), user); 34 | } 35 | } 36 | 37 | public void addIp(String ip, CMIUser user) { 38 | Set users = ips.get(ip); 39 | if (users == null) 40 | users = new HashSet(); 41 | users.add(user); 42 | ips.put(ip, users); 43 | } 44 | 45 | public Set getUsers(String ip) { 46 | return ips.get(ip); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Kits/Clickery.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Kits; 2 | 3 | public class Clickery { 4 | 5 | private long time = 0L; 6 | private int times = 0; 7 | private int speed = 1; 8 | 9 | public Clickery() { 10 | this.time = System.currentTimeMillis(); 11 | } 12 | 13 | private void addClick() { 14 | } 15 | 16 | public int getSpeed() { 17 | addClick(); 18 | return speed; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/LightFix/LightFix.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.LightFix; 2 | 3 | import java.util.UUID; 4 | import java.util.concurrent.ConcurrentHashMap; 5 | 6 | import com.Zrips.CMI.CMI; 7 | 8 | public class LightFix { 9 | 10 | public ConcurrentHashMap LFInfo = new ConcurrentHashMap(); 11 | private CMI plugin; 12 | 13 | public LightFix(CMI plugin) { 14 | this.plugin = plugin; 15 | } 16 | 17 | public void start(LightFixInfo scan) { 18 | if (scan.getStartTime() == 0L) 19 | scan.setShowInfo(System.currentTimeMillis()); 20 | loadChunk(scan); 21 | } 22 | 23 | private void loadChunk(final LightFixInfo info) { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Mirror/Rotation.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Mirror; 2 | 3 | import org.bukkit.Material; 4 | 5 | public class Rotation { 6 | 7 | private Material mat; 8 | private short data; 9 | 10 | public Rotation() { 11 | } 12 | 13 | public Rotation(Material mat, short data) { 14 | this.mat = mat; 15 | this.data = data; 16 | } 17 | 18 | public Material getMat() { 19 | return mat; 20 | } 21 | 22 | public void setMat(Material mat) { 23 | this.mat = mat; 24 | } 25 | 26 | public short getData() { 27 | return data; 28 | } 29 | 30 | public void setData(short data) { 31 | this.data = data; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/ModuleHandling/CMIModuleClass.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.ModuleHandling; 2 | 3 | import net.Zrips.CMILib.Version.Version; 4 | 5 | public class CMIModuleClass { 6 | private Class listener; 7 | private Version from = null; 8 | private Version to = null; 9 | 10 | public CMIModuleClass(Class listener) { 11 | this(listener, null, null); 12 | } 13 | 14 | public CMIModuleClass(Class listener, Version from) { 15 | this(listener, from, null); 16 | } 17 | 18 | public CMIModuleClass(Class listener, Version from, Version to) { 19 | this.listener = listener; 20 | this.from = from; 21 | this.to = to; 22 | } 23 | 24 | public Version getFrom() { 25 | return from; 26 | } 27 | 28 | public Version getTo() { 29 | return to; 30 | } 31 | 32 | public Class getListener() { 33 | return listener; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/ModuleHandling/CMIModuleManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.ModuleHandling; 2 | 3 | public class CMIModuleManager { 4 | 5 | private static String fileName = "Modules.yml"; 6 | 7 | public static void load() { 8 | 9 | } 10 | 11 | public static void registerListeners() { 12 | 13 | } 14 | 15 | public static void switchInFile(CMIModule module, boolean state) { 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Notify/Notification.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Notify; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class Notification { 7 | 8 | private String notifyier; 9 | private List mesages = new ArrayList(); 10 | 11 | public Notification(String notifyier) { 12 | this.notifyier = notifyier; 13 | } 14 | 15 | public String getNotifyier() { 16 | return notifyier; 17 | } 18 | 19 | public void setNotifyier(String notifyier) { 20 | this.notifyier = notifyier; 21 | } 22 | 23 | public List getMesages() { 24 | return mesages; 25 | } 26 | 27 | public void setMesages(List mesages) { 28 | this.mesages = mesages; 29 | } 30 | 31 | public void addMesage(String mesage) { 32 | this.mesages.add(mesage); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Packets/FakeInfo.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Packets; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public class FakeInfo { 6 | 7 | private int id = -1; 8 | private Player player; 9 | private Object obj; 10 | private Object entity; 11 | 12 | public Player getPlayer() { 13 | return player; 14 | } 15 | 16 | public FakeInfo setPlayer(Player player) { 17 | this.player = player; 18 | return this; 19 | } 20 | 21 | public Object getObj() { 22 | return obj; 23 | } 24 | 25 | public FakeInfo setObj(Object obj) { 26 | this.obj = obj; 27 | return this; 28 | } 29 | 30 | public int getId() { 31 | return id; 32 | } 33 | 34 | public FakeInfo setId(int id) { 35 | this.id = id; 36 | return this; 37 | } 38 | 39 | public Object getEntity() { 40 | return entity; 41 | } 42 | 43 | public void setEntity(Object entity) { 44 | this.entity = entity; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Packets/PacketInjector.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Packets; 2 | 3 | import java.lang.reflect.Field; 4 | 5 | import org.bukkit.Bukkit; 6 | import org.bukkit.entity.Player; 7 | 8 | import com.Zrips.CMI.CMI; 9 | 10 | import io.netty.channel.Channel; 11 | import io.netty.channel.ChannelHandler; 12 | import net.Zrips.CMILib.CMILib; 13 | import net.Zrips.CMILib.Logs.CMIDebug; 14 | import net.Zrips.CMILib.Version.Version; 15 | 16 | public class PacketInjector { 17 | 18 | private Field EntityPlayer_playerConnection; 19 | private Class PlayerConnection; 20 | private Field PlayerConnection_networkManager; 21 | 22 | private Class NetworkManager; 23 | private Field channel; 24 | 25 | public PacketInjector() { 26 | 27 | } 28 | 29 | public Field getField(Class clazz, String fieldName) throws Exception { 30 | return null; 31 | } 32 | 33 | @Deprecated 34 | private Class getClass(String classname) { 35 | return null; 36 | } 37 | 38 | public void addPlayer(Player p) { 39 | } 40 | 41 | public void removePlayer(Player p) { 42 | } 43 | 44 | private Object getNetworkManager(Object ep) { 45 | return null; 46 | } 47 | 48 | private Channel getChannel(Object networkManager) { 49 | return null; 50 | } 51 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Packets/ToolBarLoad.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Packets; 2 | 3 | import java.util.HashSet; 4 | import java.util.Set; 5 | 6 | public class ToolBarLoad { 7 | private Set slots = new HashSet(); 8 | private Long time = 0L; 9 | 10 | public Long getTime() { 11 | return time; 12 | } 13 | 14 | public void setTime(Long time) { 15 | this.time = time; 16 | } 17 | 18 | public Set getSlots() { 19 | return slots; 20 | } 21 | 22 | public void setSlots(Set slots) { 23 | this.slots = slots; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Painting/PaintingManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Painting; 2 | 3 | import java.util.HashMap; 4 | import java.util.UUID; 5 | 6 | import org.bukkit.entity.Entity; 7 | import org.bukkit.entity.Painting; 8 | 9 | import com.Zrips.CMI.CMI; 10 | 11 | public class PaintingManager { 12 | 13 | private CMI plugin; 14 | 15 | public PaintingManager(CMI plugin) { 16 | this.plugin = plugin; 17 | } 18 | 19 | HashMap map = new HashMap(); 20 | 21 | public boolean isEditing(UUID uuid) { 22 | return map.containsKey(uuid); 23 | } 24 | 25 | public void addEditor(UUID uuid, Entity ent) { 26 | map.put(uuid, ent); 27 | } 28 | 29 | public Painting getPainting(UUID uuid) { 30 | Entity ent = map.get(uuid); 31 | return ent instanceof Painting ? (Painting) ent : null; 32 | } 33 | 34 | public void removeEditor(UUID uuid) { 35 | map.remove(uuid); 36 | } 37 | 38 | public void removeEditor(Entity entity) { 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Particl/CMIPEAnimationInterface.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Particl; 2 | 3 | import java.awt.Color; 4 | import java.util.List; 5 | 6 | import org.bukkit.Location; 7 | import org.bukkit.entity.Player; 8 | 9 | import net.Zrips.CMILib.Colors.CMIChatColor; 10 | 11 | public interface CMIPEAnimationInterface { 12 | 13 | public boolean render(List players); 14 | 15 | public void setCenter(Location location); 16 | 17 | public double getDuration(); 18 | 19 | public void setDuration(double durations); 20 | 21 | boolean isFixedLocation(); 22 | 23 | public Location getCenter(); 24 | 25 | public void setColor(Color color); 26 | 27 | public void setColor(org.bukkit.Color color); 28 | 29 | public void setColor(CMIChatColor color); 30 | 31 | public void show(); 32 | 33 | Player getPlayerMove(); 34 | 35 | int getInterval(); 36 | 37 | boolean isHideWithVanish(); 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Particl/Vectors.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Particl; 2 | 3 | import org.bukkit.util.Vector; 4 | 5 | public class Vectors { 6 | Vector p1 = null; 7 | Vector p2 = null; 8 | 9 | public Vectors() { 10 | } 11 | 12 | public void setp1(Vector state) { 13 | this.p1 = state; 14 | } 15 | 16 | public Vector getp1() { 17 | return this.p1; 18 | } 19 | 20 | public void setp2(Vector state) { 21 | this.p2 = state; 22 | } 23 | 24 | public Vector getp2() { 25 | return this.p2; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Patrol/PatrolManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Patrol; 2 | 3 | import com.Zrips.CMI.CMI; 4 | import com.Zrips.CMI.Containers.CMIUser; 5 | 6 | public class PatrolManager { 7 | 8 | private CMI plugin; 9 | 10 | public PatrolManager(CMI plugin) { 11 | this.plugin = plugin; 12 | } 13 | 14 | public CMIUser getNextUser() { 15 | return null; 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/BPermissionsHandler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class BPermissionsHandler implements PermissionInterface { 8 | 9 | @Override 10 | public String getMainGroup(Player player) { 11 | return null; 12 | } 13 | 14 | @Override 15 | public String getPrefix(Player player) { 16 | return null; 17 | } 18 | 19 | @Override 20 | public String getSufix(Player player) { 21 | return null; 22 | } 23 | 24 | @Override 25 | public String getMainGroup(String world, UUID uuid) { 26 | return null; 27 | } 28 | 29 | @Override 30 | public String getPrefix(UUID uuid) { 31 | return null; 32 | } 33 | 34 | @Override 35 | public String getSufix(UUID uuid) { 36 | return null; 37 | } 38 | 39 | @Override 40 | public String getNameColor(Player player) { 41 | return null; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/GroupManagerXHandler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | import com.Zrips.CMI.CMI; 8 | 9 | public class GroupManagerXHandler implements PermissionInterface { 10 | 11 | public GroupManagerXHandler(CMI plugin) { 12 | 13 | } 14 | 15 | @Override 16 | public String getMainGroup(Player player) { 17 | return null; 18 | } 19 | 20 | @Override 21 | public String getPrefix(Player player) { 22 | return null; 23 | } 24 | 25 | @Override 26 | public String getSufix(Player player) { 27 | return null; 28 | } 29 | 30 | @Override 31 | public String getMainGroup(String world, UUID uuid) { 32 | return null; 33 | } 34 | 35 | @Override 36 | public String getPrefix(UUID uuid) { 37 | return null; 38 | } 39 | 40 | @Override 41 | public String getSufix(UUID uuid) { 42 | return null; 43 | } 44 | 45 | @Override 46 | public String getNameColor(Player player) { 47 | return null; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/LuckPermsHandler4.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class LuckPermsHandler4 implements PermissionInterface { 8 | 9 | public LuckPermsHandler4() { 10 | } 11 | 12 | @Override 13 | public String getMainGroup(Player player) { 14 | return null; 15 | } 16 | 17 | @Override 18 | public String getPrefix(Player player) { 19 | return null; 20 | } 21 | 22 | @Override 23 | public String getNameColor(Player player) { 24 | 25 | return null; 26 | } 27 | 28 | @Override 29 | public String getSufix(Player player) { 30 | 31 | return null; 32 | } 33 | 34 | @Override 35 | public String getMainGroup(String world, UUID uuid) { 36 | return null; 37 | } 38 | 39 | @Override 40 | public String getPrefix(UUID uuid) { 41 | return null; 42 | } 43 | 44 | @Override 45 | public String getSufix(UUID uuid) { 46 | return null; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/LuckPermsHandler5.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class LuckPermsHandler5 implements PermissionInterface { 8 | 9 | public LuckPermsHandler5() { 10 | } 11 | 12 | @Override 13 | public String getMainGroup(Player player) { 14 | return null; 15 | } 16 | 17 | @Override 18 | public String getPrefix(Player player) { 19 | return null; 20 | } 21 | 22 | @Override 23 | public String getNameColor(Player player) { 24 | return null; 25 | } 26 | 27 | @Override 28 | public String getSufix(Player player) { 29 | return null; 30 | } 31 | 32 | @Override 33 | public String getMainGroup(String world, UUID uuid) { 34 | return null; 35 | } 36 | 37 | @Override 38 | public String getPrefix(UUID uuid) { 39 | return null; 40 | } 41 | 42 | @Override 43 | public String getSufix(UUID uuid) { 44 | return null; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/NoneHandler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class NoneHandler implements PermissionInterface { 8 | 9 | @Override 10 | public String getMainGroup(Player player) { 11 | return null; 12 | } 13 | 14 | @Override 15 | public String getPrefix(Player player) { 16 | return null; 17 | } 18 | 19 | @Override 20 | public String getSufix(Player player) { 21 | return null; 22 | } 23 | 24 | @Override 25 | public String getMainGroup(String world, UUID uuid) { 26 | return null; 27 | } 28 | 29 | @Override 30 | public String getPrefix(UUID uuid) { 31 | return null; 32 | } 33 | 34 | @Override 35 | public String getSufix(UUID uuid) { 36 | return null; 37 | } 38 | 39 | @Override 40 | public String getNameColor(Player player) { 41 | return null; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/PEXHandler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class PEXHandler implements PermissionInterface { 8 | 9 | public PEXHandler() { 10 | } 11 | 12 | @Override 13 | public String getMainGroup(Player player) { 14 | return null; 15 | } 16 | 17 | @Override 18 | public String getPrefix(Player player) { 19 | return null; 20 | } 21 | 22 | @Override 23 | public String getSufix(Player player) { 24 | return null; 25 | } 26 | 27 | @Override 28 | public String getMainGroup(String world, UUID uuid) { 29 | return null; 30 | } 31 | 32 | @Override 33 | public String getPrefix(UUID uuid) { 34 | return null; 35 | } 36 | 37 | @Override 38 | public String getSufix(UUID uuid) { 39 | return null; 40 | } 41 | 42 | @Override 43 | public String getNameColor(Player player) { 44 | return null; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/PermissionInterface.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public interface PermissionInterface { 8 | String getMainGroup(Player player); 9 | 10 | String getPrefix(Player player); 11 | 12 | String getSufix(Player player); 13 | 14 | String getNameColor(Player player); 15 | 16 | String getMainGroup(String world, UUID uuid); 17 | 18 | String getPrefix(UUID uuid); 19 | 20 | String getSufix(UUID uuid); 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/PowerfullPermsHandler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class PowerfullPermsHandler implements PermissionInterface { 8 | 9 | public PowerfullPermsHandler() { 10 | } 11 | 12 | @Override 13 | public String getMainGroup(Player player) { 14 | return this.getMainGroup(player.getWorld().getName(), player.getUniqueId()); 15 | } 16 | 17 | @Override 18 | public String getPrefix(Player player) { 19 | return this.getPrefix(player.getUniqueId()); 20 | } 21 | 22 | @Override 23 | public String getSufix(Player player) { 24 | return this.getSufix(player.getUniqueId()); 25 | } 26 | 27 | @Override 28 | public String getMainGroup(String world, UUID uuid) { 29 | return null; 30 | } 31 | 32 | @Override 33 | public String getPrefix(UUID uuid) { 34 | return null; 35 | } 36 | 37 | @Override 38 | public String getSufix(UUID uuid) { 39 | return null; 40 | } 41 | 42 | @Override 43 | public String getNameColor(Player player) { 44 | return null; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/PowerfullPermsgustav9797Handler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class PowerfullPermsgustav9797Handler implements PermissionInterface { 8 | 9 | public PowerfullPermsgustav9797Handler() { 10 | 11 | } 12 | 13 | @Override 14 | public String getMainGroup(Player player) { 15 | return this.getMainGroup(player.getWorld().getName(), player.getUniqueId()); 16 | } 17 | 18 | @Override 19 | public String getPrefix(Player player) { 20 | return this.getPrefix(player.getUniqueId()); 21 | } 22 | 23 | @Override 24 | public String getSufix(Player player) { 25 | return this.getSufix(player.getUniqueId()); 26 | } 27 | 28 | @Override 29 | public String getMainGroup(String world, UUID uuid) { 30 | return null; 31 | } 32 | 33 | @Override 34 | public String getPrefix(UUID uuid) { 35 | return null; 36 | } 37 | 38 | @Override 39 | public String getSufix(UUID uuid) { 40 | return null; 41 | } 42 | 43 | @Override 44 | public String getNameColor(Player player) { 45 | return null; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/UltraPermissions3Handler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class UltraPermissions3Handler implements PermissionInterface { 8 | 9 | public UltraPermissions3Handler() { 10 | 11 | } 12 | 13 | @Override 14 | public String getMainGroup(Player player) { 15 | return null; 16 | } 17 | 18 | @Override 19 | public String getMainGroup(String world, UUID uuid) { 20 | return null; 21 | } 22 | 23 | @Override 24 | public String getPrefix(Player player) { 25 | return null; 26 | } 27 | 28 | @Override 29 | public String getPrefix(UUID uuid) { 30 | return null; 31 | } 32 | 33 | @Override 34 | public String getSufix(Player player) { 35 | return null; 36 | } 37 | 38 | @Override 39 | public String getSufix(UUID uuid) { 40 | return null; 41 | } 42 | 43 | @Override 44 | public String getNameColor(Player player) { 45 | return null; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/VaultHandler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | import org.bukkit.plugin.RegisteredServiceProvider; 7 | 8 | import com.Zrips.CMI.CMI; 9 | 10 | import net.milkbowl.vault.permission.Permission; 11 | 12 | public class VaultHandler implements PermissionInterface { 13 | 14 | private CMI plugin; 15 | private Permission perms; 16 | 17 | public VaultHandler(CMI plugin) { 18 | this.plugin = plugin; 19 | RegisteredServiceProvider rsp = this.plugin.getServer().getServicesManager().getRegistration(Permission.class); 20 | perms = rsp.getProvider(); 21 | } 22 | 23 | @Override 24 | public String getMainGroup(Player player) { 25 | try { 26 | return perms.getPrimaryGroup(player); 27 | } catch (Exception | Error e) { 28 | } 29 | return null; 30 | } 31 | 32 | @Override 33 | public String getPrefix(Player player) { 34 | return null; 35 | } 36 | 37 | @Override 38 | public String getSufix(Player player) { 39 | return null; 40 | } 41 | 42 | @Override 43 | public String getMainGroup(String world, UUID uuid) { 44 | return null; 45 | } 46 | 47 | @Override 48 | public String getPrefix(UUID uuid) { 49 | return null; 50 | } 51 | 52 | @Override 53 | public String getSufix(UUID uuid) { 54 | return null; 55 | } 56 | 57 | @Override 58 | public String getNameColor(Player player) { 59 | return null; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Permissions/ZPermissionsHandler.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Permissions; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | public class ZPermissionsHandler implements PermissionInterface { 8 | 9 | public ZPermissionsHandler() { 10 | } 11 | 12 | @Override 13 | public String getMainGroup(Player player) { 14 | return null; 15 | 16 | } 17 | 18 | @Override 19 | public String getPrefix(Player player) { 20 | return null; 21 | } 22 | 23 | @Override 24 | public String getSufix(Player player) { 25 | return null; 26 | } 27 | 28 | @Override 29 | public String getMainGroup(String world, UUID uuid) { 30 | return null; 31 | } 32 | 33 | @Override 34 | public String getPrefix(UUID uuid) { 35 | return null; 36 | } 37 | 38 | @Override 39 | public String getSufix(UUID uuid) { 40 | return null; 41 | } 42 | 43 | @Override 44 | public String getNameColor(Player player) { 45 | return null; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Placeholders/MVdWPlaceholderAPIHook.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Placeholders; 2 | 3 | import com.Zrips.CMI.CMI; 4 | 5 | public class MVdWPlaceholderAPIHook { 6 | 7 | public static boolean hook(CMI plugin) { 8 | return true; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Placeholders/PlaceholderCache.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Placeholders; 2 | 3 | public class PlaceholderCache { 4 | private long validUntil = 0L; 5 | private String value = null; 6 | 7 | public long getValidUntil() { 8 | return validUntil; 9 | } 10 | 11 | public void setValidUntil(long validUntil) { 12 | this.validUntil = validUntil; 13 | } 14 | 15 | public String getValue() { 16 | return value; 17 | } 18 | 19 | public void setValue(String value) { 20 | this.value = value; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/PlayTime/CMIPlayTimeFormat.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.PlayTime; 2 | 3 | public class CMIPlayTimeFormat { 4 | enum showType { 5 | full, partial, normal; 6 | } 7 | 8 | static showType forceShowDays = showType.normal; 9 | static showType forceShowHours = showType.normal; 10 | static showType forceShowMinutes = showType.normal; 11 | static showType forceShowSeconds = showType.normal; 12 | 13 | static String daysFormat = ""; 14 | static String hoursFormat = ""; 15 | static String minutesFormat = ""; 16 | static String secondsFormat = ""; 17 | 18 | public static String formatPlaytimePlaceholder(long ticks) { 19 | 20 | return null; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/PlayTimeRewards/PTROneTime.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.PlayTimeRewards; 2 | 3 | public class PTROneTime extends PlayTimeReward { 4 | 5 | public PTROneTime(String name) { 6 | super(name); 7 | } 8 | 9 | public Long getPayFor() { 10 | return super.getRange(); 11 | } 12 | 13 | public void setPayFor(Long payFor) { 14 | setRange(payFor * 1000); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/PlayTimeRewards/PTRRepeat.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.PlayTimeRewards; 2 | 3 | public class PTRRepeat extends PlayTimeReward { 4 | 5 | private boolean stackRewards = true; 6 | 7 | public PTRRepeat(String name) { 8 | super(name); 9 | } 10 | 11 | public Long getPayEvery() { 12 | return getRange(); 13 | } 14 | 15 | public void setPayEvery(Long payEvery) { 16 | setRange(payEvery * 1000); 17 | } 18 | 19 | public boolean isStackRewards() { 20 | return stackRewards; 21 | } 22 | 23 | public void setStackRewards(boolean stackRewards) { 24 | this.stackRewards = stackRewards; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/PlayTimeRewards/PlaytimeClaimCache.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.PlayTimeRewards; 2 | 3 | public class PlaytimeClaimCache { 4 | 5 | private long lastUpdate = 0L; 6 | private int count = 0; 7 | 8 | public long getLastUpdate() { 9 | return lastUpdate; 10 | } 11 | 12 | public void setLastUpdate(long lastUpdate) { 13 | this.lastUpdate = lastUpdate; 14 | } 15 | 16 | public int getCount() { 17 | return count; 18 | } 19 | 20 | public void setCount(int count) { 21 | this.count = count; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/PlayerCombat/CombatDamageType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.PlayerCombat; 2 | 3 | public enum CombatDamageType { 4 | Player, Mob, Environmental; 5 | } 6 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/PlayerCombat/EntityKillCount.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.PlayerCombat; 2 | 3 | import org.bukkit.entity.EntityType; 4 | 5 | public class EntityKillCount { 6 | 7 | EntityType type = null; 8 | private long lastKill = 0L; 9 | private int kills = 0; 10 | private int headDropCount = 0; 11 | 12 | public EntityKillCount(EntityType type) { 13 | this.type = type; 14 | } 15 | 16 | public int addKill() { 17 | lastKill = System.currentTimeMillis(); 18 | return kills++; 19 | } 20 | 21 | public int getKills() { 22 | return kills; 23 | } 24 | 25 | public void setKills(int kills) { 26 | this.kills = kills; 27 | } 28 | 29 | public Long getLastKill() { 30 | return lastKill; 31 | } 32 | 33 | public void setLastKill(Long lastKill) { 34 | this.lastKill = lastKill == null ? 0 : lastKill; 35 | } 36 | 37 | public int getHeadDropCount() { 38 | return headDropCount; 39 | } 40 | 41 | public void setHeadDropCount(int headDropCount) { 42 | this.headDropCount = headDropCount; 43 | } 44 | 45 | public void addHeadDropCount() { 46 | this.headDropCount++; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/PlayerCombat/PlayerKillCount.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.PlayerCombat; 2 | 3 | import java.util.UUID; 4 | 5 | public class PlayerKillCount { 6 | 7 | UUID uuid = null; 8 | private long lastKill = 0L; 9 | private int kills = 0; 10 | private int headDropCount = 0; 11 | 12 | public PlayerKillCount(UUID uuid) { 13 | this.uuid = uuid; 14 | } 15 | 16 | public int addKill() { 17 | lastKill = System.currentTimeMillis(); 18 | return kills++; 19 | } 20 | 21 | public int getKills() { 22 | return kills; 23 | } 24 | 25 | public void setKills(int kills) { 26 | this.kills = kills; 27 | } 28 | 29 | public Long getLastKill() { 30 | return lastKill; 31 | } 32 | 33 | public void setLastKill(Long lastKill) { 34 | this.lastKill = lastKill == null ? 0 : lastKill; 35 | } 36 | 37 | public int getHeadDropCount() { 38 | return headDropCount; 39 | } 40 | 41 | public void setHeadDropCount(int headDropCount) { 42 | this.headDropCount = headDropCount; 43 | } 44 | 45 | public void addHeadDropCount() { 46 | this.headDropCount++; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/PlayerOptions/PlayerOptionsManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.PlayerOptions; 2 | 3 | import java.util.List; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | import com.Zrips.CMI.CMI; 8 | import com.Zrips.CMI.Containers.CMIUser; 9 | 10 | import net.Zrips.CMILib.Items.CMIItemStack; 11 | 12 | public class PlayerOptionsManager { 13 | private CMI plugin; 14 | 15 | private Boolean guiCloseButton; 16 | private int guiCloseButtonSlot; 17 | private CMIItemStack guiCloseButtonItem; 18 | private List guiCloseButtonCommands; 19 | 20 | private boolean guiInfoButton; 21 | private int guiInfoButtonSlot; 22 | private CMIItemStack guiInfoButtonItem; 23 | private List guiInfoButtonCommands; 24 | 25 | public PlayerOptionsManager(CMI plugin) { 26 | this.plugin = plugin; 27 | } 28 | 29 | public static String defaultString = ""; 30 | 31 | public void loadConfig() { 32 | 33 | } 34 | 35 | public void openOptionGUI(CMIUser user) { 36 | openOptionGUI(user.getPlayer(), user); 37 | } 38 | 39 | public void openOptionGUI(Player sender, CMIUser user) { 40 | 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Portals/CMIPlane.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Portals; 2 | 3 | import org.bukkit.util.Vector; 4 | 5 | public class CMIPlane { 6 | private Vector center; 7 | private CMIVector2D sizeMin; 8 | private CMIVector2D sizeMax; 9 | 10 | public CMIPlane(Vector center, CMIVector2D sizeMin, CMIVector2D sizeMax) { 11 | this.center = center; 12 | this.sizeMin = sizeMin; 13 | this.sizeMax = sizeMax; 14 | } 15 | 16 | public Vector getCenter() { 17 | return center; 18 | } 19 | 20 | public void setCenter(Vector center) { 21 | this.center = center; 22 | } 23 | 24 | public CMIVector2D getSizeMin() { 25 | return sizeMin; 26 | } 27 | 28 | public void setSizeMin(CMIVector2D sizeMin) { 29 | this.sizeMin = sizeMin; 30 | } 31 | 32 | public CMIVector2D getSizeMax() { 33 | return sizeMax; 34 | } 35 | 36 | public void setSizeMax(CMIVector2D sizeMax) { 37 | this.sizeMax = sizeMax; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Portals/CMIVector2D.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Portals; 2 | 3 | import org.bukkit.util.Vector; 4 | 5 | public class CMIVector2D { 6 | private double x; 7 | private double y; 8 | 9 | public CMIVector2D(Vector v) { 10 | this.x = v.getX(); 11 | this.y = v.getY(); 12 | } 13 | 14 | public CMIVector2D(double x, double y) { 15 | this.x = x; 16 | this.y = y; 17 | } 18 | 19 | public CMIVector2D plus(CMIVector2D v) { 20 | return new CMIVector2D(x + v.x, y + v.y); 21 | } 22 | 23 | public CMIVector2D minus(CMIVector2D v) { 24 | return new CMIVector2D(x - v.x, y - v.y); 25 | } 26 | 27 | public CMIVector2D minus(Vector v) { 28 | return new CMIVector2D(x - v.getX(), y - v.getY()); 29 | } 30 | 31 | public CMIVector2D times(double s) { 32 | return new CMIVector2D(s * x, s * y); 33 | } 34 | 35 | public double dot(CMIVector2D v) { 36 | return x * v.x + y * v.y; 37 | } 38 | 39 | @Override 40 | public String toString() { 41 | return String.format("(%f, %f)", x, y); 42 | } 43 | 44 | public double getX() { 45 | return x; 46 | } 47 | 48 | public void setX(double x) { 49 | this.x = x; 50 | } 51 | 52 | public double getY() { 53 | return y; 54 | } 55 | 56 | public void setY(double y) { 57 | this.y = y; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Portals/RandomLoc.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Portals; 2 | 3 | public class RandomLoc { 4 | 5 | double x = 0D; 6 | double y = 0D; 7 | double z = 0D; 8 | 9 | public RandomLoc(double x, double y, double z) { 10 | this.x = x; 11 | this.y = y; 12 | this.z = z; 13 | } 14 | 15 | public double getX() { 16 | return x; 17 | } 18 | 19 | public double getY() { 20 | return y; 21 | } 22 | 23 | public double getZ() { 24 | return z; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Ranks/AureliumManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Ranks; 2 | 3 | import org.bukkit.command.CommandSender; 4 | import org.bukkit.entity.Player; 5 | 6 | public class AureliumManager { 7 | 8 | public static boolean isSkillCorrect(String name) { 9 | return true; 10 | } 11 | 12 | public static String getRealSkillName(CommandSender sender, String name) { 13 | return null; 14 | } 15 | 16 | public static int getSkillLevel(Player player, String skill) { 17 | return 0; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Ranks/InformTimer.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Ranks; 2 | 3 | public class InformTimer { 4 | 5 | private Long nextCheck; 6 | private Long timesInformed = 0L; 7 | 8 | public InformTimer() { 9 | } 10 | 11 | public InformTimer(long nextCheck) { 12 | this.nextCheck = nextCheck; 13 | } 14 | 15 | public Long getNextCheck() { 16 | return nextCheck; 17 | } 18 | 19 | public void setNextCheck(Long nextCheck) { 20 | this.nextCheck = nextCheck; 21 | } 22 | 23 | public Long getTimesInformed() { 24 | return timesInformed; 25 | } 26 | 27 | public void resetTimesInformed() { 28 | this.timesInformed = 0L; 29 | } 30 | 31 | public void addTimesInformed() { 32 | this.timesInformed++; 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Ranks/JobsManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Ranks; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public class JobsManager { 6 | 7 | public JobsManager() { 8 | } 9 | 10 | public static boolean isJobCorrect(String name) { 11 | return false; 12 | } 13 | 14 | public static String getRealJobName(String name) { 15 | return null; 16 | } 17 | 18 | public static int getJobsLevel(Player player, String jobName) { 19 | return 0; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Ranks/McMMOManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Ranks; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public class McMMOManager { 6 | 7 | public McMMOManager() { 8 | } 9 | 10 | public static boolean isSkillCorrect(String name) { 11 | return false; 12 | } 13 | 14 | public static String getRealSkillName(String name) { 15 | return name; 16 | } 17 | 18 | public static int getSkillLevel(Player player, String skill) { 19 | return 0; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Ranks/rankPlaceholderAction.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Ranks; 2 | 3 | public enum rankPlaceholderAction { 4 | more, less, equal; 5 | } 6 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Ranks/rankPlaceholderType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Ranks; 2 | 3 | public enum rankPlaceholderType { 4 | number, string, invalid; 5 | } 6 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Recipes/recipeInformation.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Recipes; 2 | 3 | import net.Zrips.CMILib.Recipes.CMIRecipeCraftData; 4 | 5 | public class recipeInformation { 6 | 7 | private boolean exact = true; 8 | private String customId = null; 9 | private CMIRecipeCraftData craftData = null; 10 | 11 | public boolean isExact() { 12 | return exact; 13 | } 14 | 15 | public void setExact(boolean exact) { 16 | this.exact = exact; 17 | } 18 | 19 | public String getCustomId() { 20 | return customId; 21 | } 22 | 23 | public void setCustomId(String customId) { 24 | this.customId = customId; 25 | } 26 | 27 | public CMIRecipeCraftData getCraftData() { 28 | return craftData; 29 | } 30 | 31 | public void setCraftData(CMIRecipeCraftData craftData) { 32 | this.craftData = craftData; 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Region/CMIRegion.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Region; 2 | 3 | import org.bukkit.Chunk; 4 | import org.bukkit.Location; 5 | 6 | public class CMIRegion { 7 | 8 | private int z = 0; 9 | private int x = 0; 10 | 11 | public CMIRegion(Location loc) { 12 | this.x = loc.getChunk().getX(); 13 | this.z = loc.getChunk().getZ(); 14 | } 15 | 16 | public CMIRegion(Chunk chunk) { 17 | this.x = chunk.getX(); 18 | this.z = chunk.getZ(); 19 | } 20 | 21 | public CMIRegion(int x, int z) { 22 | this.x = x; 23 | this.z = z; 24 | } 25 | 26 | public int getX() { 27 | return x; 28 | } 29 | 30 | public CMIRegion setX(int x) { 31 | this.x = x; 32 | return this; 33 | } 34 | 35 | public int getZ() { 36 | return z; 37 | } 38 | 39 | public CMIRegion setZ(int z) { 40 | this.z = z; 41 | return this; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/ReplaceBlock/ReplaceBlock.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.ReplaceBlock; 2 | 3 | import java.util.concurrent.ConcurrentHashMap; 4 | import java.util.regex.Pattern; 5 | 6 | import com.Zrips.CMI.CMI; 7 | 8 | @SuppressWarnings("deprecation") 9 | public class ReplaceBlock { 10 | 11 | public Pattern regionPattern = Pattern.compile("r\\.([0-9-]+)\\.([0-9-]+)\\.mca"); 12 | public ConcurrentHashMap BRInfo = new ConcurrentHashMap(); 13 | private CMI plugin; 14 | 15 | public ReplaceBlock(CMI plugin) { 16 | this.plugin = plugin; 17 | } 18 | 19 | public void start(final BRInfo scan) { 20 | if (scan.getStartTime() == 0L) 21 | scan.setShowInfo(System.currentTimeMillis()); 22 | loadChunk(scan); 23 | } 24 | 25 | private void loadChunk(final BRInfo scan) { 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/SavedInv/SavedInventories.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.SavedInv; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map.Entry; 5 | 6 | import com.Zrips.CMI.Containers.CMIUser; 7 | 8 | public class SavedInventories { 9 | 10 | private CMIUser owner; 11 | private LinkedHashMap inventories = new LinkedHashMap(); 12 | 13 | public SavedInventories(CMIUser owner) { 14 | this.owner = owner; 15 | } 16 | 17 | public void addInventory(CMIInventory inv) { 18 | inventories.put(inv.getId(), inv); 19 | } 20 | 21 | public CMIUser getOwner() { 22 | return owner; 23 | } 24 | 25 | private int getLastId() { 26 | int id = 0; 27 | for (Entry one : inventories.entrySet()) { 28 | if (one.getKey() > id) 29 | id = one.getKey(); 30 | } 31 | return id; 32 | } 33 | 34 | public int getNextId() { 35 | return getLastId() + 1; 36 | } 37 | 38 | public void setOwner(CMIUser owner) { 39 | this.owner = owner; 40 | } 41 | 42 | public LinkedHashMap getInventories() { 43 | return inventories; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/SavedItems/SavedItem.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.SavedItems; 2 | 3 | import org.bukkit.inventory.ItemStack; 4 | 5 | public class SavedItem { 6 | 7 | private ItemStack item; 8 | private String name; 9 | private String category = null; 10 | 11 | public SavedItem(String name) { 12 | this.name = name; 13 | } 14 | 15 | public SavedItem(String name, ItemStack item) { 16 | this.name = name; 17 | this.item = item; 18 | } 19 | 20 | public ItemStack getItem() { 21 | return item; 22 | } 23 | 24 | public void setItem(ItemStack item) { 25 | this.item = item; 26 | } 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | public void setName(String name) { 33 | this.name = name; 34 | } 35 | 36 | public void reset() { 37 | item = null; 38 | } 39 | 40 | public String getCategory() { 41 | return category; 42 | } 43 | 44 | public void setCategory(String category) { 45 | this.category = category; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Search/SearchType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Search; 2 | 3 | public enum SearchType { 4 | ID("Id"), 5 | NAME("Name"), 6 | LORE("Lore"), 7 | GM("Gm"), 8 | GOD("God"), 9 | ENCHANT("Enchant"), 10 | MAXHP("MaxHp"), 11 | POTION("Potion"), 12 | FLY("Fly"), 13 | OVERSIZE("Oversize"); 14 | 15 | private String name; 16 | private SearchType(String name) { 17 | this.name = name; 18 | } 19 | 20 | public String getName() { 21 | return name; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/ShulkerBoxInventory/ShulkerInv.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.ShulkerBoxInventory; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.inventory.Inventory; 5 | import org.bukkit.inventory.ItemStack; 6 | 7 | public class ShulkerInv { 8 | 9 | private Player player; 10 | private ItemStack shulkerBox; 11 | private Inventory customInv; 12 | 13 | private Integer sourceId = null; 14 | 15 | public ShulkerInv(Player player, Inventory customInv) { 16 | this.player = player; 17 | this.customInv = customInv; 18 | } 19 | 20 | public Player getPlayer() { 21 | return player; 22 | } 23 | 24 | public void setPlayer(Player player) { 25 | this.player = player; 26 | } 27 | 28 | public Inventory getCustomInv() { 29 | return customInv; 30 | } 31 | 32 | public void setCustomInv(Inventory customInv) { 33 | this.customInv = customInv; 34 | } 35 | 36 | public Integer getSourceId() { 37 | return sourceId; 38 | } 39 | 40 | public void setSourceId(Integer sourceId) { 41 | this.sourceId = sourceId; 42 | } 43 | 44 | public ItemStack getShulkerBox() { 45 | return shulkerBox; 46 | } 47 | 48 | public void setShulkerBox(ItemStack shulkerBox) { 49 | this.shulkerBox = shulkerBox; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Skin/CMISkin.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Skin; 2 | 3 | import java.util.UUID; 4 | 5 | public class CMISkin { 6 | 7 | private String name; 8 | private UUID uuid; 9 | private String skin; 10 | private String signature; 11 | private Long lastUpdate = 0L; 12 | 13 | public CMISkin(String name, UUID uuid, String skin, String signature) { 14 | this.name = name; 15 | this.uuid = uuid; 16 | this.skin = skin; 17 | this.signature = signature; 18 | } 19 | 20 | public String getSkin() { 21 | return skin; 22 | } 23 | 24 | public void setSkin(String skin) { 25 | this.skin = skin; 26 | } 27 | 28 | public String getSignature() { 29 | return signature; 30 | } 31 | 32 | public void setSignature(String signature) { 33 | this.signature = signature; 34 | } 35 | 36 | public String getName() { 37 | return name; 38 | } 39 | 40 | public void setName(String name) { 41 | this.name = name; 42 | } 43 | 44 | public UUID getUuid() { 45 | return uuid; 46 | } 47 | 48 | public void setUuid(UUID uuid) { 49 | this.uuid = uuid; 50 | } 51 | 52 | public Long getLastUpdate() { 53 | return lastUpdate; 54 | } 55 | 56 | public void setLastUpdate(Long lastUpdate) { 57 | this.lastUpdate = lastUpdate; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/SpawnerCharge/SCharges.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.SpawnerCharge; 2 | 3 | public class SCharges { 4 | 5 | private String name; 6 | private int startingCharges = 1; 7 | private int maxCharges = 1; 8 | private int cooldown = 3600; 9 | private int bonus = 0; 10 | 11 | public SCharges() { 12 | } 13 | 14 | public SCharges(String name, int startingCharges, int maxCharges, int cooldown) { 15 | this.name = name; 16 | this.startingCharges = startingCharges; 17 | this.maxCharges = maxCharges; 18 | this.cooldown = cooldown; 19 | } 20 | 21 | public int getMaxCharges() { 22 | return maxCharges; 23 | } 24 | 25 | public void setMaxCharges(int maxCharges) { 26 | this.maxCharges = maxCharges; 27 | } 28 | 29 | public int getCooldown() { 30 | return cooldown; 31 | } 32 | 33 | public void setCooldown(int cooldown) { 34 | this.cooldown = cooldown; 35 | } 36 | 37 | public String getName() { 38 | return name; 39 | } 40 | 41 | public void setName(String name) { 42 | this.name = name; 43 | } 44 | 45 | public int getStartingCharges() { 46 | return startingCharges; 47 | } 48 | 49 | public void setStartingCharges(int startingCharges) { 50 | this.startingCharges = startingCharges; 51 | } 52 | 53 | public int getBonus() { 54 | return bonus; 55 | } 56 | 57 | public void setBonus(int bonus) { 58 | this.bonus = bonus; 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/SpecializedCommands/SpecCMDCooldown.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.SpecializedCommands; 2 | 3 | public class SpecCMDCooldown { 4 | private double cooldown = 0L; 5 | private String cmd; 6 | 7 | @Deprecated 8 | public long getCooldown() { 9 | return (long) cooldown; 10 | } 11 | 12 | public double getCD() { 13 | return cooldown; 14 | } 15 | 16 | @Deprecated 17 | public SpecCMDCooldown setCooldown(long seconds) { 18 | this.cooldown = seconds; 19 | return this; 20 | } 21 | 22 | public SpecCMDCooldown setCooldown(double seconds) { 23 | this.cooldown = seconds; 24 | return this; 25 | } 26 | 27 | public String getCmd() { 28 | return cmd; 29 | } 30 | 31 | public String getBaseCmd() { 32 | return cmd.contains(" ") ? cmd.split(" ")[0] : cmd; 33 | } 34 | 35 | public SpecCMDCooldown setCmd(String cmd) { 36 | if (cmd.startsWith("/")) 37 | cmd = cmd.substring(1); 38 | this.cmd = cmd; 39 | return this; 40 | } 41 | 42 | public long untilNextUse(Long usedOn) { 43 | return (long) ((usedOn + (getCD() * 1000L)) - System.currentTimeMillis()); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/SpecializedCommands/overflowCommands.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.SpecializedCommands; 2 | 3 | import java.util.HashSet; 4 | import java.util.Set; 5 | 6 | public class overflowCommands { 7 | 8 | private long time = 0l; 9 | private Set command = new HashSet(); 10 | private int repeat = 0; 11 | 12 | public overflowCommands(String command) { 13 | this.command.add(command); 14 | this.time = System.currentTimeMillis(); 15 | repeat++; 16 | } 17 | 18 | public long getTime() { 19 | return time; 20 | } 21 | 22 | public void setTime(long time) { 23 | this.time = time; 24 | } 25 | 26 | public Set getCommands() { 27 | return command; 28 | } 29 | 30 | public void addCommand(String command) { 31 | this.command.add(command); 32 | } 33 | 34 | public int getRepeat() { 35 | return repeat; 36 | } 37 | 38 | public void setRepeat(int repeat) { 39 | this.repeat = repeat; 40 | } 41 | 42 | public void addRepeat() { 43 | this.repeat++; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/SpecializedCommands/specCommand.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.SpecializedCommands; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import com.Zrips.CMI.Modules.SpecializedCommands.SpecializedCommandManager.specCommandAction; 7 | import com.Zrips.CMI.Modules.SpecializedCommands.SpecializedCommandManager.specialisedCommand; 8 | 9 | public class specCommand { 10 | private String cmd; 11 | private specialisedCommand action = null; 12 | private List subactions = new ArrayList(); 13 | private List list = new ArrayList(); 14 | private List statements = new ArrayList(); 15 | 16 | public String getCmd() { 17 | return cmd; 18 | } 19 | 20 | public void setCmd(String cmd) { 21 | this.cmd = cmd; 22 | } 23 | 24 | public List getConditionList() { 25 | return list; 26 | } 27 | 28 | public void add(specCommandAction l) { 29 | } 30 | 31 | public specialisedCommand getAction() { 32 | return action; 33 | } 34 | 35 | public List getSubactions() { 36 | return subactions; 37 | } 38 | 39 | public List getStatements() { 40 | return statements; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Statistics/CMIStats.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Statistics; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.Containers.CMIUser; 6 | import com.Zrips.CMI.Modules.Statistics.StatsManager.CMIStatistic; 7 | 8 | public class CMIStats { 9 | 10 | public static long getStat(CMIUser user, CMIStatistic stat) { 11 | return getStat(user, stat, null); 12 | } 13 | 14 | public static long getStat(CMIUser user, CMIStatistic stat, Object thing) { 15 | 16 | return 0L; 17 | 18 | } 19 | 20 | private static long getStats(CMIUser user, CMIStatistic stat) { 21 | if (stat == CMIStatistic.PLAY_ONE_TICK && user != null) { 22 | return user.getTotalPlayTime(false); 23 | } 24 | if (stat == CMIStatistic.TRAVEL) { 25 | return getTotalTravelDistance(user); 26 | } 27 | if (stat == CMIStatistic.ACOUNT_AGE && user != null) { 28 | Player player = user.getPlayer(); 29 | if (player != null) 30 | return System.currentTimeMillis() - player.getFirstPlayed(); 31 | } 32 | return getTotal(user, stat); 33 | } 34 | 35 | public static long getTotalTravelDistance(CMIUser user) { 36 | Long i = 0L; 37 | return i; 38 | } 39 | 40 | private static long getTotal(CMIUser user, CMIStatistic stat) { 41 | 42 | return 0; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/TabList/CMITabSortingOrder.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.TabList; 2 | 3 | public enum CMITabSortingOrder { 4 | 5 | ASC, DESC; 6 | public static CMITabSortingOrder getByName(String name) { 7 | for (CMITabSortingOrder one : CMITabSortingOrder.values()) { 8 | if (one.toString().equalsIgnoreCase(name)) 9 | return one; 10 | } 11 | return null; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/TabList/CMITabSortingType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.TabList; 2 | 3 | import com.Zrips.CMI.CMI; 4 | import net.Zrips.CMILib.Locale.LC; 5 | 6 | public enum CMITabSortingType { 7 | 8 | Group, CustomGroup, Name, NickName, Balance, World; 9 | 10 | public static CMITabSortingType getByName(String name) { 11 | for (CMITabSortingType one : CMITabSortingType.values()) { 12 | if (one.toString().equalsIgnoreCase(name)) 13 | return one; 14 | } 15 | return null; 16 | } 17 | 18 | public static String toStringList() { 19 | String n = ""; 20 | for (CMITabSortingType one : CMITabSortingType.values()) { 21 | if (!n.isEmpty()) 22 | n += LC.info_ListSpliter.getLocale(); 23 | n += one.toString(); 24 | } 25 | 26 | return n; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/TabList/TabListCache.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.TabList; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | import org.bukkit.entity.Player; 7 | 8 | public class TabListCache { 9 | 10 | private List header = Arrays.asList(""); 11 | private List footer = Arrays.asList(""); 12 | private String playerNameFormat = ""; 13 | private Player player; 14 | private TabList tl; 15 | 16 | public TabListCache(Player player, TabList tl) { 17 | this.player = player; 18 | this.tl = tl; 19 | } 20 | 21 | public List getHeader() { 22 | return header; 23 | } 24 | 25 | public void setHeader(List header) { 26 | this.header = header; 27 | } 28 | 29 | public String getPlayerNameFormat() { 30 | return playerNameFormat; 31 | } 32 | 33 | public void setPlayerNameFormat(String playerNameFormat) { 34 | this.playerNameFormat = playerNameFormat; 35 | } 36 | 37 | public List getFooter() { 38 | return footer; 39 | } 40 | 41 | public void setFooter(List footer) { 42 | this.footer = footer; 43 | } 44 | 45 | public Player getPlayer() { 46 | return player; 47 | } 48 | 49 | public void setPlayer(Player player) { 50 | this.player = player; 51 | } 52 | 53 | public TabList getTl() { 54 | return tl; 55 | } 56 | 57 | public void setTl(TabList tl) { 58 | this.tl = tl; 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/TagName/TagNameManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.TagName; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.CMI; 6 | 7 | public class TagNameManager { 8 | 9 | private CMI plugin; 10 | 11 | public TagNameManager(CMI plugin) { 12 | this.plugin = plugin; 13 | } 14 | 15 | public void loadConfig() { 16 | 17 | } 18 | 19 | public enum TeamAction { 20 | CREATE, UPDATE, DESTROY; 21 | } 22 | 23 | public static void changeNameTag(Player toSendTo, Player player, String name, String prefix, String suffix, TeamAction teamAction) { 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Teleportations/CMIChunkSnapShot.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Teleportations; 2 | 3 | import org.bukkit.ChunkSnapshot; 4 | import org.bukkit.World; 5 | 6 | import net.Zrips.CMILib.Container.CMIWorld; 7 | 8 | public class CMIChunkSnapShot { 9 | private ChunkSnapshot snap; 10 | private int maxY = 128; 11 | private int minY = 0; 12 | private World world; 13 | 14 | public CMIChunkSnapShot(World world) { 15 | this.world = world; 16 | maxY = CMIWorld.getMaxHeight(world); 17 | minY = CMIWorld.getMinHeight(world); 18 | } 19 | 20 | public CMIChunkSnapShot setSnapshot(ChunkSnapshot snap) { 21 | this.snap = snap; 22 | return this; 23 | } 24 | 25 | public ChunkSnapshot getSnapshot() { 26 | return snap; 27 | } 28 | 29 | public int getMaxY() { 30 | return maxY; 31 | } 32 | 33 | public CMIChunkSnapShot setMaxY(int maxY) { 34 | this.maxY = maxY; 35 | return this; 36 | 37 | } 38 | 39 | public int getMinY() { 40 | return minY; 41 | } 42 | 43 | public CMIChunkSnapShot setMinY(int minY) { 44 | this.minY = minY; 45 | return this; 46 | } 47 | 48 | public World getWorld() { 49 | return world; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Teleportations/CMIRunningRandomTeleports.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Teleportations; 2 | 3 | public class CMIRunningRandomTeleports { 4 | private long time = 0L; 5 | 6 | public CMIRunningRandomTeleports() { 7 | time = System.currentTimeMillis() + (30 * 1000L); 8 | } 9 | 10 | public long getEndTime() { 11 | return time; 12 | } 13 | 14 | public CMIRunningRandomTeleports setTime(long time) { 15 | this.time = time; 16 | return this; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Teleportations/CMITeleportCondition.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Teleportations; 2 | 3 | public enum CMITeleportCondition { 4 | Good, BadFloor, Void, Suffocation, Fall, Unknown, Plugin, UnsafeTeleportation, NoPermission, MissingWorld; 5 | 6 | public static String getBadLocations() { 7 | String all = ""; 8 | for (CMITeleportCondition one : CMITeleportCondition.values()) { 9 | if (one.equals(CMITeleportCondition.Good)) 10 | continue; 11 | if (!all.isEmpty()) 12 | all += "/"; 13 | all += one.name(); 14 | } 15 | return all; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Teleportations/DangerousTp.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Teleportations; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.Location; 6 | 7 | public class DangerousTp { 8 | 9 | private UUID uuid; 10 | private Location location; 11 | private Long time; 12 | 13 | public DangerousTp(UUID uuid, Location location) { 14 | this.uuid = uuid; 15 | this.location = location; 16 | this.time = System.currentTimeMillis(); 17 | } 18 | 19 | public UUID getUuid() { 20 | return uuid; 21 | } 22 | 23 | public void setUuid(UUID uuid) { 24 | this.uuid = uuid; 25 | } 26 | 27 | public Location getLocation() { 28 | return location; 29 | } 30 | 31 | public void setLocation(Location location) { 32 | this.location = location; 33 | } 34 | 35 | public Long getTime() { 36 | return time; 37 | } 38 | 39 | public void setTime(Long time) { 40 | this.time = time; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Teleportations/PositionRelativeData.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Teleportations; 2 | 3 | import org.bukkit.Location; 4 | 5 | import net.Zrips.CMILib.Container.CMIWorld; 6 | 7 | public class PositionRelativeData { 8 | 9 | private int localX = 0; 10 | private int localZ = 0; 11 | 12 | private int maxWorldY = 0; 13 | private int minWorldY = 0; 14 | 15 | public PositionRelativeData(Location loc) { 16 | localX = loc.getBlockX() & 0xF; 17 | localZ = loc.getBlockZ() & 0xF; 18 | maxWorldY = CMIWorld.getMaxHeight(loc.getWorld()); 19 | minWorldY = CMIWorld.getMinHeight(loc.getWorld()); 20 | } 21 | 22 | public int getLocalX() { 23 | return localX; 24 | } 25 | 26 | public int getLocalZ() { 27 | return localZ; 28 | } 29 | 30 | public int getMaxWorldY() { 31 | return maxWorldY; 32 | } 33 | 34 | public int getMinWorldY() { 35 | return minWorldY; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Teleportations/TpInfo.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Teleportations; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.entity.Player; 5 | 6 | import com.Zrips.CMI.Modules.Teleportations.TeleportManager.TpAction; 7 | 8 | public class TpInfo { 9 | 10 | private Player whoOffers; 11 | private Player whoAccepts; 12 | private TpAction action; 13 | private Location loc = null; 14 | private long when; 15 | 16 | public TpInfo(Player whoOffers, Player whoAccepts, TpAction action) { 17 | this.whoOffers = whoOffers; 18 | this.whoAccepts = whoAccepts; 19 | this.action = action; 20 | this.when = System.currentTimeMillis(); 21 | } 22 | 23 | public Player getWhoOffers() { 24 | return whoOffers; 25 | } 26 | 27 | public void setWhoOffers(Player whoOffers) { 28 | this.whoOffers = whoOffers; 29 | } 30 | 31 | public Player getWhoAccepts() { 32 | return whoAccepts; 33 | } 34 | 35 | public void setWhoAccepts(Player whoAccepts) { 36 | this.whoAccepts = whoAccepts; 37 | } 38 | 39 | public TpAction getAction() { 40 | return action; 41 | } 42 | 43 | public void setAction(TpAction action) { 44 | this.action = action; 45 | } 46 | 47 | public long getWhen() { 48 | return when; 49 | } 50 | 51 | public void setWhen(long when) { 52 | this.when = when; 53 | } 54 | 55 | public Location getLoc() { 56 | return loc; 57 | } 58 | 59 | public void setLoc(Location loc) { 60 | this.loc = loc; 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/TimedCommands/TimedCommandManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.TimedCommands; 2 | 3 | import java.util.HashSet; 4 | import java.util.Set; 5 | 6 | import com.Zrips.CMI.CMI; 7 | import com.Zrips.CMI.Containers.CMIUser; 8 | 9 | import net.Zrips.CMILib.Version.Schedulers.CMITask; 10 | 11 | public class TimedCommandManager { 12 | 13 | private CMI plugin; 14 | private CMITask autoTimerBukkitId = null; 15 | private long nextIn = -1L; 16 | private boolean delay = false; 17 | 18 | public TimedCommandManager(CMI plugin) { 19 | this.plugin = plugin; 20 | } 21 | 22 | public Set timed = new HashSet(); 23 | 24 | public void addTimed(CMIUser user) { 25 | 26 | } 27 | 28 | public void stop() { 29 | } 30 | 31 | private Runnable autoTimer = new Runnable() { 32 | @Override 33 | public void run() { 34 | } 35 | }; 36 | 37 | private void checkUsers() { 38 | 39 | } 40 | 41 | private void updateNextIn(Long time) { 42 | } 43 | 44 | public boolean checkTFly(final CMIUser user, boolean logout) { 45 | 46 | return true; 47 | } 48 | 49 | public boolean checkTGod(final CMIUser user, boolean logout) { 50 | 51 | return true; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Totems/TotemBossBar.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Totems; 2 | 3 | import org.bukkit.boss.BossBar; 4 | 5 | import com.Zrips.CMI.Modules.Particl.CMIVisualEffect; 6 | import com.Zrips.CMI.Modules.Totems.TotemManager.BossBarType; 7 | 8 | public class TotemBossBar { 9 | 10 | private BossBar bar = null; 11 | private BossBarType type; 12 | private CMIVisualEffect effect; 13 | 14 | public TotemBossBar(BossBar bar, BossBarType type) { 15 | this.bar = bar; 16 | this.type = type; 17 | } 18 | 19 | public BossBar getBar() { 20 | return bar; 21 | } 22 | 23 | public void setBar(BossBar bar) { 24 | this.bar = bar; 25 | } 26 | 27 | public BossBarType getType() { 28 | return type; 29 | } 30 | 31 | public void setType(BossBarType type) { 32 | this.type = type; 33 | } 34 | 35 | public CMIVisualEffect getEffect() { 36 | return effect; 37 | } 38 | 39 | public void setEffect(CMIVisualEffect effect) { 40 | this.effect = effect; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/ViewRange/ViewRangeManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.ViewRange; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | import java.util.concurrent.ConcurrentHashMap; 6 | 7 | import org.bukkit.entity.Player; 8 | 9 | import com.Zrips.CMI.CMI; 10 | 11 | public class ViewRangeManager { 12 | 13 | public ConcurrentHashMap Info = new ConcurrentHashMap(); 14 | public List ChunkSendQuee = new ArrayList(); 15 | public List ChunkUnloadQuee = new ArrayList(); 16 | public boolean SendRunning = false; 17 | public boolean UnloadRunning = false; 18 | private CMI plugin; 19 | 20 | public ViewRangeManager(CMI plugin) { 21 | this.plugin = plugin; 22 | } 23 | 24 | public int getRangeFromPerm(Player player) { 25 | return 1; 26 | } 27 | 28 | public void FillOnMove(final ViewRangeInfo scan) { 29 | 30 | } 31 | 32 | private void unloadChunks(final ViewRangeInfo scan) { 33 | 34 | } 35 | 36 | private void addToUnloadQuee(ViewRangeInfo scan) { 37 | 38 | } 39 | 40 | private void getNextUnload() { 41 | 42 | } 43 | 44 | private void addToSendQuee(ViewRangeInfo scan) { 45 | 46 | } 47 | 48 | private void getNextLoad() { 49 | 50 | } 51 | 52 | private void sendChunk(final ViewRangeInfo scan) { 53 | 54 | } 55 | 56 | public void loadChunk(final ViewRangeInfo scan) { 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Warnings/CMIPlayerWarning.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Warnings; 2 | 3 | public class CMIPlayerWarning { 4 | 5 | private String givenBy; 6 | private long givenAt = 0; 7 | private String reason; 8 | private CMIWarningCategory category; 9 | 10 | public CMIPlayerWarning() { 11 | 12 | } 13 | 14 | public String getGivenBy() { 15 | return givenBy; 16 | } 17 | 18 | public void setGivenBy(String givenBy) { 19 | this.givenBy = givenBy; 20 | } 21 | 22 | public Long getGivenAt() { 23 | return givenAt; 24 | } 25 | 26 | public void setGivenAt(Long givenAt) { 27 | this.givenAt = givenAt == null ? 0 : givenAt; 28 | } 29 | 30 | public String getReason() { 31 | return reason; 32 | } 33 | 34 | public void setReason(String reason) { 35 | this.reason = reason; 36 | } 37 | 38 | public CMIWarningCategory getCategory() { 39 | return category; 40 | } 41 | 42 | public void setCategory(CMIWarningCategory category) { 43 | this.category = category; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Warnings/CMIWarningCategory.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Warnings; 2 | 3 | public class CMIWarningCategory { 4 | private String name; 5 | private Long lifeTime = 1000L; 6 | private int points = 1; 7 | private String defaultReason = "&7Violated server rules"; 8 | 9 | public CMIWarningCategory(String name) { 10 | this.name = name; 11 | 12 | } 13 | 14 | public Long getLifeTime() { 15 | return lifeTime; 16 | } 17 | 18 | public void setLifeTime(Long lifeTime) { 19 | this.lifeTime = lifeTime; 20 | } 21 | 22 | public int getPoints() { 23 | return points; 24 | } 25 | 26 | public void setPoints(int points) { 27 | this.points = points; 28 | } 29 | 30 | public String getDefaultReason() { 31 | return defaultReason; 32 | } 33 | 34 | public void setDefaultReason(String defaultReason) { 35 | this.defaultReason = defaultReason; 36 | } 37 | 38 | public String getName() { 39 | return name; 40 | } 41 | 42 | public void setName(String name) { 43 | this.name = name; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Worlds/UpdateOnWorldLoad.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Worlds; 2 | 3 | import org.bukkit.World; 4 | 5 | public class UpdateOnWorldLoad { 6 | public void update(World world) { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Worth/WorthEnchantment.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Worth; 2 | 3 | import org.bukkit.enchantments.Enchantment; 4 | 5 | public class WorthEnchantment { 6 | 7 | private Double sellPrice = 0D; 8 | private Double buyPrice = null; 9 | private Integer level = null; 10 | private Enchantment enchant; 11 | 12 | public WorthEnchantment(Enchantment enchant, int level, double sellPrice, Double buyPrice) { 13 | this.enchant = enchant; 14 | this.level = level; 15 | this.sellPrice = sellPrice; 16 | this.buyPrice = buyPrice; 17 | } 18 | 19 | // public WorthEnchantment(Enchantment enchant) { 20 | // this(enchant, 1, 0D); 21 | // } 22 | 23 | public Double getSellPrice() { 24 | return sellPrice; 25 | } 26 | 27 | public void setSellPrice(double price) { 28 | this.sellPrice = price; 29 | if (this.sellPrice < 0D) 30 | this.sellPrice = 0D; 31 | } 32 | 33 | public Double getBuyPrice() { 34 | return buyPrice == null ? sellPrice : buyPrice; 35 | } 36 | 37 | public boolean isBuyPriceSet() { 38 | return buyPrice != null; 39 | } 40 | 41 | public void setBuyPrice(Double buyPrice) { 42 | this.buyPrice = buyPrice; 43 | if (this.buyPrice != null && this.buyPrice < 0D) 44 | this.buyPrice = null; 45 | } 46 | 47 | public Enchantment getEnchant() { 48 | return enchant; 49 | } 50 | 51 | public Integer getLevel() { 52 | return level; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/Modules/Worth/WorthItemCheck.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.Modules.Worth; 2 | 3 | import org.bukkit.inventory.ItemStack; 4 | 5 | import com.Zrips.CMI.CMI; 6 | 7 | public class WorthItemCheck { 8 | 9 | private WorthItem worth = null; 10 | private ItemStack item; 11 | 12 | public WorthItemCheck(ItemStack item) { 13 | this.item = item.clone(); 14 | worth = CMI.getInstance().getWorthManager().getWorth(item); 15 | } 16 | 17 | public Double getSellPrice() { 18 | return getSellPrice(true); 19 | } 20 | 21 | public Double getSellPrice(boolean includeEnchants) { 22 | return getSellPrice(includeEnchants, true); 23 | } 24 | 25 | public Double getSellPrice(boolean includeEnchants, boolean includeDurability) { 26 | 27 | if (item == null) 28 | return worth.getSellPrice(); 29 | return worth.getPlayerSellPrice(item, includeEnchants, includeDurability); 30 | } 31 | 32 | public Double getEnchantSellPrice() { 33 | 34 | return null; 35 | } 36 | 37 | public ItemStack getItem() { 38 | return item; 39 | } 40 | 41 | public Double getBuyPrice() { 42 | return worth.getBuyPrice(); 43 | } 44 | 45 | public boolean isBuyPriceSet() { 46 | return worth.getBuyPrice() != null; 47 | } 48 | 49 | public WorthItem getWorth() { 50 | return worth; 51 | } 52 | 53 | public void setWorth(WorthItem worth) { 54 | this.worth = worth; 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/commands/.gitignore: -------------------------------------------------------------------------------- 1 | /JobCommand.class 2 | /JobsCommands.class 3 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/commands/CAnnotation.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.commands; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @Target({ ElementType.METHOD }) 10 | public @interface CAnnotation { 11 | int priority() default 100; 12 | 13 | String info() default ""; 14 | 15 | String args() default ""; 16 | 17 | String[] explanation() default {}; 18 | 19 | @Deprecated 20 | String[] tab() default {}; 21 | 22 | // ! in front prevents repeatable suggestions 23 | // |number| to repeat suggestions for specified tab complete amount 24 | String[] multiTab() default {}; 25 | 26 | int[] regVar() default { -666 }; 27 | 28 | int[] consoleVar() default { -666 }; 29 | 30 | boolean alias() default true; 31 | 32 | boolean hidden() default false; 33 | 34 | boolean test() default false; 35 | 36 | boolean ignoreHelpPage() default false; 37 | 38 | // only in cases where usage of ? in first variable results in help page, otherwise performs command 39 | boolean subIgnoreHelpPage() default false; 40 | 41 | String[] customAlias() default {}; 42 | 43 | String[] modules() default {}; 44 | 45 | boolean paccess() default false; 46 | 47 | Class redirectClass() default Void.class; 48 | 49 | String redirectFormat() default ""; 50 | 51 | boolean asyncSupported() default false; 52 | 53 | boolean others(); 54 | } 55 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/commands/CMICommand.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.commands; 2 | 3 | import com.Zrips.CMI.CMI; 4 | 5 | public class CMICommand { 6 | 7 | private Cmd cmdClass; 8 | private String name; 9 | private CAnnotation anottation; 10 | 11 | private Boolean enabled = null; 12 | private boolean baseEnabled = true; 13 | 14 | 15 | public CMICommand(Cmd cmdClass, String name, CAnnotation anottation) { 16 | this.cmdClass = cmdClass; 17 | this.name = name; 18 | this.anottation = anottation; 19 | } 20 | 21 | public Cmd getCmdClass() { 22 | return cmdClass; 23 | } 24 | 25 | public CMICommand setCmdClass(Cmd cmdClass) { 26 | this.cmdClass = cmdClass; 27 | return this; 28 | } 29 | 30 | public String getName() { 31 | return name; 32 | } 33 | 34 | public CMICommand setName(String name) { 35 | this.name = name; 36 | return this; 37 | } 38 | 39 | public CAnnotation getAnottation() { 40 | return anottation; 41 | } 42 | 43 | public String getTranslatedArgs() { 44 | return null; 45 | } 46 | 47 | public void setAnottation(CAnnotation anottation) { 48 | this.anottation = anottation; 49 | } 50 | 51 | public Boolean getEnabled() { 52 | return enabled; 53 | } 54 | 55 | public void setEnabled(Boolean enabled) { 56 | this.enabled = enabled; 57 | } 58 | 59 | public boolean getBaseEnabled() { 60 | return baseEnabled; 61 | } 62 | 63 | public void setBaseEnabled(boolean baseEnabled) { 64 | this.baseEnabled = baseEnabled; 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/commands/Cmd.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.commands; 2 | 3 | import org.bukkit.command.CommandSender; 4 | 5 | import com.Zrips.CMI.CMI; 6 | 7 | import net.Zrips.CMILib.FileHandler.ConfigReader; 8 | 9 | public interface Cmd { 10 | public Boolean perform(CMI plugin, CommandSender sender, String[] args); 11 | 12 | void getExtra(ConfigReader c); 13 | } 14 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/commands/Void.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.commands; 2 | 3 | import org.bukkit.command.CommandSender; 4 | 5 | import com.Zrips.CMI.CMI; 6 | 7 | import net.Zrips.CMILib.FileHandler.ConfigReader; 8 | 9 | public class Void implements Cmd { 10 | 11 | @Override 12 | public void getExtra(ConfigReader c) { 13 | } 14 | 15 | @Override 16 | @CAnnotation(others = false) 17 | public Boolean perform(CMI plugin, CommandSender sender, String[] args) { 18 | return true; 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIAfkEnterEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.bukkit.entity.Player; 7 | 8 | public final class CMIAfkEnterEvent extends CMIPlayerCancellableEvent { 9 | private List awayTrigerCommands = new ArrayList(); 10 | private AfkType type; 11 | 12 | public enum AfkType { 13 | auto, manual; 14 | } 15 | 16 | public CMIAfkEnterEvent(Player player, List awayTrigerCommands, AfkType afkType) { 17 | super(player); 18 | this.awayTrigerCommands = awayTrigerCommands; 19 | this.type = afkType; 20 | } 21 | 22 | public List getAwayTrigerCommands() { 23 | return awayTrigerCommands; 24 | } 25 | 26 | public void setAwayTrigerCommands(List awayTrigerCommands) { 27 | this.awayTrigerCommands = awayTrigerCommands; 28 | } 29 | 30 | public AfkType getType() { 31 | return this.type; 32 | } 33 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIAfkKickEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.bukkit.entity.Player; 7 | 8 | public final class CMIAfkKickEvent extends CMIPlayerCancellableEvent { 9 | 10 | private List kickTrigerCommands = new ArrayList(); 11 | 12 | public CMIAfkKickEvent(Player player, List kickTrigerCommands) { 13 | super(player); 14 | this.kickTrigerCommands = kickTrigerCommands; 15 | } 16 | 17 | public List getKickTrigerCommands() { 18 | return kickTrigerCommands; 19 | } 20 | 21 | public void setKickTrigerCommands(List kickTrigerCommands) { 22 | this.kickTrigerCommands = kickTrigerCommands; 23 | } 24 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIAfkLeaveEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.bukkit.entity.Player; 7 | 8 | public final class CMIAfkLeaveEvent extends CMIPlayerEvent { 9 | private List leaveTrigerCommands = new ArrayList(); 10 | private long time; 11 | private String reason; 12 | 13 | public CMIAfkLeaveEvent(Player player) { 14 | super(player); 15 | } 16 | 17 | @Deprecated 18 | public CMIAfkLeaveEvent(Player player, List leaveTrigerCommands) { 19 | super(player); 20 | this.leaveTrigerCommands = leaveTrigerCommands; 21 | } 22 | 23 | public CMIAfkLeaveEvent(Player player, List leaveTrigerCommands, long time, String reason) { 24 | super(player); 25 | this.leaveTrigerCommands = leaveTrigerCommands; 26 | this.time = time; 27 | this.reason = reason; 28 | } 29 | 30 | public List getLeaveTrigerCommands() { 31 | return leaveTrigerCommands; 32 | } 33 | 34 | public void setLeaveTrigerCommands(List leaveTrigerCommands) { 35 | this.leaveTrigerCommands = leaveTrigerCommands; 36 | } 37 | 38 | public long getTime() { 39 | return time; 40 | } 41 | 42 | public String getReason() { 43 | return reason; 44 | } 45 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIAnvilItemRenameEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.inventory.ItemStack; 5 | 6 | public final class CMIAnvilItemRenameEvent extends CMIPlayerCancellableEvent { 7 | 8 | private ItemStack itemFrom; 9 | private ItemStack itemTo; 10 | private int cost; 11 | 12 | public CMIAnvilItemRenameEvent(Player player, ItemStack itemFrom, ItemStack itemTo, int cost) { 13 | super(player); 14 | this.itemFrom = itemFrom; 15 | this.itemTo = itemTo; 16 | this.cost = cost; 17 | } 18 | 19 | public ItemStack getItemFrom() { 20 | return itemFrom; 21 | } 22 | 23 | public ItemStack getItemTo() { 24 | return itemTo; 25 | } 26 | 27 | public void setItemTo(ItemStack itemTo) { 28 | this.itemTo = itemTo; 29 | } 30 | 31 | public int getCost() { 32 | return cost; 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIAnvilItemRepairEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.inventory.ItemStack; 5 | 6 | public final class CMIAnvilItemRepairEvent extends CMIPlayerCancellableEvent { 7 | 8 | private ItemStack itemFrom; 9 | private ItemStack itemTo; 10 | private int repairCost; 11 | 12 | public CMIAnvilItemRepairEvent(Player player, ItemStack itemFrom, ItemStack itemTo, int repairCost) { 13 | super(player); 14 | this.itemFrom = itemFrom; 15 | this.itemTo = itemTo; 16 | this.repairCost = repairCost; 17 | } 18 | 19 | public ItemStack getItemFrom() { 20 | return itemFrom; 21 | } 22 | 23 | public ItemStack getItemTo() { 24 | return itemTo; 25 | } 26 | 27 | public void setItemTo(ItemStack itemTo) { 28 | this.itemTo = itemTo; 29 | } 30 | 31 | public int getRepairCost() { 32 | return repairCost; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIArmorChangeEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.inventory.ItemStack; 5 | 6 | import net.Zrips.CMILib.Items.ArmorTypes; 7 | 8 | public final class CMIArmorChangeEvent extends CMIPlayerCancellableEvent { 9 | 10 | private final EquipMethod equipType; 11 | private final ArmorTypes type; 12 | private ItemStack oldArmorPiece, newArmorPiece; 13 | 14 | public CMIArmorChangeEvent(final Player player, final EquipMethod equipType, ArmorTypes type, final ItemStack oldArmorPiece, final ItemStack newArmorPiece) { 15 | super(player); 16 | this.equipType = equipType; 17 | this.type = type; 18 | this.oldArmorPiece = oldArmorPiece; 19 | this.newArmorPiece = newArmorPiece; 20 | } 21 | 22 | 23 | public final ArmorTypes getType() { 24 | return type; 25 | } 26 | 27 | public final ItemStack getOldArmorPiece() { 28 | return oldArmorPiece; 29 | } 30 | 31 | public final void setOldArmorPiece(final ItemStack oldArmorPiece) { 32 | this.oldArmorPiece = oldArmorPiece; 33 | } 34 | 35 | public final ItemStack getNewArmorPiece() { 36 | return newArmorPiece; 37 | } 38 | 39 | public final void setNewArmorPiece(final ItemStack newArmorPiece) { 40 | this.newArmorPiece = newArmorPiece; 41 | } 42 | 43 | public EquipMethod getMethod() { 44 | return equipType; 45 | } 46 | 47 | public enum EquipMethod { 48 | SHIFT_CLICK, 49 | DRAG, 50 | HOTBAR, 51 | HOTBAR_SWAP, 52 | DISPENSER, 53 | BROKE, 54 | DEATH; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIAsyncPlayerTeleportEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.command.CommandSender; 5 | import org.bukkit.entity.Player; 6 | 7 | import com.Zrips.CMI.Modules.Teleportations.CMITeleportType; 8 | import com.Zrips.CMI.Modules.Teleportations.SafeTeleport; 9 | 10 | public final class CMIAsyncPlayerTeleportEvent extends CMIPlayerCancellableEvent { 11 | 12 | private CommandSender sender; 13 | private SafeTeleport safe; 14 | private CMITeleportType type; 15 | 16 | public CMIAsyncPlayerTeleportEvent(final CommandSender sender, final Player player, final SafeTeleport safe, final CMITeleportType type) { 17 | super(player, true); 18 | this.sender = sender; 19 | this.safe = safe; 20 | this.type = type; 21 | } 22 | 23 | public CommandSender getSender() { 24 | return sender; 25 | } 26 | 27 | public SafeTeleport getSafe() { 28 | return safe; 29 | } 30 | 31 | public CMITeleportType getType() { 32 | return type; 33 | } 34 | 35 | public Location getTo() { 36 | return getSafe().getSafeLoc(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIBackpackOpenEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.inventory.Inventory; 4 | import org.bukkit.inventory.ItemStack; 5 | 6 | import com.Zrips.CMI.Modules.ShulkerBoxInventory.ShulkerInv; 7 | 8 | public final class CMIBackpackOpenEvent extends CMIPlayerCancellableEvent { 9 | 10 | private ShulkerInv shulkerbackpack; 11 | private double costToOpen = 0D; 12 | 13 | public CMIBackpackOpenEvent(ShulkerInv shulkerbackpack) { 14 | super(shulkerbackpack.getPlayer()); 15 | this.shulkerbackpack = shulkerbackpack; 16 | } 17 | 18 | public CMIBackpackOpenEvent(ShulkerInv shulkerbackpack, double costToOpen) { 19 | super(shulkerbackpack.getPlayer()); 20 | this.shulkerbackpack = shulkerbackpack; 21 | this.costToOpen = costToOpen; 22 | } 23 | 24 | public ItemStack getShulkerBox() { 25 | return shulkerbackpack.getShulkerBox(); 26 | } 27 | 28 | public Inventory getGuiInv() { 29 | return shulkerbackpack.getCustomInv(); 30 | } 31 | 32 | public ShulkerInv getShulkerbackpack() { 33 | return shulkerbackpack; 34 | } 35 | 36 | public double getCostToOpen() { 37 | return costToOpen; 38 | } 39 | 40 | public void setCostToOpen(double costToOpen) { 41 | this.costToOpen = costToOpen; 42 | } 43 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMICancellableEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.event.Cancellable; 4 | 5 | public class CMICancellableEvent extends CMIEvent implements Cancellable { 6 | 7 | private boolean cancel = false; 8 | 9 | @Override 10 | public final void setCancelled(final boolean cancel) { 11 | this.cancel = cancel; 12 | } 13 | 14 | @Override 15 | public final boolean isCancelled() { 16 | return cancel; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIChequeCreationEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.inventory.ItemStack; 5 | 6 | public final class CMIChequeCreationEvent extends CMIPlayerCancellableEvent { 7 | 8 | private ItemStack cheque; 9 | private double price; 10 | 11 | public CMIChequeCreationEvent(final Player player, final ItemStack cheque, double price) { 12 | super(player); 13 | this.cheque = cheque; 14 | this.price = price; 15 | } 16 | 17 | public double getPrice() { 18 | return price; 19 | } 20 | 21 | public void setPrice(double price) { 22 | this.price = price; 23 | } 24 | 25 | public ItemStack getCheque() { 26 | return cheque; 27 | } 28 | 29 | public void setCheque(ItemStack cheque) { 30 | this.cheque = cheque; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIChequeUsageEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.inventory.ItemStack; 5 | 6 | public final class CMIChequeUsageEvent extends CMIPlayerCancellableEvent { 7 | 8 | private ItemStack cheque; 9 | private double price; 10 | 11 | public CMIChequeUsageEvent(final Player player, final ItemStack cheque, double price) { 12 | super(player); 13 | this.cheque = cheque; 14 | this.price = price; 15 | } 16 | 17 | public double getPrice() { 18 | return price; 19 | } 20 | 21 | public void setPrice(double price) { 22 | this.price = price; 23 | } 24 | 25 | public ItemStack getCheque() { 26 | return cheque; 27 | } 28 | 29 | public void setCheque(ItemStack cheque) { 30 | this.cheque = cheque; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIChunkChangeEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.Chunk; 4 | import org.bukkit.entity.Player; 5 | 6 | public final class CMIChunkChangeEvent extends CMIPlayerCancellableEvent { 7 | private Chunk oldChunk; 8 | private Chunk newChunk; 9 | 10 | public CMIChunkChangeEvent(Player player, Chunk oldChunk, Chunk newChunk) { 11 | super(player); 12 | this.oldChunk = oldChunk; 13 | this.newChunk = newChunk; 14 | } 15 | 16 | public Chunk getOldChunk() { 17 | return this.oldChunk; 18 | } 19 | 20 | public Chunk getNewChunk() { 21 | return this.newChunk; 22 | } 23 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIConfigReloadEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.command.CommandSender; 4 | 5 | public final class CMIConfigReloadEvent extends CMIEvent { 6 | 7 | private CommandSender sender; 8 | 9 | public CMIConfigReloadEvent(CommandSender sender) { 10 | this.sender = sender; 11 | } 12 | 13 | public CommandSender getSender() { 14 | return sender; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.event.Event; 4 | import org.bukkit.event.HandlerList; 5 | 6 | public class CMIEvent extends Event { 7 | 8 | private static final HandlerList handlers = new HandlerList(); 9 | 10 | public CMIEvent() { 11 | super(false); 12 | } 13 | 14 | public CMIEvent(boolean async) { 15 | super(async); 16 | } 17 | 18 | public final static HandlerList getHandlerList() { 19 | return handlers; 20 | } 21 | 22 | @Override 23 | public HandlerList getHandlers() { 24 | return handlers; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIEventCommandEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import java.util.List; 4 | 5 | import org.bukkit.entity.Player; 6 | 7 | import com.Zrips.CMI.Modules.EventActions.EventActionManager.eventAction; 8 | 9 | public final class CMIEventCommandEvent extends CMIPlayerCancellableEvent { 10 | 11 | private final eventAction action; 12 | private List commands; 13 | private List sourceCommands; 14 | private Player source; 15 | 16 | public CMIEventCommandEvent(final Player player, Player source, final eventAction action, List commands, List sourceCommands) { 17 | super(player); 18 | this.source = source; 19 | this.action = action; 20 | this.commands = commands; 21 | this.sourceCommands = sourceCommands; 22 | } 23 | 24 | public eventAction getAction() { 25 | return action; 26 | } 27 | 28 | public List getCommands() { 29 | return commands; 30 | } 31 | 32 | @Deprecated 33 | public void setCommands(List commands) { 34 | this.commands.clear(); 35 | this.commands.addAll(commands); 36 | } 37 | 38 | public Player getSource() { 39 | return source; 40 | } 41 | 42 | public void setSource(Player source) { 43 | this.source = source; 44 | } 45 | 46 | public List getSourceCommands() { 47 | return sourceCommands; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIIpBanEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.command.CommandSender; 4 | 5 | public final class CMIIpBanEvent extends CMICancellableEvent { 6 | 7 | private CommandSender by; 8 | private String ip; 9 | private Long until; 10 | private String reason; 11 | 12 | public CMIIpBanEvent(CommandSender by, String ip, String reason, Long until) { 13 | this.by = by; 14 | this.ip = ip; 15 | this.reason = reason; 16 | this.until = until; 17 | } 18 | 19 | public CommandSender getBannedBy() { 20 | return by; 21 | } 22 | 23 | public String getIp() { 24 | return ip; 25 | } 26 | 27 | public Long getUntil() { 28 | return until; 29 | } 30 | 31 | public String getReason() { 32 | return reason; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIIpUnBanEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.command.CommandSender; 4 | 5 | public final class CMIIpUnBanEvent extends CMICancellableEvent { 6 | 7 | private CommandSender by; 8 | private String ip; 9 | 10 | public CMIIpUnBanEvent(CommandSender by, String ip) { 11 | this.by = by; 12 | this.ip = ip; 13 | } 14 | 15 | public CommandSender getBannedBy() { 16 | return by; 17 | } 18 | 19 | public String getIp() { 20 | return ip; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerBanEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.command.CommandSender; 6 | 7 | public final class CMIPlayerBanEvent extends CMIEvent { 8 | 9 | private String reason; 10 | private Long until; 11 | private CommandSender by; 12 | private UUID banned; 13 | 14 | public CMIPlayerBanEvent(CommandSender by, final UUID banned, String reason, Long until) { 15 | this.banned = banned; 16 | this.by = by; 17 | this.reason = reason; 18 | this.until = until; 19 | } 20 | 21 | public String getReason() { 22 | return reason; 23 | } 24 | 25 | public Long getUntil() { 26 | return until; 27 | } 28 | 29 | public CommandSender getBannedBy() { 30 | return by; 31 | } 32 | 33 | public UUID getBanned() { 34 | return banned; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerCancellableEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.event.Cancellable; 5 | 6 | public class CMIPlayerCancellableEvent extends CMIPlayerEvent implements Cancellable { 7 | 8 | private boolean cancel = false; 9 | 10 | public CMIPlayerCancellableEvent(Player player, boolean async) { 11 | super(player, async); 12 | } 13 | 14 | public CMIPlayerCancellableEvent(Player player) { 15 | super(player); 16 | } 17 | 18 | @Override 19 | public final void setCancelled(final boolean cancel) { 20 | this.cancel = cancel; 21 | } 22 | 23 | @Override 24 | public final boolean isCancelled() { 25 | return cancel; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerChatFilterCapsEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public final class CMIPlayerChatFilterCapsEvent extends CMIPlayerCancellableEvent { 6 | 7 | private String message; 8 | 9 | public CMIPlayerChatFilterCapsEvent(final Player player, String message) { 10 | super(player); 11 | this.message = message; 12 | } 13 | 14 | public String getMessage() { 15 | return message; 16 | } 17 | 18 | public void setMessage(String message) { 19 | this.message = message; 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerChatFilterEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.Modules.ChatFilter.RuleResponse; 6 | 7 | public final class CMIPlayerChatFilterEvent extends CMIPlayerCancellableEvent { 8 | 9 | private RuleResponse response; 10 | 11 | public CMIPlayerChatFilterEvent(final Player player, RuleResponse response) { 12 | super(player); 13 | this.response = response; 14 | 15 | } 16 | 17 | public RuleResponse getResponse() { 18 | return response; 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public class CMIPlayerEvent extends CMIEvent { 6 | 7 | private final Player player; 8 | 9 | public CMIPlayerEvent(Player player, boolean async) { 10 | super(async); 11 | this.player = player; 12 | } 13 | 14 | public CMIPlayerEvent(Player player) { 15 | this(player, false); 16 | } 17 | 18 | public Player getPlayer() { 19 | return this.player; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerFakeEntityInteractEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.Containers.CMIInteractType; 6 | 7 | public final class CMIPlayerFakeEntityInteractEvent extends CMIPlayerEvent { 8 | 9 | private final int id; 10 | private Object obj; 11 | private CMIInteractType type; 12 | 13 | public CMIPlayerFakeEntityInteractEvent(final Player player, final int id, final Object obj, CMIInteractType type) { 14 | super(player); 15 | this.id = id; 16 | this.obj = obj; 17 | this.type = type; 18 | } 19 | 20 | public int getEntityId() { 21 | return id; 22 | } 23 | 24 | public Object getObject() { 25 | return obj; 26 | } 27 | 28 | public CMIInteractType getType() { 29 | return type; 30 | } 31 | 32 | public void setType(CMIInteractType type) { 33 | this.type = type; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerJailEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | import com.Zrips.CMI.Modules.Jail.CMIJailCell; 5 | 6 | public final class CMIPlayerJailEvent extends CMIUserCancellableEvent { 7 | 8 | private CMIJailCell cell; 9 | 10 | public CMIPlayerJailEvent(CMIUser user, CMIJailCell cell) { 11 | super(user); 12 | this.cell = cell; 13 | } 14 | 15 | public CMIJailCell getCell() { 16 | return cell; 17 | } 18 | 19 | public void setCell(CMIJailCell cell) { 20 | this.cell = cell; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerKickEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import java.util.UUID; 4 | 5 | import org.bukkit.command.CommandSender; 6 | 7 | public final class CMIPlayerKickEvent extends CMICancellableEvent { 8 | 9 | private String reason; 10 | private CommandSender by; 11 | private UUID banned; 12 | 13 | public CMIPlayerKickEvent(CommandSender by, final UUID banned, String reason) { 14 | this.banned = banned; 15 | this.by = by; 16 | this.reason = reason; 17 | } 18 | 19 | public String getReason() { 20 | return reason; 21 | } 22 | 23 | public CommandSender getBannedBy() { 24 | return by; 25 | } 26 | 27 | public UUID getBanned() { 28 | return banned; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerNickNameChangeEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | 5 | public final class CMIPlayerNickNameChangeEvent extends CMIUserCancellableEvent { 6 | 7 | private String nickname; 8 | 9 | public CMIPlayerNickNameChangeEvent(final CMIUser user, String nickname) { 10 | super(user); 11 | this.nickname = nickname; 12 | } 13 | 14 | public String getNickName() { 15 | return nickname; 16 | } 17 | 18 | public void setNickName(String nickname) { 19 | this.nickname = nickname; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerOpenArmorStandEditorEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.ArmorStand; 4 | import org.bukkit.entity.Player; 5 | 6 | public final class CMIPlayerOpenArmorStandEditorEvent extends CMIPlayerCancellableEvent { 7 | 8 | private ArmorStand armorStand; 9 | 10 | public CMIPlayerOpenArmorStandEditorEvent(Player player, ArmorStand armorStand) { 11 | super(player); 12 | this.armorStand = armorStand; 13 | } 14 | 15 | public ArmorStand getArmorStand() { 16 | return armorStand; 17 | } 18 | 19 | public void setArmorStand(ArmorStand armorStand) { 20 | this.armorStand = armorStand; 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerSitEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.Modules.Animations.AnimationManager.Chair; 6 | 7 | public final class CMIPlayerSitEvent extends CMIPlayerCancellableEvent { 8 | 9 | private Chair chair; 10 | 11 | public CMIPlayerSitEvent(final Player player, Chair chair) { 12 | super(player); 13 | this.chair = chair; 14 | } 15 | 16 | public Chair getChair() { 17 | return chair; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerTeleportRequestEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.Modules.Teleportations.TeleportManager.TpAction; 6 | 7 | public final class CMIPlayerTeleportRequestEvent extends CMIPlayerCancellableEvent { 8 | 9 | private Player whoAccepts; 10 | private TpAction action; 11 | 12 | public CMIPlayerTeleportRequestEvent(final Player whoOffers, final Player whoAccepts, TpAction action) { 13 | super(whoOffers); 14 | this.whoAccepts = whoAccepts; 15 | this.action = action; 16 | } 17 | 18 | public Player getWhoOffers() { 19 | return getPlayer(); 20 | } 21 | 22 | public Player getWhoAccepts() { 23 | return whoAccepts; 24 | } 25 | 26 | public TpAction getAction() { 27 | return action; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerUnBanEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.command.CommandSender; 4 | import org.bukkit.entity.Player; 5 | 6 | public final class CMIPlayerUnBanEvent extends CMIPlayerCancellableEvent { 7 | 8 | private CommandSender by; 9 | 10 | public CMIPlayerUnBanEvent(CommandSender by, final Player player) { 11 | super(player); 12 | this.by = by; 13 | } 14 | 15 | public CommandSender getBannedBy() { 16 | return by; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerUnVanishEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public final class CMIPlayerUnVanishEvent extends CMIPlayerCancellableEvent { 6 | 7 | public CMIPlayerUnVanishEvent(final Player player) { 8 | super(player); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerUnjailEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | import com.Zrips.CMI.Modules.Jail.CMIJailCell; 5 | 6 | public final class CMIPlayerUnjailEvent extends CMIEvent { 7 | 8 | private CMIUser user; 9 | 10 | private CMIJailCell cell; 11 | 12 | public CMIPlayerUnjailEvent(CMIUser user, CMIJailCell cell) { 13 | this.user = user; 14 | this.cell = cell; 15 | } 16 | 17 | public CMIUser getUser() { 18 | return user; 19 | } 20 | 21 | public CMIJailCell getCell() { 22 | return cell; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerVanishEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public final class CMIPlayerVanishEvent extends CMIPlayerCancellableEvent { 6 | 7 | public CMIPlayerVanishEvent(final Player player) { 8 | super(player); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerWarnEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | import com.Zrips.CMI.Modules.Warnings.CMIPlayerWarning; 5 | 6 | public final class CMIPlayerWarnEvent extends CMIUserCancellableEvent { 7 | 8 | private CMIPlayerWarning warning; 9 | 10 | public CMIPlayerWarnEvent(final CMIUser user, CMIPlayerWarning warning) { 11 | super(user); 12 | this.warning = warning; 13 | } 14 | 15 | public CMIPlayerWarning getWarning() { 16 | return warning; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPlayerWarpEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.command.CommandSender; 4 | import org.bukkit.entity.Player; 5 | 6 | import com.Zrips.CMI.Modules.Warps.CmiWarp; 7 | 8 | public final class CMIPlayerWarpEvent extends CMIPlayerCancellableEvent { 9 | 10 | private CmiWarp warp; 11 | private CommandSender sender; 12 | 13 | public CMIPlayerWarpEvent(final Player target, CmiWarp warp, CommandSender sender) { 14 | super(target); 15 | this.warp = warp; 16 | this.sender = sender; 17 | } 18 | 19 | public CmiWarp getWarp() { 20 | return warp; 21 | } 22 | 23 | public void setWarp(CmiWarp warp) { 24 | this.warp = warp; 25 | } 26 | 27 | public CommandSender getCommandSender() { 28 | return sender; 29 | } 30 | 31 | public void setCommandSender(CommandSender sender) { 32 | this.sender = sender; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPortalUseEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.Modules.Portals.CMIPortal; 6 | 7 | public final class CMIPortalUseEvent extends CMIPlayerCancellableEvent { 8 | 9 | private final CMIPortal portal; 10 | 11 | public CMIPortalUseEvent(final Player player, final CMIPortal portal) { 12 | super(player); 13 | this.portal = portal; 14 | } 15 | 16 | public CMIPortal getPortal() { 17 | return portal; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPvEEndEventAsync.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public final class CMIPvEEndEventAsync extends CMIPlayerEvent { 6 | 7 | public CMIPvEEndEventAsync(final Player player) { 8 | super(player, true); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPvEStartEventAsync.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.event.Cancellable; 5 | import org.bukkit.event.Event; 6 | import org.bukkit.event.HandlerList; 7 | 8 | public final class CMIPvEStartEventAsync extends CMIPlayerCancellableEvent { 9 | 10 | public CMIPvEStartEventAsync(final Player player) { 11 | super(player, true); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPvPEndEventAsync.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public final class CMIPvPEndEventAsync extends CMIPlayerEvent { 6 | 7 | public CMIPvPEndEventAsync(final Player player) { 8 | super(player, true); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIPvPStartEventAsync.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | public final class CMIPvPStartEventAsync extends CMIPlayerCancellableEvent { 6 | 7 | public CMIPvPStartEventAsync(final Player player) { 8 | super(player, true); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMISelectionEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.Modules.Portals.CuboidArea; 6 | 7 | public final class CMISelectionEvent extends CMIPlayerEvent { 8 | 9 | private CuboidArea area; 10 | 11 | public CMISelectionEvent(Player player, CuboidArea area) { 12 | super(player); 13 | this.area = area; 14 | } 15 | 16 | public CuboidArea getArea() { 17 | return area; 18 | } 19 | 20 | public void setArea(CuboidArea area) { 21 | this.area = area; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMISelectionVisualizationEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.Modules.Selection.Visualizer; 6 | 7 | public final class CMISelectionVisualizationEvent extends CMIPlayerCancellableEvent { 8 | 9 | private Visualizer visualizer; 10 | 11 | @Deprecated 12 | public CMISelectionVisualizationEvent(Player player) { 13 | super(player); 14 | } 15 | 16 | public CMISelectionVisualizationEvent(Player player, Visualizer visualizer) { 17 | super(player); 18 | this.visualizer = visualizer; 19 | } 20 | 21 | public Visualizer getVisualizer() { 22 | return visualizer; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIStaffMessageEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import java.util.Set; 4 | 5 | import org.bukkit.command.CommandSender; 6 | import org.bukkit.entity.Player; 7 | 8 | public final class CMIStaffMessageEvent extends CMICancellableEvent { 9 | 10 | private CommandSender by; 11 | private Set receivers; 12 | private String message; 13 | 14 | public CMIStaffMessageEvent(CommandSender by, Set receivers, String message) { 15 | this.by = by; 16 | this.receivers = receivers; 17 | this.message = message; 18 | } 19 | 20 | public CommandSender getSentBy() { 21 | return by; 22 | } 23 | 24 | public Set getReceivers() { 25 | return receivers; 26 | } 27 | 28 | public void setReceivers(Set receivers) { 29 | this.receivers = receivers; 30 | } 31 | 32 | public String getMessage() { 33 | return message; 34 | } 35 | 36 | public void setMessage(String message) { 37 | this.message = message; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIUserBalanceChangeEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | 5 | public final class CMIUserBalanceChangeEvent extends CMIUserEvent { 6 | 7 | private CMIUser source; 8 | private double from; 9 | private double to; 10 | private String actionType; 11 | 12 | @Deprecated 13 | public CMIUserBalanceChangeEvent(CMIUser user, double from, double to) { 14 | this(user, from, to, "Unknown"); 15 | } 16 | 17 | public CMIUserBalanceChangeEvent(CMIUser user, double from, double to, String actionType, CMIUser source) { 18 | super(user, true); 19 | this.from = from; 20 | this.to = to; 21 | this.actionType = actionType; 22 | this.source = source; 23 | } 24 | 25 | @Deprecated 26 | public CMIUserBalanceChangeEvent(CMIUser user, double from, double to, String actionType) { 27 | this(user, from, to, actionType, null); 28 | } 29 | 30 | public double getFrom() { 31 | return from; 32 | } 33 | 34 | public double getTo() { 35 | return to; 36 | } 37 | 38 | public String getActionType() { 39 | return actionType; 40 | } 41 | 42 | public void setActionType(String actionType) { 43 | this.actionType = actionType; 44 | } 45 | 46 | /** 47 | * Only indicates player from or to who money got transferred if possible 48 | */ 49 | public CMIUser getSource() { 50 | return source; 51 | } 52 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIUserCancellableEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | 5 | public class CMIUserCancellableEvent extends CMICancellableEvent { 6 | 7 | private final CMIUser user; 8 | 9 | public CMIUserCancellableEvent(CMIUser user) { 10 | this.user = user; 11 | } 12 | 13 | public CMIUser getUser() { 14 | return user; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIUserEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | 5 | public class CMIUserEvent extends CMIEvent { 6 | 7 | private final CMIUser user; 8 | 9 | public CMIUserEvent(CMIUser user, boolean async) { 10 | super(async); 11 | this.user = user; 12 | } 13 | 14 | public CMIUserEvent(CMIUser user) { 15 | this(user, false); 16 | } 17 | 18 | public CMIUser getUser() { 19 | return user; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIUserHomeCreateEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | import com.Zrips.CMI.Modules.Homes.CmiHome; 5 | 6 | public final class CMIUserHomeCreateEvent extends CMIUserCancellableEvent { 7 | 8 | private CmiHome home; 9 | 10 | public CMIUserHomeCreateEvent(CMIUser user, CmiHome home) { 11 | super(user); 12 | this.home = home; 13 | } 14 | 15 | public CmiHome getHome() { 16 | return home; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIUserHomeRemoveEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | import com.Zrips.CMI.Modules.Homes.CmiHome; 5 | 6 | public final class CMIUserHomeRemoveEvent extends CMIUserCancellableEvent { 7 | 8 | private CmiHome home; 9 | 10 | public CMIUserHomeRemoveEvent(CMIUser user, CmiHome home) { 11 | super(user); 12 | this.home = home; 13 | } 14 | 15 | public CmiHome getHome() { 16 | return home; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/CMIUserKitAcquireEvent.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import com.Zrips.CMI.Containers.CMIUser; 4 | import com.Zrips.CMI.Modules.Kits.Kit; 5 | 6 | public final class CMIUserKitAcquireEvent extends CMIUserCancellableEvent { 7 | 8 | private Kit kit; 9 | private boolean giveItems; 10 | 11 | public CMIUserKitAcquireEvent(CMIUser user, Kit kit, boolean giveItems) { 12 | super(user); 13 | this.kit = kit; 14 | this.giveItems = giveItems; 15 | } 16 | 17 | public Kit getKit() { 18 | return kit; 19 | } 20 | 21 | public boolean isGiveItems() { 22 | return giveItems; 23 | } 24 | 25 | public void setGiveItems(boolean giveItems) { 26 | this.giveItems = giveItems; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/events/EventAnnotation.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.events; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @Target({ ElementType.METHOD }) 10 | public @interface EventAnnotation { 11 | String info() default ""; 12 | } 13 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/CMIDiskUsage.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.io.IOException; 4 | import java.nio.file.FileStore; 5 | import java.nio.file.Files; 6 | import java.nio.file.Paths; 7 | 8 | public class CMIDiskUsage { 9 | 10 | private static FileStore FileSystem; 11 | 12 | static { 13 | update(); 14 | } 15 | 16 | public static long getUsed() { 17 | if (FileSystem == null) 18 | return 0L; 19 | try { 20 | return FileSystem.getTotalSpace() - FileSystem.getUsableSpace(); 21 | } catch (Throwable e) { 22 | } 23 | return 0L; 24 | } 25 | 26 | public static long getUsable() { 27 | if (FileSystem == null) 28 | return 0L; 29 | try { 30 | return FileSystem.getUsableSpace(); 31 | } catch (Throwable e) { 32 | } 33 | return 0L; 34 | } 35 | 36 | public static void update() { 37 | try { 38 | FileSystem = Files.getFileStore(Paths.get(".")); 39 | } catch (IOException iOException) { 40 | } 41 | } 42 | 43 | public static long getTotal() { 44 | if (FileSystem == null) 45 | return 0L; 46 | try { 47 | return FileSystem.getTotalSpace(); 48 | } catch (Throwable e) { 49 | } 50 | return 0L; 51 | } 52 | } -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/CMIEncoder.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.util.Base64; 4 | import java.util.Base64.Decoder; 5 | import java.util.List; 6 | 7 | import javax.crypto.Cipher; 8 | 9 | public class CMIEncoder { 10 | static Cipher encryptor; 11 | static Cipher decryptor; 12 | private final static String fineName = "security.key"; 13 | 14 | public static void initialize() { 15 | 16 | } 17 | 18 | public static String encode(String str) { 19 | return null; 20 | } 21 | 22 | public static boolean isEncoded(String str) { 23 | try { 24 | Decoder ed = Base64.getDecoder(); 25 | ed.decode(str); 26 | return true; 27 | } catch (Exception | Error e) { 28 | return false; 29 | } 30 | } 31 | 32 | public static String decode(String str) { 33 | return null; 34 | } 35 | 36 | public static List encode(List str) { 37 | return null; 38 | } 39 | 40 | @Deprecated 41 | public static List decode2(List str) { 42 | return decodeList(str); 43 | } 44 | 45 | public static List decodeList(List str) { 46 | return null; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/CMINBTListType.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | public enum CMINBTListType { 4 | END(0), BYTE(1), SHORT(2), INT(3), LONG(4), FLOAT(5), DOUBLE(6), BYTE_(7), STRING(8), LIST(9), COMPOUND(10), INT_(11), LONG_(12); 5 | 6 | private int id; 7 | 8 | CMINBTListType(int id) { 9 | this.id = id; 10 | } 11 | 12 | public int getId() { 13 | return id; 14 | } 15 | 16 | public static String getType(int id) { 17 | return null; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/ChunkFix.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.util.concurrent.ConcurrentHashMap; 4 | import java.util.regex.Pattern; 5 | 6 | import com.Zrips.CMI.CMI; 7 | import com.Zrips.CMI.Containers.FixChunkInfo; 8 | 9 | public class ChunkFix { 10 | 11 | public Pattern regionPattern = Pattern.compile("r\\.([0-9-]+)\\.([0-9-]+)\\.mca"); 12 | public ConcurrentHashMap ChunkFix = new ConcurrentHashMap(); 13 | private CMI plugin; 14 | 15 | public ChunkFix(CMI plugin) { 16 | this.plugin = plugin; 17 | } 18 | 19 | public void loadRegionFile(final FixChunkInfo scan) { 20 | 21 | } 22 | 23 | private void loadChunk(final FixChunkInfo scan) { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/EssentialsConverter.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.io.File; 4 | 5 | import org.bukkit.command.CommandSender; 6 | 7 | public class EssentialsConverter { 8 | 9 | static int totalToConvert = 0; 10 | static int converted = 0; 11 | static int lastBatch = 0; 12 | static boolean done = false; 13 | static File ff; 14 | 15 | public EssentialsConverter() { 16 | } 17 | 18 | public enum importType { 19 | homes, warps, nickname, logoutlocation, money, mail; 20 | } 21 | 22 | public static void convert(final CommandSender sender, importSettings is) { 23 | } 24 | 25 | public static void convertUsers(final CommandSender sender, final importSettings is) { 26 | 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/FileDownloader.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Arrays; 5 | import java.util.List; 6 | 7 | public class FileDownloader { 8 | 9 | public FileDownloader() { 10 | } 11 | 12 | static final List VALID_TYPES = new ArrayList(Arrays.asList("dat", "yml", "txt", "jar")); 13 | static final List VALID_SOURCES = new ArrayList<>(Arrays.asList( 14 | "https://raw.githubusercontent.com/Zrips/CMI/master/Settings/DeathMessages/", 15 | "https://raw.githubusercontent.com/Zrips/CMI/master/Translations/", 16 | "https://www.zrips.net/wp-content/uploads/2019/02/", 17 | "https://www.zrips.net/CMILib/")); 18 | 19 | public void downloadUsingStream(final String urlStr, final String file) { 20 | 21 | } 22 | 23 | public void afterDownload() { 24 | 25 | } 26 | 27 | public void failedDownload() { 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/HDConverter.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import org.bukkit.command.CommandSender; 4 | 5 | public class HDConverter { 6 | 7 | public HDConverter() { 8 | } 9 | 10 | public static void convert(CommandSender sender) { 11 | 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/Lag.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class Lag implements Runnable { 7 | private List TicksList = new ArrayList(); 8 | 9 | public int getTicks() { 10 | return TicksList.size(); 11 | } 12 | 13 | public double getTPS() { 14 | return getTPS(3); 15 | } 16 | 17 | public double getTPS(int seconds) { 18 | 19 | return 0; 20 | } 21 | 22 | public List getLastTimes(int range) { 23 | return null; 24 | } 25 | 26 | @Override 27 | public void run() { 28 | } 29 | 30 | public static double getProcessCpuLoad() throws Exception { 31 | return 0.0; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/PlayerVaultManager.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.lang.reflect.Method; 4 | import java.util.UUID; 5 | 6 | import org.bukkit.inventory.Inventory; 7 | 8 | public class PlayerVaultManager { 9 | 10 | public PlayerVaultManager() { 11 | } 12 | 13 | static Method vaultExistsMeth = null; 14 | static Method loadOtherVaultMeth = null; 15 | static Class c = null; 16 | 17 | private static void setVaultExistsMeth() { 18 | 19 | } 20 | 21 | private static void setLoadOtherVaultMeth() { 22 | 23 | } 24 | 25 | private static void setClass() { 26 | 27 | } 28 | 29 | public static boolean vaultExists(UUID uuid, int id) { 30 | 31 | return true; 32 | } 33 | 34 | public static Inventory loadOtherVault(UUID uuid, int i, int y) { 35 | 36 | return null; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/UUIDFetcher.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.util.UUID; 4 | 5 | public class UUIDFetcher { 6 | 7 | public static UUID getUUID(String name) { 8 | 9 | return null; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/UnloadChunks.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.util.concurrent.ConcurrentHashMap; 4 | 5 | import com.Zrips.CMI.CMI; 6 | import com.Zrips.CMI.Containers.UCInfo; 7 | 8 | public class UnloadChunks { 9 | 10 | public ConcurrentHashMap ucinfo = new ConcurrentHashMap(); 11 | private CMI plugin; 12 | 13 | public UnloadChunks(CMI plugin) { 14 | this.plugin = plugin; 15 | } 16 | 17 | public void loadRegionFile(final UCInfo scan) { 18 | } 19 | 20 | private void loadChunk(final UCInfo scan) { 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/VersionChecker.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | import com.Zrips.CMI.CMI; 6 | 7 | public class VersionChecker { 8 | private int resource = 3742; 9 | 10 | private CMI plugin; 11 | 12 | public VersionChecker(CMI plugin) { 13 | this.plugin = plugin; 14 | } 15 | 16 | public Integer convertVersion(String v) { 17 | 18 | return null; 19 | } 20 | 21 | public String deconvertVersion(Integer v) { 22 | 23 | return null; 24 | } 25 | 26 | public void VersionCheck(final Player player) { 27 | 28 | } 29 | 30 | public String getOfficialVersion() { 31 | return getOfficialVersion(resource); 32 | } 33 | 34 | public String getOfficialVersion(int resource) { 35 | 36 | return null; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/com/Zrips/CMI/utils/importSettings.java: -------------------------------------------------------------------------------- 1 | package com.Zrips.CMI.utils; 2 | 3 | import java.util.HashMap; 4 | 5 | import com.Zrips.CMI.utils.EssentialsConverter.importType; 6 | 7 | public class importSettings { 8 | private HashMap map = new HashMap(); 9 | 10 | public importSettings set(importType type, boolean state) { 11 | map.put(type, state); 12 | return this; 13 | } 14 | 15 | public boolean is(importType type) { 16 | if (!map.containsKey(type)) 17 | return false; 18 | return map.get(type); 19 | } 20 | 21 | public HashMap getMap() { 22 | return map; 23 | } 24 | 25 | public void setMap(HashMap map) { 26 | this.map = map; 27 | } 28 | } 29 | --------------------------------------------------------------------------------