mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-18 17:53:00 +01:00
Compare commits
5 Commits
javadocs
...
dev-comman
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13f0f396d7 | ||
|
|
31e04a2d91 | ||
|
|
2fcd3904dc | ||
|
|
92fa2782d0 | ||
|
|
eb10db5b06 |
118
Changelog.txt
118
Changelog.txt
@@ -7,125 +7,9 @@ Key:
|
|||||||
! Change
|
! Change
|
||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
Version 1.5.01-dev
|
Version 1.4.08-dev
|
||||||
+ Added new child skill; Salvage
|
|
||||||
+ Added UUID support!
|
|
||||||
+ Added SQL connection pooling and async loading!
|
|
||||||
+ Added the long awaited Diminished Returns feature
|
|
||||||
+ Added new feature to Herbalism. Instantly-regrown crops are protected from being broken for 1 second
|
|
||||||
+ Added option to config.yml to show the /mcstats scoreboard automatically after logging in
|
|
||||||
+ Added option to config.yml for Alchemy. Skills.Alchemy.Prevent_Hopper_Transfer_Bottles
|
|
||||||
+ Added option to config.yml for Scoreboards, display "Ability" instead of ability names on the scoreboards
|
|
||||||
+ Added options to experience.yml for Dirt and Sand variations
|
|
||||||
+ Added support for `MATERIAL|data` format in treasures.yml
|
|
||||||
+ Added API to experience events to get XP gain reason
|
|
||||||
+ Added API to check if an entity is bleeding
|
|
||||||
+ Added API to ExperienceAPI to get the amount of XP needed for a level
|
|
||||||
+ Added API class SkillAPI used to get a list of valid skill names
|
|
||||||
+ Added API events for hardcore features, McMMOPlayerPreDeathPenaltyEvent, McMMOPlayerStatLossEvent and McMMOPlayerVampirismEvent
|
|
||||||
+ Added API to ExperienceAPI to specify if XP can be shared
|
|
||||||
+ Added options to tools.yml and armor.yml config files to set a pretty repair material name
|
|
||||||
+ Added full support for repairables in tools.yml and armor.yml config files
|
|
||||||
+ Added magical mod config file import command, for Cauldron 1.7+. Check wiki for usage
|
|
||||||
+ Added particle effects and sounds to "Call of the Wild" (Taming)
|
|
||||||
+ Added summon length to "Call of the Wild". Summons will now commit suicide after their lifespan expires
|
|
||||||
+ Added feature which makes tamed wolves attack a target shot by the owner
|
|
||||||
= Fixed bug where pistons would mess with the block tracking
|
|
||||||
= Fixed bug where the Updater was running on the main thread.
|
|
||||||
= Fixed bug when players would use /ptp without being in a party
|
|
||||||
= Fixed bug where player didn't have a mcMMOPlayer object in AsyncPlayerChatEvent
|
|
||||||
= Fixed bug where dodge would check the wrong player skill level
|
|
||||||
= Fixed bug which causes /party teleport to stop working
|
|
||||||
= Fixed bug where SaveTimerTask would produce an IndexOutOfBoundsException
|
|
||||||
= Fixed bug where Alchemy would not fire BrewEvents
|
|
||||||
= Fixed bug with setting custom names and lore in treasures config
|
|
||||||
= Fixed bug which would cause a NullPointerException with getFlowerAndGrassXp()
|
|
||||||
= Fixed bug which could cause and SQLException regarding the connection property 'maxReconnects'.
|
|
||||||
= Fixed bug where falling blocks were incorrectly tracked
|
|
||||||
= Fixed bug where items would get deleted when in Berserk with a full inventory
|
|
||||||
= Fixed bug where the console would not correctly show party chat colors
|
|
||||||
= Fixed bug where party chat was using non thread safe methods
|
|
||||||
= Fixed bug where Blast Mining unlock levels could be to high in certain occasions
|
|
||||||
= Fixed bug where Blast Minings ability "Demolition Expert" would not work
|
|
||||||
= Fixed bug where Repair_Material_Quantity wasn't read in mod config files
|
|
||||||
! Changed SecondaryAbilityEvent to implement Cancellable and it now gets fired for damage related secondary abilities
|
|
||||||
! Changed the way mcMMO handles bonus damage, updated for the new damage event API
|
|
||||||
! Changed player data saving. Save tasks are now asynchronous
|
|
||||||
! Vanished players no longer get hit by AoE effects
|
|
||||||
! Changed Alchemy config option 'Prevent_Hopper_Transfer' renamed to 'Prevent_Hopper_Transfer_Ingredients'
|
|
||||||
! Changed Alchemy XP distribution. XP is granted based on the stage of the potion.
|
|
||||||
! Changed behavior of the Blast Mining ability "Demolition Expert"; now only decreases damage for the ability user
|
|
||||||
! Updated for new getOnlinePlayers() behavior
|
|
||||||
! Changed McMMOPlayerDeathPenaltyEvent to get fired after hardcore penalty calculations, use McMMOPlayerPreDeathPenaltyEvent for old behavior
|
|
||||||
! Moved Refresh_Chunks setting from hidden.yml to config.yml
|
|
||||||
- Removed salvage ability from Repair, salvage has it's own (child) skill now
|
|
||||||
|
|
||||||
Version 1.5.00
|
|
||||||
+ Added Podzol & Red Sand to Excavation
|
|
||||||
+ Added Hardened Clay, Stained Clay, and Packed Ice to Mining blocks
|
|
||||||
+ Added Acacia and Dark Oak to Woodcutting blocks
|
|
||||||
+ Added Salmon, Clownfish, and Pufferfish to Fishing XP
|
|
||||||
+ Added new flowers and grasses to Herbalism XP
|
|
||||||
+ Added option to config.yml which allows players to always catch fish, even when a treasure is found
|
|
||||||
+ Added option to config.yml to override vanilla Minecraft treasures
|
|
||||||
! Fishing XP now depends on the type of fish.
|
|
||||||
! Woodcutting XP in experience.yml and Woodcutting double drops in config.yml now use the tree species names. Oak is now Generic, and Spruce is now Redwood.
|
|
||||||
! Red_Rose was replaced by Poppy, and so the key in experience.yml has been updated accordingly.
|
|
||||||
- Removed deprecated permission nodes
|
|
||||||
- Removed "Treasure found!" message
|
|
||||||
|
|
||||||
Version 1.4.08
|
|
||||||
+ Added a new skill; Alchemy. Special thanks to EasyMFnE for creating this!
|
|
||||||
+ Added SecondaryAbilityType enum, and new SecondaryAbilityWeightedActivationCheckEvent, fired when a secondary ability checkes its activation chances
|
|
||||||
+ Added the possibility to gain experience when using Fishing "Shake"
|
+ Added the possibility to gain experience when using Fishing "Shake"
|
||||||
+ Added config options to disable various sound effects
|
|
||||||
+ Smelting now works with custom ores - add smelting XP value to blocks.yml, or it will default to 1/10th of normal XP.
|
|
||||||
+ Added automatic cleanup of backups folder.
|
|
||||||
+ Added bypass permission for finding Fishing traps
|
|
||||||
+ Added level threshold settings to hardcore modes. When a players skill level is below this threshold, they will not lose any stats
|
|
||||||
+ Added party alliances, two parties can now team up. Allies share party chat and cannot harm each other.
|
|
||||||
+ Added new experience bonus perk 'mcmmo.perks.xp.10percentboost.<skillname>' multiplies incoming XP by 1.1
|
|
||||||
+ Added new experience bonus perk 'mcmmo.perks.xp.customboost.<skillname>' multiplies incoming XP by the boost amount defined in the experience config
|
|
||||||
+ Added Ender Dragon, Wither, and Witch to combat experience multipliers - they do not give XP by default
|
|
||||||
+ Added support for multiple mod config files, naming can be done as either armor.<modname>.yml or <modname>.armor.yml
|
|
||||||
+ Added config options to configure the items used in "Call of the Wild"
|
|
||||||
+ Added config option to configure the database command cooldown
|
|
||||||
= Fixed bug where healthbars wouldn't display if skills were disabled
|
|
||||||
= Fixed bug with "Call of the Wild" entities despawning
|
|
||||||
= Fixed bug with updating (very) old user data.
|
|
||||||
= Fixed bug with checking maximum durability of mod items.
|
|
||||||
= Fixed exploit involving Call of The Wild.
|
|
||||||
= Fixed bug where LeafBlower permissions were ignored
|
|
||||||
= Fixed bug with toggle commands not properly displaying the success message.
|
|
||||||
= Fixed IllegalArgumentException caused by an empty Fishing treasure category
|
= Fixed IllegalArgumentException caused by an empty Fishing treasure category
|
||||||
= Fixed bug with Salvage not reading the config value for the anvil material.
|
|
||||||
= Fixed exploit where you could receive smelting XP for improper items
|
|
||||||
= Fixed bug where the Unbreaking enchantment was ignored when using "Super Breaker" or "Giga Drill Breaker"
|
|
||||||
= Fixed bug which prevented players from gaining Acrobatics XP when the setting 'Prevent_XP_After_Teleport' was set to false
|
|
||||||
= Fixed bug where cooldown donor perks were reducing more than expected
|
|
||||||
= Fixed bug where disabling hardcore mode for specific skills didn't work
|
|
||||||
= Fixed bug which caused the backup cleanup to delete old backups while it should have kept those
|
|
||||||
= Fixed bug where party chat broke if the display name contained special characters
|
|
||||||
= Fixed bug where `/addlevels all` and `/skillreset all` didn't work
|
|
||||||
= Fixed bug which made it possible to gain XP by taming the same horse multiple times, if a player "untamed" that horse
|
|
||||||
= Fixed bug where some horses summoned with "Call of the Wild" were unable to jump
|
|
||||||
= Fixed bug where the /ptp request expiration time was checked wrongly - preventing players from using the command
|
|
||||||
= Fixed bug where Hylian Luck was broken
|
|
||||||
= Fixed bug where Snow would never drop treasures
|
|
||||||
= Fixed issues with commands giving away vanished players.
|
|
||||||
= Fixed bug where the Repair lucky perk would increase the Arcane Forging downgrade chance, instead of decreasing it
|
|
||||||
! Changed party system. Parties now have XP and Levels. Party features such as party teleport and party chat have to be unlocked before they can be used by the party members
|
|
||||||
! Changed appearance of party member list. Gold = party leader, White = online, Gray = offline, Italic = not nearby
|
|
||||||
! Updated localization files
|
|
||||||
! Changed the appearance of /mcmmo commands
|
|
||||||
! Changed AxesCritical to CriticalHit in config file
|
|
||||||
! Changed several secondary ability permissions(deprecated versions still exist)
|
|
||||||
! Changed /ptp config setting, Commands.ptp.Confirm_Required is now Commands.ptp.Accept.Required
|
|
||||||
! Changed config validation for UnlockLevels, they can now also be 0
|
|
||||||
! Changed config validation for Rank_Levels, successive Ranks can now be less than or equal to each other
|
|
||||||
! Changed default amount of XP gained from mining Quartz Ore. From 250 to 100 XP.
|
|
||||||
! Changed Acrobatics config setting, Skills.Acrobatics.Prevent_XP_After_Teleport is now Skills.Acrobatics.XP_After_Teleport_Cooldown
|
|
||||||
- Removed /stats alias for /mcstats
|
|
||||||
|
|
||||||
Version 1.4.07
|
Version 1.4.07
|
||||||
+ Added XP boost to Acrobatics when wearing Boots of Feather Falling
|
+ Added XP boost to Acrobatics when wearing Boots of Feather Falling
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
Our latest development builds are available ~~[here](http://ci.mcmmo.info)~~. Unfortunately, the mcMMO site is down; a temporary dev build location is hosted [here](http://ci.ecocitycraft.com/job/mcMMO/).
|
Our latest development builds are available ~~[here](http://ci.mcmmo.info)~~. Unfortunately, the mcMMO site is down; a temporary dev build location is hosted [here](http://ci.ecocitycraft.com/job/mcMMO/).
|
||||||
|
|
||||||
### Brief Description
|
### Brief Description
|
||||||
The goal of mcMMO is to take core Minecraft game mechanics and expand them into add an extensive and quality RPG experience. Everything in mcMMO has been carefully thought out and is constantly being improved upon. Currently, mcMMO adds fourteen unique skills to train and level in. Each of these skills is highly customizable through our configuration files, allowing server admins to tweak mcMMO to best suit the needs of his or her server. Know that the mcMMO team is dedicated to providing an ever-evolving experience, and that we carefully read all feedback and bug reports in order to evaluate and balance the mechanics of mcMMO in every update.
|
The goal of mcMMO is to take core Minecraft game mechanics and expand them into add an extensive and quality RPG experience. Everything in mcMMO has been carefully thought out and is constantly being improved upon. Currently, mcMMO adds thirteen unique skills to train and level in. Each of these skills is highly customizable through our configuration files, allowing server admins to tweak mcMMO to best suit the needs of his or her server. Know that the mcMMO team is dedicated to providing an ever-evolving experience, and that we carefully read all feedback and bug reports in order to evaluate and balance the mechanics of mcMMO in every update.
|
||||||
|
|
||||||
## About the Team
|
## About the Team
|
||||||
|
|
||||||
@@ -32,14 +32,9 @@ mcMMO is currently developed by a team of individuals from all over the world.
|
|||||||
[]
|
[]
|
||||||
(https://github.com/riking)
|
(https://github.com/riking)
|
||||||
|
|
||||||
### Special thanks
|
|
||||||
[]
|
|
||||||
(https://github.com/EasyMFnE)
|
|
||||||
Added the Alchemy skill
|
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
|
|
||||||
mcMMO uses Maven 3 to manage dependencies, packaging, and shading of necessary classes; Maven 3 is required to compile mcMMO.
|
mcMMO uses Maven 3 to manage dependancies, packaging, and shading of necessary classes; Maven 3 is required to compile mcMMO.
|
||||||
|
|
||||||
The typical command used to build mcMMO is: `mvn clean package install`
|
The typical command used to build mcMMO is: `mvn clean package install`
|
||||||
|
|
||||||
|
|||||||
@@ -1,439 +0,0 @@
|
|||||||
# Lord of the Rings mod config by Dragyn
|
|
||||||
# Built against version [1.6.4] The Lord of the Rings Mod Public Beta 11.1
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Boots
|
|
||||||
###
|
|
||||||
Boots:
|
|
||||||
# Bronze
|
|
||||||
X12015:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Orc
|
|
||||||
X12035:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Gondorian
|
|
||||||
X12060:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Mithril
|
|
||||||
X12064:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Elven
|
|
||||||
X12088:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Warg
|
|
||||||
X12098:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12094
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Dwarven
|
|
||||||
X12129:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Galven
|
|
||||||
X12134:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12130
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Uruk
|
|
||||||
X12161:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Wood Elf
|
|
||||||
X12176:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LEATHER
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Ancient
|
|
||||||
X12180:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12179
|
|
||||||
Repair_Material_Data_Value: 3
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Rohirric
|
|
||||||
X12187:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Rangers
|
|
||||||
X12206:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LEATHER
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Dunlending
|
|
||||||
X12210:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Morgul
|
|
||||||
X12222:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12217
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
#
|
|
||||||
# Settings for Chestplates
|
|
||||||
###
|
|
||||||
Chestplates:
|
|
||||||
# Bronze
|
|
||||||
X12013:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Orc
|
|
||||||
X12033:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Gondorian
|
|
||||||
X12058:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Mithril
|
|
||||||
X12062:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Elven
|
|
||||||
X12086:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Warg
|
|
||||||
X12096:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12094
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Dwarven
|
|
||||||
X12127:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Galven
|
|
||||||
X12132:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12130
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Uruk
|
|
||||||
X12159:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Wood Elf
|
|
||||||
X12174:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LEATHER
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Ancient
|
|
||||||
X12178:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12179
|
|
||||||
Repair_Material_Data_Value: 3
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Rohirric
|
|
||||||
X12185:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Rangers
|
|
||||||
X12204:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LEATHER
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Dunlending
|
|
||||||
X12208:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Morgul
|
|
||||||
X12220:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12217
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
#
|
|
||||||
# Settings for Helmets
|
|
||||||
###
|
|
||||||
Helmets:
|
|
||||||
# Bronze
|
|
||||||
X12012:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Orc
|
|
||||||
X12032:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Gondorian
|
|
||||||
X12057:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Mithril
|
|
||||||
X12061:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Elven
|
|
||||||
X12085:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Warg
|
|
||||||
X12095:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12094
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Dwarven
|
|
||||||
X12126:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Galven
|
|
||||||
X12131:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12130
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Uruk
|
|
||||||
X12158:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Wood Elf
|
|
||||||
X12173:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LEATHER
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Ancient
|
|
||||||
X12177:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12179
|
|
||||||
Repair_Material_Data_Value: 3
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Rohirric
|
|
||||||
X12184:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Rangers
|
|
||||||
X12203:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LEATHER
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Dunlending
|
|
||||||
X12207:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Morgul
|
|
||||||
X12219:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12217
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
#
|
|
||||||
# Settings for Leggings
|
|
||||||
###
|
|
||||||
Leggings:
|
|
||||||
# Bronze
|
|
||||||
X12014:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Orc
|
|
||||||
X12034:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Gondorian
|
|
||||||
X12059:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Mithril
|
|
||||||
X12063:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Elven
|
|
||||||
X12087:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Warg
|
|
||||||
X12097:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12094
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Dwarven
|
|
||||||
X12128:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Galven
|
|
||||||
X12133:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12130
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Uruk
|
|
||||||
X12160:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Wood Elf
|
|
||||||
X12175:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LEATHER
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Ancient
|
|
||||||
X12179:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12179
|
|
||||||
Repair_Material_Data_Value: 3
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Rohirric
|
|
||||||
X12186:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Rangers
|
|
||||||
X12205:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LEATHER
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Dunlending
|
|
||||||
X12209:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Morgul
|
|
||||||
X12221:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12217
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
@@ -1,211 +0,0 @@
|
|||||||
# Lord of the Rings mod config by Skuli (Updated by Dragyn)
|
|
||||||
# Built against version [1.6.4] The Lord of the Rings Mod Public Beta 11.1
|
|
||||||
#
|
|
||||||
# Settings for Custom Excavation Blocks
|
|
||||||
###
|
|
||||||
Excavation:
|
|
||||||
Block_1|0:
|
|
||||||
XP_Gain: 99
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Block_2|0:
|
|
||||||
XP_Gain: 99
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Herbalism Blocks
|
|
||||||
###
|
|
||||||
Herbalism:
|
|
||||||
|
|
||||||
# Shireheather
|
|
||||||
X1813:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Simbelmyne
|
|
||||||
X1805:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Asphodel
|
|
||||||
X1895:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Bluebell
|
|
||||||
X1867:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Clover
|
|
||||||
X1873:
|
|
||||||
XP_Gain: 10
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
|
|
||||||
# Dead Marsh Plant
|
|
||||||
X1886:
|
|
||||||
XP_Gain: 10
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
|
|
||||||
# DwarfWort
|
|
||||||
X1902:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Elanor
|
|
||||||
X1833:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Lettuce Crop
|
|
||||||
X1830:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Morgul Shroom
|
|
||||||
X1870:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Niphredil
|
|
||||||
X1834:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Pipeweed Crop
|
|
||||||
X1823:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
# Pipeweed Plant
|
|
||||||
X1822:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
|
|
||||||
# Mithril
|
|
||||||
X1803:
|
|
||||||
XP_Gain: 2000
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
Is_Ore: true
|
|
||||||
# Naurite
|
|
||||||
X1818:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
Is_Ore: false
|
|
||||||
#Glowstone Ore
|
|
||||||
X1859:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
Is_Ore: false
|
|
||||||
# Remains
|
|
||||||
X1885:
|
|
||||||
XP_Gain: 1800
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
Is_Ore: false
|
|
||||||
# Gulduril
|
|
||||||
X1887:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
# Quendite
|
|
||||||
X1846:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
# MorgulIron
|
|
||||||
X1819:
|
|
||||||
XP_Gain: 25
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
# Rohan Rock
|
|
||||||
X180|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
|
|
||||||
#Gondor Stone
|
|
||||||
X180|1:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
# Mordor Stone
|
|
||||||
X180|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: false
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Woodcutting Blocks
|
|
||||||
###
|
|
||||||
Woodcutting:
|
|
||||||
# Shire Pine
|
|
||||||
X1806|0:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
# Mallorn
|
|
||||||
X1806|1:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
# Apple
|
|
||||||
X1860|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
# Pear
|
|
||||||
X1860|1:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
# Cherry
|
|
||||||
X1860|2:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
# Mirkwood
|
|
||||||
X1806|2:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
# Charred
|
|
||||||
X1806|3:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
# Lebethron
|
|
||||||
X1896|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
# Beech
|
|
||||||
X1896|1:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Ability Blocks
|
|
||||||
# (These blocks don't trigger abilities)
|
|
||||||
###
|
|
||||||
Ability_Blocks:
|
|
||||||
Block_1|0:
|
|
||||||
Block_2|0:
|
|
||||||
@@ -1,700 +0,0 @@
|
|||||||
# Lord of the Rings mod config by Skuli (Updated by Dragyn)
|
|
||||||
# Built against version [1.6.4] The Lord of the Rings Mod Public Beta 11.1
|
|
||||||
|
|
||||||
Axes:
|
|
||||||
#DwarvenThrowingAxe
|
|
||||||
X12146:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 451
|
|
||||||
#UrukWarhammer
|
|
||||||
X12156:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 391
|
|
||||||
#Gondorian Warhammer
|
|
||||||
X12140:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 281
|
|
||||||
#UrukBattleaxe
|
|
||||||
X12155:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 391
|
|
||||||
#MithrilBattleaxe
|
|
||||||
X12138:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 2479
|
|
||||||
#MithrilWarhamer
|
|
||||||
X12139:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 2479
|
|
||||||
#OrcWarhammer
|
|
||||||
X12125:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 261
|
|
||||||
#Dwarven Warhammer
|
|
||||||
X12120:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 451
|
|
||||||
#DwarvenZbattleaxe
|
|
||||||
X12119:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 451
|
|
||||||
#BronzeAxe
|
|
||||||
X12009:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 197
|
|
||||||
#MithrilAxe
|
|
||||||
X12050:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 2479
|
|
||||||
#MallornAxe
|
|
||||||
X12075:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X1801
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 121
|
|
||||||
#Elven Axe
|
|
||||||
X12080:
|
|
||||||
XP_Modifer: 2
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 313
|
|
||||||
#DwarvenAxe
|
|
||||||
X12115:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 450
|
|
||||||
#OrcAxe
|
|
||||||
X12123:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 261
|
|
||||||
#UrukAxe
|
|
||||||
X12150:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 391
|
|
||||||
Bows:
|
|
||||||
#ElvenBow
|
|
||||||
X12093:
|
|
||||||
XP_Modifer: 2
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 9
|
|
||||||
Durability: 485
|
|
||||||
#mallornbow
|
|
||||||
X12084:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X1801
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 417
|
|
||||||
#orcBow
|
|
||||||
X12099:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 441
|
|
||||||
#UrukCrossbow
|
|
||||||
X12163:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 471
|
|
||||||
#MithrilCrossbow
|
|
||||||
X12171:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 1761
|
|
||||||
#IronCrossbow
|
|
||||||
X12170:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 9
|
|
||||||
Durability: 357
|
|
||||||
#BowofMirkwood
|
|
||||||
X12177:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X1806
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 417
|
|
||||||
Hoes:
|
|
||||||
#BronzeHoe
|
|
||||||
X12011:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 197
|
|
||||||
#MithrilHoe
|
|
||||||
X12052:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 2479
|
|
||||||
#MallornHoe
|
|
||||||
X12077:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X1801
|
|
||||||
Repair_Material_Data_Value: 1
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 121
|
|
||||||
#CopperHoe
|
|
||||||
X26511:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X26507
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 180
|
|
||||||
#ElvenHoe
|
|
||||||
X12082:
|
|
||||||
XP_Modifer: 2
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12082
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 313
|
|
||||||
#DwarvenHoe
|
|
||||||
X12117:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X26507
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 180
|
|
||||||
Pickaxes:
|
|
||||||
#MEBronzePickaxe
|
|
||||||
X12008:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 197
|
|
||||||
#MithrilPixkaxe
|
|
||||||
X12049:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 2479
|
|
||||||
#MallornPickaxe
|
|
||||||
X12074:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X1801
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 121
|
|
||||||
#ElvenPickaxe
|
|
||||||
X12079:
|
|
||||||
XP_Modifer: 2
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 313
|
|
||||||
#DwarvenPickaxe
|
|
||||||
X12114:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 451
|
|
||||||
#UrukPickaxe
|
|
||||||
X12149:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 391
|
|
||||||
#OrcPickaxe
|
|
||||||
X12122:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 261
|
|
||||||
Shovels:
|
|
||||||
#BronzeShovel
|
|
||||||
X12007:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 197
|
|
||||||
#MithrilShovel
|
|
||||||
X12048:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 2479
|
|
||||||
#MallornShovel
|
|
||||||
X12073:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X1801
|
|
||||||
Repair_Material_Data_Value: 1
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 121
|
|
||||||
#ElvenShovel
|
|
||||||
X12078:
|
|
||||||
XP_Modifer: 2
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12082
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 313
|
|
||||||
#DwarvenShovel
|
|
||||||
X12113:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 451
|
|
||||||
#UrukShovel
|
|
||||||
X12148:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 391
|
|
||||||
#OrcShovel
|
|
||||||
X12121:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 261
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
#Uruk Dagger
|
|
||||||
X12153:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 313
|
|
||||||
#Poisoned urukd agger
|
|
||||||
X12154:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 313
|
|
||||||
#Uruk Spear
|
|
||||||
X12157:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 391
|
|
||||||
#Rohirric Sword
|
|
||||||
X12181:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 251
|
|
||||||
#Rohirric Dagger
|
|
||||||
X12182:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 201
|
|
||||||
#Rohirric Spear
|
|
||||||
X12183:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 251
|
|
||||||
#Dunlending Spear
|
|
||||||
X12212:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 251
|
|
||||||
#Uruk Scimitar
|
|
||||||
X12151:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12147
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 391
|
|
||||||
#Mithril Dagger
|
|
||||||
X12137:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1983
|
|
||||||
#Iron Dagger
|
|
||||||
X12136:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 201
|
|
||||||
#Dwarven Dagger
|
|
||||||
X12118:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 361
|
|
||||||
#Dwarven Sword
|
|
||||||
X12116:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12112
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 451
|
|
||||||
#Elven Sword
|
|
||||||
X12081:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 313
|
|
||||||
#Elven Spear
|
|
||||||
X12083:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 313
|
|
||||||
#Anduril
|
|
||||||
X12070:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 313
|
|
||||||
#Mallorn Sword
|
|
||||||
X12076:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X1801
|
|
||||||
Repair_Material_Data_Value: 1
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 121
|
|
||||||
#Mithril Spear
|
|
||||||
X12069:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 2479
|
|
||||||
#Iron Spear
|
|
||||||
X12068:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: IRON_INGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 251
|
|
||||||
#Orc Spear
|
|
||||||
X12066:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 261
|
|
||||||
#Bronze Spear
|
|
||||||
X12067:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 197
|
|
||||||
#Gondor Spear
|
|
||||||
X12065:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 281
|
|
||||||
#Gondor Sword
|
|
||||||
X12056:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 281
|
|
||||||
#Orc Scimitar
|
|
||||||
X12031:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12036
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 261
|
|
||||||
#Steel Sword
|
|
||||||
X26862:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X26857
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 751
|
|
||||||
#Bronze Sword
|
|
||||||
X12010:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12004
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 197
|
|
||||||
#Mithril Sword
|
|
||||||
X12051:
|
|
||||||
XP_Modifer: 1
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12006
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 2479
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Advanced Genetics 1.4.3
|
|
||||||
Bows:
|
|
||||||
# Genetic
|
|
||||||
X31179:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31197
|
|
||||||
Repair_Material_Pretty_Name: "Cell"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 1501
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Applied Energistics rv14-finale3
|
|
||||||
Mining:
|
|
||||||
# Certus Quartz Ore
|
|
||||||
X4076|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Applied Energistics rv14-finale3
|
|
||||||
Axes:
|
|
||||||
# Quartz
|
|
||||||
X4365:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X4362
|
|
||||||
Repair_Material_Pretty_Name: "Certus Quartz"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 250
|
|
||||||
|
|
||||||
Hoes:
|
|
||||||
# Quartz
|
|
||||||
X4366:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X4362
|
|
||||||
Repair_Material_Pretty_Name: "Certus Quartz"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Quartz
|
|
||||||
X4368:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X4362
|
|
||||||
Repair_Material_Pretty_Name: "Certus Quartz"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 250
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Quartz
|
|
||||||
X4367:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X4362
|
|
||||||
Repair_Material_Pretty_Name: "Certus Quartz"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 750
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Quartz
|
|
||||||
X4369:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X4362
|
|
||||||
Repair_Material_Pretty_Name: "Certus Quartz"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 250
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Big Reactors 0.3.4A2
|
|
||||||
Mining:
|
|
||||||
# Yellorite
|
|
||||||
X1750|0:
|
|
||||||
XP_Gain: 300
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of BoP 1.2.1.434
|
|
||||||
Boots:
|
|
||||||
# Wading
|
|
||||||
X21269:
|
|
||||||
Repairable: false
|
|
||||||
Durability: 9999
|
|
||||||
# Muddy
|
|
||||||
X21283:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 26
|
|
||||||
# Amethyst
|
|
||||||
X21293:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 520
|
|
||||||
|
|
||||||
Chestplates:
|
|
||||||
# Muddy
|
|
||||||
X21281:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 32
|
|
||||||
# Amethyst
|
|
||||||
X21291:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 640
|
|
||||||
|
|
||||||
Helmets:
|
|
||||||
# Muddy
|
|
||||||
X21280:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 22
|
|
||||||
# Amethyst
|
|
||||||
X21290:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 440
|
|
||||||
|
|
||||||
Leggings:
|
|
||||||
# Muddy
|
|
||||||
X21280:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 30
|
|
||||||
# Amethyst
|
|
||||||
X21290:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 600
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Incomplete! Only covers ores
|
|
||||||
# Up to date as of BoP 1.2.1.434
|
|
||||||
Mining:
|
|
||||||
# Red Rock
|
|
||||||
X162|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Amethyst
|
|
||||||
X1921|0:
|
|
||||||
XP_Gain: 200
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Ruby
|
|
||||||
X1921|2:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Peridot
|
|
||||||
X1921|4:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Topaz
|
|
||||||
X1921|6:
|
|
||||||
XP_Gain: 200
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Tanzanite
|
|
||||||
X1921|8:
|
|
||||||
XP_Gain: 200
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Malachite
|
|
||||||
X1921|10:
|
|
||||||
XP_Gain: 200
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Sapphire
|
|
||||||
X1921|12:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of BoP 1.2.1.434
|
|
||||||
Axes:
|
|
||||||
# Amethyst
|
|
||||||
X21287:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 2013
|
|
||||||
# Muddy
|
|
||||||
X21277:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 32
|
|
||||||
|
|
||||||
Hoes:
|
|
||||||
# Amethyst
|
|
||||||
X21288:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 2013
|
|
||||||
# Muddy
|
|
||||||
X21278:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 32
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Amethyst
|
|
||||||
X21286:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 2013
|
|
||||||
# Muddy
|
|
||||||
X21276:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 32
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Amethyst
|
|
||||||
X21285:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 2013
|
|
||||||
# Muddy
|
|
||||||
X21275:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 32
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Amethyst
|
|
||||||
X21284:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21264
|
|
||||||
Repair_Material_Pretty_Name: "Amethyst"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 2013
|
|
||||||
# Muddy
|
|
||||||
X21274:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X21263
|
|
||||||
Repair_Material_Pretty_Name: "Mud Ball"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 32
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Emasher Resource 1.2.3.5
|
|
||||||
Boots:
|
|
||||||
# Hemp
|
|
||||||
X9301:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9291
|
|
||||||
Repair_Material_Pretty_Name: "Hemp"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 65
|
|
||||||
|
|
||||||
Chestplates:
|
|
||||||
# Hemp
|
|
||||||
X9299:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9291
|
|
||||||
Repair_Material_Pretty_Name: "Hemp"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 80
|
|
||||||
|
|
||||||
Leggings:
|
|
||||||
# Hemp
|
|
||||||
X9300:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9291
|
|
||||||
Repair_Material_Pretty_Name: "Hemp"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 75
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Emasher Resource 1.2.3.5
|
|
||||||
Mining:
|
|
||||||
# Bauxite
|
|
||||||
X1565|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Cassiterite
|
|
||||||
X1565|1:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Emery
|
|
||||||
X1565|2:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Galena
|
|
||||||
X1565|3:
|
|
||||||
XP_Gain: 300
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Native Copper
|
|
||||||
X1565|4:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Petlandite
|
|
||||||
X1565|5:
|
|
||||||
XP_Gain: 300
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Ruby
|
|
||||||
X1565|6:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Sapphire
|
|
||||||
X1565|7:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,182 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For ExtrabiomesXL-universal-1.6.4-3.14.5
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Excavation Blocks
|
|
||||||
###
|
|
||||||
Excavation:
|
|
||||||
# Quicksand
|
|
||||||
X2214|0:
|
|
||||||
XP_Gain: 40
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Herbalism Blocks
|
|
||||||
###
|
|
||||||
Herbalism:
|
|
||||||
# Cattails
|
|
||||||
X2201|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Hydrangea
|
|
||||||
X2202|1:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Buttercups
|
|
||||||
X2202|2:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Lavender
|
|
||||||
X2202|3:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Tiny Cactus
|
|
||||||
X2202|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Toadstool
|
|
||||||
X2202|6:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Calla Lillies
|
|
||||||
X2202|7:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
X254|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
X254|1:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Woodcutting Blocks
|
|
||||||
###
|
|
||||||
Woodcutting:
|
|
||||||
# Fir
|
|
||||||
X2208|0:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Acacia
|
|
||||||
X2208|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Cypress
|
|
||||||
X2208|2:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Japanese Maple
|
|
||||||
X2208|3:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Redwood Quarter
|
|
||||||
X2209|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2211|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2212|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2213|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Fir Quarters
|
|
||||||
X2209|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2211|1:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2212|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2213|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Oak Quarters
|
|
||||||
X2209|2:
|
|
||||||
XP_Gain: 70
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2211|2:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2212|2:
|
|
||||||
XP_Gain: 70
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2213|2:
|
|
||||||
XP_Gain: 70
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Acacia
|
|
||||||
X2209|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Cypress
|
|
||||||
X2209|2:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Bald Cypress Quarter
|
|
||||||
X2225|0:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Bald Cypress Elbow
|
|
||||||
X2227|0:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Bald Cypress Log
|
|
||||||
X2231|2:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Rainbow Eucalyptus
|
|
||||||
X2228|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2229|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X2231|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Autumn Log
|
|
||||||
X2231|1:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Sakura Log
|
|
||||||
X2238|0:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Extra Utilities 1.0.3c
|
|
||||||
Axes:
|
|
||||||
# Healing
|
|
||||||
X10264:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10258
|
|
||||||
Repair_Material_Pretty_Name: "Unstable Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 1561
|
|
||||||
|
|
||||||
Hoes:
|
|
||||||
# Reversing
|
|
||||||
X10265:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10258
|
|
||||||
Repair_Material_Pretty_Name: "Unstable Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1561
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Destruction
|
|
||||||
X10263:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: false
|
|
||||||
Durability: 6244
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Erosion
|
|
||||||
X10262:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: false
|
|
||||||
Durability: 6244
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Etheric
|
|
||||||
X10261:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: false
|
|
||||||
Durability: 1561
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Factorization 0.8.34
|
|
||||||
Mining:
|
|
||||||
# Dark Iron Ore
|
|
||||||
X1004|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Forestry 2.3.1.1
|
|
||||||
Mining:
|
|
||||||
# Apatite
|
|
||||||
X1398|0:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Copper
|
|
||||||
X1398|1:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Tin
|
|
||||||
X1398|2:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Forestry 2.3.1.1
|
|
||||||
Pickaxes:
|
|
||||||
# Survivalist
|
|
||||||
X13261:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X5261
|
|
||||||
Repair_Material_Pretty_Name: "Bronze Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 200
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Survivalist
|
|
||||||
X13264:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X5261
|
|
||||||
Repair_Material_Pretty_Name: "Bronze Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 200
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For Galacticraft-1.6.4-2.0.7.904 and Galacticraft-Planets-1.6.4-2.0.7.904
|
|
||||||
#
|
|
||||||
# Settings for Boots
|
|
||||||
###
|
|
||||||
Boots:
|
|
||||||
# Heavy Duty
|
|
||||||
X10149:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
X10171:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 999
|
|
||||||
#
|
|
||||||
# Settings for Chestplates
|
|
||||||
###
|
|
||||||
Chestplates:
|
|
||||||
# Heavy Duty
|
|
||||||
X10147:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
X10169:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 999
|
|
||||||
#
|
|
||||||
# Settings for Helmets
|
|
||||||
###
|
|
||||||
Helmets:
|
|
||||||
# Heavy Duty
|
|
||||||
X10146:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
X10168:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 999
|
|
||||||
#
|
|
||||||
# Settings for Leggings
|
|
||||||
###
|
|
||||||
Leggings:
|
|
||||||
# Heavy Duty
|
|
||||||
X10148:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
X10170:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 999
|
|
||||||
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For Galacticraft-1.6.4-2.0.7.904 and Galacticraft-Planets-1.6.4-2.0.7.904
|
|
||||||
#
|
|
||||||
# Settings for Custom Excavation Blocks
|
|
||||||
###
|
|
||||||
Excavation:
|
|
||||||
# Dirt
|
|
||||||
X3347|3:
|
|
||||||
XP_Gain: 40
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Block_2|0:
|
|
||||||
XP_Gain: 99
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
# Copper Ore
|
|
||||||
X3347|0:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
X3372|5:
|
|
||||||
XP_Gain: 450
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
X3390|0:
|
|
||||||
XP_Gain: 550
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Tin Ore
|
|
||||||
X3347|1:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
X3372|6:
|
|
||||||
XP_Gain: 450
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
X3390|1:
|
|
||||||
XP_Gain: 550
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Aluminum Ore
|
|
||||||
X3372|7:
|
|
||||||
XP_Gain: 450
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Silicon Ore
|
|
||||||
X3372|8:
|
|
||||||
XP_Gain: 450
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Cheese Ore
|
|
||||||
X3347|2:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Iron Ore
|
|
||||||
X3390|3:
|
|
||||||
XP_Gain: 550
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Desh Ore
|
|
||||||
X3390|2:
|
|
||||||
XP_Gain: 600
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Moon Stone
|
|
||||||
X3347|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Moon Turf
|
|
||||||
X3347|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Mars Cobblestone
|
|
||||||
X3390|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Mars Rock/Stone
|
|
||||||
X3390|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X3390|6:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X3390|9:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For Galacticraft-1.6.4-2.0.7.904 and Galacticraft-Planets-1.6.4-2.0.7.904
|
|
||||||
#
|
|
||||||
# Settings for Axes
|
|
||||||
###
|
|
||||||
Axes:
|
|
||||||
# Heavy Duty
|
|
||||||
X10145:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Desh
|
|
||||||
X10167:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: 10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1000
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Hoes
|
|
||||||
###
|
|
||||||
Hoes:
|
|
||||||
# Heavy Duty
|
|
||||||
X10144:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Desh
|
|
||||||
X10166:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: 10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1000
|
|
||||||
#
|
|
||||||
# Settings for Pickaxes
|
|
||||||
###
|
|
||||||
Pickaxes:
|
|
||||||
# Heavy Duty
|
|
||||||
X10142:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Desh
|
|
||||||
X10164:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: 10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1000
|
|
||||||
#
|
|
||||||
# Settings for Shovels
|
|
||||||
###
|
|
||||||
Shovels:
|
|
||||||
# Heavy Duty
|
|
||||||
X10143:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Desh
|
|
||||||
X10165:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: 10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1000
|
|
||||||
#
|
|
||||||
# Settings for Swords
|
|
||||||
###
|
|
||||||
Swords:
|
|
||||||
# Heavy Duty
|
|
||||||
X10141:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 4
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X10150
|
|
||||||
Repair_Material_Data_Value: 9
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Desh
|
|
||||||
X10163:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: 10161
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1000
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,185 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For Metallurgy-1.6.4-3.3.1
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
# Copper
|
|
||||||
X900|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Tin
|
|
||||||
X900|1:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Zinc
|
|
||||||
X902|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Silver
|
|
||||||
X902|1:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Platinum
|
|
||||||
X902|3:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
|
|
||||||
# NETHER ORES
|
|
||||||
# Ignatius
|
|
||||||
X903|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Shadow Iron
|
|
||||||
X903|1:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Lemurite
|
|
||||||
X903|2:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Midasium
|
|
||||||
X903|3:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Vyroxeres
|
|
||||||
X903|4:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Ceruclase
|
|
||||||
X903|5:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Alduorite
|
|
||||||
X903|6:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Kalendrite
|
|
||||||
X903|7:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Vulcanite
|
|
||||||
X903|8:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Sanguinite
|
|
||||||
X903|9:
|
|
||||||
XP_Gain: 450
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
|
|
||||||
# Manganese
|
|
||||||
X900|2:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Eximite
|
|
||||||
X900|5:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Meutoite
|
|
||||||
X900|6:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Sulfur
|
|
||||||
X905|7:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Phosphorite
|
|
||||||
X905|8:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Saltpeter
|
|
||||||
X905|9:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Magnesium
|
|
||||||
X905|10:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Bitumen
|
|
||||||
X905|11:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Potash
|
|
||||||
X905|12:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Prometheum
|
|
||||||
X906|0:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Deep Iron
|
|
||||||
X906|1:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Infuscolium
|
|
||||||
X906|2:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Oureclase
|
|
||||||
X906|4:
|
|
||||||
XP_Gain: 650
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Astral Silver
|
|
||||||
X906|5:
|
|
||||||
XP_Gain: 650
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Carmot
|
|
||||||
X906|6:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Mithril
|
|
||||||
X906|7:
|
|
||||||
XP_Gain: 750
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Rubracium
|
|
||||||
X906|8:
|
|
||||||
XP_Gain: 800
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Orichalcum
|
|
||||||
X906|11:
|
|
||||||
XP_Gain: 900
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Adamantine
|
|
||||||
X906|13:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Atlarus
|
|
||||||
X906|14:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Minefactory Reloaded 2.7.9 Final
|
|
||||||
Boots:
|
|
||||||
# Plastic
|
|
||||||
X12306:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12249
|
|
||||||
Repair_Material_Pretty_Name: "Plastic Sheets"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 39
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Natura 2.1.14
|
|
||||||
Boots:
|
|
||||||
# Impskin
|
|
||||||
X12712:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12660
|
|
||||||
Repair_Material_Pretty_Name: "Imp Leather"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 429
|
|
||||||
|
|
||||||
Chestplates:
|
|
||||||
# Impskin
|
|
||||||
X12710:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12660
|
|
||||||
Repair_Material_Pretty_Name: "Imp Leather"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 528
|
|
||||||
|
|
||||||
Helmets:
|
|
||||||
# Impskin
|
|
||||||
X12709:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12660
|
|
||||||
Repair_Material_Pretty_Name: "Imp Leather"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 363
|
|
||||||
|
|
||||||
Leggings:
|
|
||||||
# Impskin
|
|
||||||
X12709:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12660
|
|
||||||
Repair_Material_Pretty_Name: "Imp Leather"
|
|
||||||
Repair_Material_Data_Value: 6
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 495
|
|
||||||
@@ -1,272 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Natura 2.1.14
|
|
||||||
Axes:
|
|
||||||
# Bloodwood
|
|
||||||
X12685:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Bloodwood Planks"
|
|
||||||
Repair_Material_Data_Value: 4
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 350
|
|
||||||
# Darkwood
|
|
||||||
X12689:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Darkwood Planks"
|
|
||||||
Repair_Material_Data_Value: 11
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 131
|
|
||||||
# Fusewood
|
|
||||||
X12693:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Fusewood Planks"
|
|
||||||
Repair_Material_Data_Value: 12
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 250
|
|
||||||
# Ghostwood
|
|
||||||
X12681:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Ghostwood Planks"
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 59
|
|
||||||
# Quartz
|
|
||||||
X12697:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: QUARTZ_BLOCK
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 131
|
|
||||||
|
|
||||||
Bows:
|
|
||||||
# Bloodwood
|
|
||||||
X12706:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12677
|
|
||||||
Repair_Material_Pretty_Name: "Bloodwood Stick"
|
|
||||||
Repair_Material_Data_Value: 4
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 1501
|
|
||||||
# Darkwood
|
|
||||||
X12707:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12677
|
|
||||||
Repair_Material_Pretty_Name: "Darkwood Stick"
|
|
||||||
Repair_Material_Data_Value: 11
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 162
|
|
||||||
# Fusewood
|
|
||||||
X12708:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12677
|
|
||||||
Repair_Material_Pretty_Name: "Fusewood Stick"
|
|
||||||
Repair_Material_Data_Value: 12
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 28
|
|
||||||
# Ghostwood
|
|
||||||
X12705:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X12677
|
|
||||||
Repair_Material_Pretty_Name: "Ghostwood Stick"
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 384
|
|
||||||
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Bloodwood
|
|
||||||
X12683:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Bloodwood Planks"
|
|
||||||
Repair_Material_Data_Value: 4
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 350
|
|
||||||
# Darkwood
|
|
||||||
X12687:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Darkwood Planks"
|
|
||||||
Repair_Material_Data_Value: 11
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 131
|
|
||||||
# Fusewood
|
|
||||||
X12691:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Fusewood Planks"
|
|
||||||
Repair_Material_Data_Value: 12
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 250
|
|
||||||
# Ghostwood
|
|
||||||
X12679:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Ghostwood Planks"
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 59
|
|
||||||
# Quartz
|
|
||||||
X12695:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: QUARTZ_BLOCK
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 131
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Bloodwood
|
|
||||||
X12684:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Bloodwood Planks"
|
|
||||||
Repair_Material_Data_Value: 4
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 350
|
|
||||||
# Darkwood
|
|
||||||
X12688:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Darkwood Planks"
|
|
||||||
Repair_Material_Data_Value: 11
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 131
|
|
||||||
# Fusewood
|
|
||||||
X12692:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Fusewood Planks"
|
|
||||||
Repair_Material_Data_Value: 12
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 250
|
|
||||||
# Ghostwood
|
|
||||||
X12680:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Ghostwood Planks"
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 59
|
|
||||||
# Quartz
|
|
||||||
X12696:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: QUARTZ_BLOCK
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 131
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Bloodwood
|
|
||||||
X12682:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Bloodwood Planks"
|
|
||||||
Repair_Material_Data_Value: 4
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 350
|
|
||||||
# Darkwood
|
|
||||||
X12686:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Darkwood Planks"
|
|
||||||
Repair_Material_Data_Value: 11
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 131
|
|
||||||
# Fusewood
|
|
||||||
X12690:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Fusewood Planks"
|
|
||||||
Repair_Material_Data_Value: 12
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 250
|
|
||||||
# Ghostwood
|
|
||||||
X12678:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X3262
|
|
||||||
Repair_Material_Pretty_Name: "Ghostwood Planks"
|
|
||||||
Repair_Material_Data_Value: 2
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 59
|
|
||||||
# Quartz
|
|
||||||
X12694:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: QUARTZ_BLOCK
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 131
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Project Red 4.3.5.30
|
|
||||||
Mining:
|
|
||||||
# Ruby
|
|
||||||
X2130|0:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Sapphire
|
|
||||||
X2130|1:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Peridot
|
|
||||||
X2130|2:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Marble
|
|
||||||
X2131|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Basalt
|
|
||||||
X2131|3:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
@@ -1,176 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Project Red 4.3.5.30
|
|
||||||
Axes:
|
|
||||||
# Ruby
|
|
||||||
X9353:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Ruby"
|
|
||||||
Repair_Material_Data_Value: 37
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 500
|
|
||||||
# Sapphire
|
|
||||||
X9354:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Sapphire"
|
|
||||||
Repair_Material_Data_Value: 38
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 500
|
|
||||||
# Peridot
|
|
||||||
X9355:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Peridot"
|
|
||||||
Repair_Material_Data_Value: 39
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Hoes:
|
|
||||||
# Ruby
|
|
||||||
X9356:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Ruby"
|
|
||||||
Repair_Material_Data_Value: 37
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Sapphire
|
|
||||||
X9357:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Sapphire"
|
|
||||||
Repair_Material_Data_Value: 38
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Peridot
|
|
||||||
X9358:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Peridot"
|
|
||||||
Repair_Material_Data_Value: 39
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Ruby
|
|
||||||
X9359:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Ruby"
|
|
||||||
Repair_Material_Data_Value: 37
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 500
|
|
||||||
# Sapphire
|
|
||||||
X9360:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Sapphire"
|
|
||||||
Repair_Material_Data_Value: 38
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 500
|
|
||||||
# Peridot
|
|
||||||
X9361:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Peridot"
|
|
||||||
Repair_Material_Data_Value: 39
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Ruby
|
|
||||||
X9362:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Ruby"
|
|
||||||
Repair_Material_Data_Value: 37
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 500
|
|
||||||
# Sapphire
|
|
||||||
X9363:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Sapphire"
|
|
||||||
Repair_Material_Data_Value: 38
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 500
|
|
||||||
# Peridot
|
|
||||||
X9364:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Peridot"
|
|
||||||
Repair_Material_Data_Value: 39
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Ruby
|
|
||||||
X9365:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Ruby"
|
|
||||||
Repair_Material_Data_Value: 37
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Sapphire
|
|
||||||
X9366:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Sapphire"
|
|
||||||
Repair_Material_Data_Value: 38
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Peridot
|
|
||||||
X9368:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X9281
|
|
||||||
Repair_Material_Pretty_Name: "Peridot"
|
|
||||||
Repair_Material_Data_Value: 39
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
# Config wrote by Dragyn, updated by M1cr0man
|
|
||||||
# Up to date as of Railcraft 8.4.0.0
|
|
||||||
Boots:
|
|
||||||
# Steel
|
|
||||||
X7758:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 325
|
|
||||||
|
|
||||||
Chestplates:
|
|
||||||
# Steel
|
|
||||||
X7761:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 400
|
|
||||||
|
|
||||||
Helmets:
|
|
||||||
# Steel
|
|
||||||
X7759:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 275
|
|
||||||
|
|
||||||
Leggings:
|
|
||||||
# Steel
|
|
||||||
X7760:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 375
|
|
||||||
# Overalls
|
|
||||||
X7757:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: WOOL
|
|
||||||
Repair_Material_Pretty_Name: "Light Blue Wool"
|
|
||||||
Repair_Material_Data_Value: 3
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 75
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For Railcraft_1.6.2-8.1.0.0
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
# Abyssal Stone
|
|
||||||
X457|6:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Quarried Stone
|
|
||||||
X457|7:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Sulfur
|
|
||||||
X458|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Saltpeter
|
|
||||||
X458|1:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Dark Diamond
|
|
||||||
X458|2:
|
|
||||||
XP_Gain: 750
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Dark Emerald
|
|
||||||
X458|3:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Dark Lapis
|
|
||||||
X458|4:
|
|
||||||
XP_Gain: 400
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Firestone
|
|
||||||
X458|5:
|
|
||||||
XP_Gain: 450
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Infernal Stone
|
|
||||||
X467|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X467|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Blood Stained Stone
|
|
||||||
X468|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X468|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Sandy Stone
|
|
||||||
X469|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X469|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Quarried Stone
|
|
||||||
X471|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X471|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Frost Bound Stone
|
|
||||||
X472|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X472|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
# Nether Stone
|
|
||||||
X475|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X475|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
# Config wrote by Dragyn, updated by M1cr0man
|
|
||||||
# Up to date as of Railcraft 8.4.0.0
|
|
||||||
Axes:
|
|
||||||
# Steel
|
|
||||||
X7819:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Hoes:
|
|
||||||
# Steel
|
|
||||||
X7820:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Steel
|
|
||||||
X7821:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Steel
|
|
||||||
X7823:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Steel
|
|
||||||
X7824:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X7796
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
@@ -1,543 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For SimCraft 1.6.4
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Custom Herbalism Blocks
|
|
||||||
###
|
|
||||||
Herbalism:
|
|
||||||
X705|0:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|1:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|2:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|3:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|4:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|5:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|6:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|7:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|8:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|9:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|10:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|11:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|12:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|13:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|14:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X705|15:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|0:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|1:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|2:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|3:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|4:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|5:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|6:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|7:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|8:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|9:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|10:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|11:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|12:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|13:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|14:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X706|15:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|0:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|1:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|2:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|3:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|4:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|5:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|6:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|7:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|8:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|9:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|10:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|11:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|12:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|13:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|14:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
X707|15:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
X700|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|1:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|3:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|6:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|7:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|8:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|9:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|10:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|11:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|12:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|13:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|14:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X700|15:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|0:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|1:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|2:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|3:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|4:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|5:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|6:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|7:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|8:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|9:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|10:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|11:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|12:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|13:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|14:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X701|15:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|1:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|2:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|3:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|4:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|5:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|6:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|7:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|8:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|9:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|10:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|11:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|12:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|13:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|14:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X702|15:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|1:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|2:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|3:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|4:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|5:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|6:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|7:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|8:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|9:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|10:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|11:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|12:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|13:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|14:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X703|15:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|1:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|2:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|3:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|4:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|5:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|6:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|7:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|8:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|9:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|10:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|11:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|12:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|13:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|14:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X704|15:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
#
|
|
||||||
# Settings for Custom Woodcutting Blocks
|
|
||||||
###
|
|
||||||
Woodcutting:
|
|
||||||
X708|0:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|2:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|3:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|4:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|5:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|6:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|7:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|8:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|9:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|10:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X708|11:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X1095|0:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X1095|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X1095|2:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
X1095|3:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For Railcraft_1.6.2-8.1.0.0
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Axes
|
|
||||||
###
|
|
||||||
Axes:
|
|
||||||
# Steel
|
|
||||||
X15787:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X15260
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Pickaxes
|
|
||||||
###
|
|
||||||
Pickaxes:
|
|
||||||
# Steel
|
|
||||||
X15788:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X15260
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
#
|
|
||||||
# Settings for Shovels
|
|
||||||
###
|
|
||||||
Shovels:
|
|
||||||
# Steel
|
|
||||||
X15789:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X15260
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
#
|
|
||||||
# Settings for Swords
|
|
||||||
###
|
|
||||||
Swords:
|
|
||||||
# Steel
|
|
||||||
X15786:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X15260
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Stargate Tech 2 Alpha 0.7.3
|
|
||||||
Mining:
|
|
||||||
# Naquadah Ore
|
|
||||||
X1005|0:
|
|
||||||
XP_Gain: 300
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Thermal Expansion 3.0.0.7
|
|
||||||
Boots:
|
|
||||||
# Invar
|
|
||||||
X31973:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 325
|
|
||||||
|
|
||||||
Chestplates:
|
|
||||||
# Invar
|
|
||||||
X31975:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 400
|
|
||||||
|
|
||||||
Helmets:
|
|
||||||
# Invar
|
|
||||||
X31976:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 275
|
|
||||||
|
|
||||||
Leggings:
|
|
||||||
# Invar
|
|
||||||
X31976:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 375
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Thermal Expansion 3.0.0.7
|
|
||||||
Mining:
|
|
||||||
# Copper
|
|
||||||
X4064|0:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Tin
|
|
||||||
X4064|1:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Silver
|
|
||||||
X4064|2:
|
|
||||||
XP_Gain: 300
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Lead
|
|
||||||
X4064|3:
|
|
||||||
XP_Gain: 300
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Ferrous
|
|
||||||
X4064|4:
|
|
||||||
XP_Gain: 300
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Thermal Expansion 3.0.0.7
|
|
||||||
Axes:
|
|
||||||
# Invar
|
|
||||||
X31969:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 450
|
|
||||||
|
|
||||||
Hoes:
|
|
||||||
# Invar
|
|
||||||
X31968:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 450
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Invar
|
|
||||||
X31970:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 3
|
|
||||||
Durability: 450
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Invar
|
|
||||||
X31971:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 1
|
|
||||||
Durability: 450
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Invar
|
|
||||||
X31972:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 3
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X31978
|
|
||||||
Repair_Material_Pretty_Name: "Invar Ingot"
|
|
||||||
Repair_Material_Data_Value: 71
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 450
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Up to date as of Tinker's Construct 1.5.5.7
|
|
||||||
# Also covers Tinker's Steelworks 0.0.4.2-fix2
|
|
||||||
Boots:
|
|
||||||
# Wooden (Repaired with Oak Wood)
|
|
||||||
X14366:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LOG
|
|
||||||
Repair_Material_Pretty_Name: "Oak Wood"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 26
|
|
||||||
# Steel
|
|
||||||
X14771:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X14276
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 16
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 325
|
|
||||||
|
|
||||||
Chestplates:
|
|
||||||
# Wooden (Repaired with Oak Wood)
|
|
||||||
X14364:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LOG
|
|
||||||
Repair_Material_Pretty_Name: "Oak Wood"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 32
|
|
||||||
# Steel
|
|
||||||
X14769:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X14276
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 16
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 400
|
|
||||||
|
|
||||||
Helmets:
|
|
||||||
# Wooden (Repaired with Oak Wood)
|
|
||||||
X14362:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LOG
|
|
||||||
Repair_Material_Pretty_Name: "Oak Wood"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 22
|
|
||||||
# Steel
|
|
||||||
X14768:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X14276
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 16
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 275
|
|
||||||
|
|
||||||
Leggings:
|
|
||||||
# Wooden (Repaired with Oak Wood)
|
|
||||||
X14362:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: LOG
|
|
||||||
Repair_Material_Pretty_Name: "Oak Wood"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 30
|
|
||||||
# Steel
|
|
||||||
X14768:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X14276
|
|
||||||
Repair_Material_Pretty_Name: "Steel Ingot"
|
|
||||||
Repair_Material_Data_Value: 16
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 375
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Possibly incomplete. Only covers ores
|
|
||||||
# Up to date as of Tinker's Construct 1.5.5.7
|
|
||||||
Excavation:
|
|
||||||
# Iron
|
|
||||||
X1488|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Gold
|
|
||||||
X1488|1:
|
|
||||||
XP_Gain: 350
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Copper
|
|
||||||
X1488|2:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Tin
|
|
||||||
X1488|3:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Aluminum
|
|
||||||
X1488|4:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Cobalt
|
|
||||||
X1488|5:
|
|
||||||
XP_Gain: 500
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
Mining:
|
|
||||||
# Cobalt
|
|
||||||
X1475|1:
|
|
||||||
XP_Gain: 500
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Ardite
|
|
||||||
X1475|2:
|
|
||||||
XP_Gain: 500
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Copper
|
|
||||||
X1475|3:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Tin
|
|
||||||
X1475|4:
|
|
||||||
XP_Gain: 175
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
# Aluminium
|
|
||||||
X1475|5:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: true
|
|
||||||
@@ -1,149 +0,0 @@
|
|||||||
# Config wrote by M1cr0man
|
|
||||||
# Abilites for Pickaxes and Shovels disabled due to a bug
|
|
||||||
# Repair disabled as mcMMO does not support NBTTag - based tools
|
|
||||||
# Up to date as of Tinker's Construct 1.5.5.7
|
|
||||||
# Also covers Tinker's Steelworks 0.0.4.2-fix2
|
|
||||||
Axes:
|
|
||||||
# Hatchets
|
|
||||||
X14309:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Mattocks
|
|
||||||
X14316:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Lumber Axes
|
|
||||||
X14317:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Battle Axes
|
|
||||||
X14327:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Bows:
|
|
||||||
# Shortbows
|
|
||||||
X14319:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Hoes:
|
|
||||||
# Mattocks
|
|
||||||
X14316:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Scythes
|
|
||||||
X14323:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Pickaxes
|
|
||||||
X14307:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: false
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Hammers
|
|
||||||
X14326:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: false
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Shovels
|
|
||||||
X14308:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: false
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Mattocks
|
|
||||||
X14316:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: false
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Excavators
|
|
||||||
X14325:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: false
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Broadswords
|
|
||||||
X14311:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Longswords
|
|
||||||
X14312:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Rapiers
|
|
||||||
X14313:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Daggers
|
|
||||||
X14321:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Cleavers
|
|
||||||
X14324:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Battle Axes
|
|
||||||
X14327:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
# Cutlasses
|
|
||||||
X14328:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 2
|
|
||||||
Repairable: false
|
|
||||||
Durability: 500
|
|
||||||
@@ -1,161 +0,0 @@
|
|||||||
# Config wrote by Dragyn, updated by M1cr0man
|
|
||||||
# Up to date as of Twilight Forest 1.20.5
|
|
||||||
Boots:
|
|
||||||
# Ironwood
|
|
||||||
X27978:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 260
|
|
||||||
# Fiery
|
|
||||||
X27995:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27991
|
|
||||||
Repair_Material_Pretty_Name: "Fiery Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 325
|
|
||||||
# Stealeaf
|
|
||||||
X28002:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 260
|
|
||||||
# Knightmetal
|
|
||||||
X28037:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X28032
|
|
||||||
Repair_Material_Pretty_Name: "Knightmetal Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 4
|
|
||||||
Durability: 260
|
|
||||||
|
|
||||||
Chestplates:
|
|
||||||
# Ironwood
|
|
||||||
X27976:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 320
|
|
||||||
# Naga Scale
|
|
||||||
X27958:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27957
|
|
||||||
Repair_Material_Pretty_Name: "Naga Scale"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 336
|
|
||||||
# Fiery
|
|
||||||
X27993:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27991
|
|
||||||
Repair_Material_Pretty_Name: "Fiery Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 400
|
|
||||||
# Stealeaf
|
|
||||||
X28000:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 320
|
|
||||||
# Knightmetal
|
|
||||||
X28035:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X28032
|
|
||||||
Repair_Material_Pretty_Name: "Knightmetal Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 8
|
|
||||||
Durability: 320
|
|
||||||
# Phantom
|
|
||||||
X28035:
|
|
||||||
Repairable: false
|
|
||||||
Durability: 480
|
|
||||||
|
|
||||||
Helmets:
|
|
||||||
# Ironwood
|
|
||||||
X27975:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 220
|
|
||||||
# Fiery
|
|
||||||
X27992:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27991
|
|
||||||
Repair_Material_Pretty_Name: "Fiery Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 275
|
|
||||||
# Stealeaf
|
|
||||||
X27999:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 220
|
|
||||||
# Knightmetal
|
|
||||||
X28034:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X28032
|
|
||||||
Repair_Material_Pretty_Name: "Knightmetal Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 5
|
|
||||||
Durability: 220
|
|
||||||
# Phantom
|
|
||||||
X28034:
|
|
||||||
Repairable: false
|
|
||||||
Durability: 330
|
|
||||||
|
|
||||||
Leggings:
|
|
||||||
# Ironwood
|
|
||||||
X27977:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 300
|
|
||||||
# Naga Scale
|
|
||||||
X27959:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27957
|
|
||||||
Repair_Material_Pretty_Name: "Naga Scale"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 315
|
|
||||||
# Fiery
|
|
||||||
X27994:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27991
|
|
||||||
Repair_Material_Pretty_Name: "Fiery Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 375
|
|
||||||
# Stealeaf
|
|
||||||
X28001:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 300
|
|
||||||
# Knightmetal
|
|
||||||
X28036:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X28032
|
|
||||||
Repair_Material_Pretty_Name: "Knightmetal Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 7
|
|
||||||
Durability: 300
|
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For twilightforest-1.20.3
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Custom Herbalism Blocks
|
|
||||||
###
|
|
||||||
Herbalism:
|
|
||||||
# Mushgloom
|
|
||||||
X2169|9:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Torchberry Plant
|
|
||||||
X2169|13:
|
|
||||||
XP_Gain: 20
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Mayapple
|
|
||||||
X2169|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Fiddlehead
|
|
||||||
X2169|8:
|
|
||||||
XP_Gain: 35
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
# Mazestone
|
|
||||||
X2165|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2165|1:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2165|2:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2165|3:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2165|4:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2165|5:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2165|6:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2165|7:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Woodcutting Blocks
|
|
||||||
###
|
|
||||||
Woodcutting:
|
|
||||||
# Twilight Oak
|
|
||||||
X2163|0:
|
|
||||||
XP_Gain: 70
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Canopy
|
|
||||||
X2163|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Mangrove
|
|
||||||
X2163|2:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Darkwood
|
|
||||||
X2163|3:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Roots
|
|
||||||
X2170|0:
|
|
||||||
XP_Gain: 10
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: false
|
|
||||||
X2170|1:
|
|
||||||
XP_Gain: 10
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: false
|
|
||||||
# Timewood
|
|
||||||
X2176|0:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Transwood
|
|
||||||
X2176|1:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Minewood
|
|
||||||
X2176|2:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Sortingwood
|
|
||||||
X2176|3:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
|
|
||||||
@@ -1,181 +0,0 @@
|
|||||||
# Config wrote by Dragyn, updated by M1cr0man
|
|
||||||
# Up to date as of Twilight Forest 1.20.5
|
|
||||||
Axes:
|
|
||||||
# Ironwood
|
|
||||||
X27982:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 512
|
|
||||||
# Steeleaf
|
|
||||||
X28006:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 131
|
|
||||||
# Knightmetal
|
|
||||||
X28040:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X28032
|
|
||||||
Repair_Material_Pretty_Name: "Knightmetal Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 512
|
|
||||||
# Minotaur
|
|
||||||
X28008:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: false
|
|
||||||
Durability: 1561
|
|
||||||
|
|
||||||
Hoes:
|
|
||||||
# Ironwood
|
|
||||||
X27983:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 512
|
|
||||||
# Steeleaf
|
|
||||||
X28007:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 131
|
|
||||||
|
|
||||||
Pickaxes:
|
|
||||||
# Ironwood
|
|
||||||
X27981:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 512
|
|
||||||
# Fiery
|
|
||||||
X27997:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27991
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1024
|
|
||||||
# Steeleaf
|
|
||||||
X28005:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 131
|
|
||||||
# Knightmetal
|
|
||||||
X28039:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X28032
|
|
||||||
Repair_Material_Pretty_Name: "Knightmetal Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 512
|
|
||||||
|
|
||||||
Shovels:
|
|
||||||
# Ironwood
|
|
||||||
X27980:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 512
|
|
||||||
# Steeleaf
|
|
||||||
X28004:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 131
|
|
||||||
|
|
||||||
Swords:
|
|
||||||
# Ironwood
|
|
||||||
X27979:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27974
|
|
||||||
Repair_Material_Pretty_Name: "Ironwood Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 512
|
|
||||||
# Fiery
|
|
||||||
X27996:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27991
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 1024
|
|
||||||
# Steeleaf
|
|
||||||
X28003:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X27998
|
|
||||||
Repair_Material_Pretty_Name: "Steeleaf"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 131
|
|
||||||
# Knightmetal
|
|
||||||
X28038:
|
|
||||||
XP_Modifier: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: X28032
|
|
||||||
Repair_Material_Pretty_Name: "Knightmetal Ingot"
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 512
|
|
||||||
@@ -1,171 +0,0 @@
|
|||||||
# Config created by Dragyn
|
|
||||||
# Created For UndergroundBiomes 1.6.x - 0.4.2c
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
X2000|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2000|1:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2000|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2000|3:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2000|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2000|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2000|6:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2000|7:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
#
|
|
||||||
X2001|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2001|1:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2001|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2001|3:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2001|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2001|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2001|6:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2001|7:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
#
|
|
||||||
X2009|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2009|1:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2009|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2009|3:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2009|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2009|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2009|6:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2009|7:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
#
|
|
||||||
X2010|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2010|1:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2010|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2010|3:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2010|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2010|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2010|6:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2010|7:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
#
|
|
||||||
X2011|0:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2011|1:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2011|2:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2011|3:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2011|4:
|
|
||||||
XP_Gain: 50
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2011|5:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2011|6:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
X2011|7:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
# Config created by joulesbeef
|
|
||||||
# Created For twilightforest-2.2.3
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Boots
|
|
||||||
###
|
|
||||||
Boots:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODBOOTS:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Fiery
|
|
||||||
TWILIGHTFOREST_ITEM_FIERYBOOTS:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_FIERYINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Stealeaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFBOOTS:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Knightmetal
|
|
||||||
TWILIGHTFOREST_ITEM_KNIGHTLYBOOTS:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_KNIGHTMETAL
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Chestplates
|
|
||||||
###
|
|
||||||
Chestplates:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODPLATE:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Fiery
|
|
||||||
TWILIGHTFOREST_ITEM_FIERYPLATE:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_FIERYINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Stealeaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFPLATE:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Knightmetal
|
|
||||||
TWILIGHTFOREST_ITEM_KNIGHTLYPLATE:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_KNIGHTMETAL
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Helmets
|
|
||||||
###
|
|
||||||
Helmets:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODHELM:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Fiery
|
|
||||||
TWILIGHTFOREST_ITEM_FIERYHELM:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_FIERYINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Stealeaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFHELM:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Knightmetal
|
|
||||||
TWILIGHTFOREST_ITEM_KNIGHTLYHELM:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_KNIGHTMETAL
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 50
|
|
||||||
# Settings for Leggings
|
|
||||||
###
|
|
||||||
Leggings:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODLEGS:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Fiery
|
|
||||||
TWILIGHTFOREST_ITEM_FIERYLEGS:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_FIERYINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Stealeaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFLEGS:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Knightmetal
|
|
||||||
TWILIGHTFOREST_ITEM_KNIGHTLYLEGS:
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_KNIGHTMETAL
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
@@ -1,116 +0,0 @@
|
|||||||
# Config created by joulesbeef
|
|
||||||
# Created For twilightforest-2.2.3
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Custom Herbalism Blocks
|
|
||||||
###
|
|
||||||
Herbalism:
|
|
||||||
# Mushgloom
|
|
||||||
TWILIGHTFOREST_TILE_TFLOG|9:
|
|
||||||
XP_Gain: 150
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Torchberry Plant
|
|
||||||
TWILIGHTFOREST_TILE_TFLOG|13:
|
|
||||||
XP_Gain: 20
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Mayapple
|
|
||||||
TWILIGHTFOREST_TILE_TFLOG|4:
|
|
||||||
XP_Gain: 30
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
# Fiddlehead
|
|
||||||
TWILIGHTFOREST_TILE_TFLOG|8:
|
|
||||||
XP_Gain: 35
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Mining Blocks
|
|
||||||
###
|
|
||||||
Mining:
|
|
||||||
# Mazestone
|
|
||||||
TWILIGHTFOREST_TILE_TFMAZESTONE|0:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
TWILIGHTFOREST_TILE_TFMAZESTONE|1:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
TWILIGHTFOREST_TILE_TFMAZESTONE|2:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
TWILIGHTFOREST_TILE_TFMAZESTONE|3:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
TWILIGHTFOREST_TILE_TFMAZESTONE|4:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
TWILIGHTFOREST_TILE_TFMAZESTONE|5:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
TWILIGHTFOREST_TILE_TFMAZESTONE|6:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
TWILIGHTFOREST_TILE_TFMAZESTONE|7:
|
|
||||||
XP_Gain: 250
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Ore: false
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Custom Woodcutting Blocks
|
|
||||||
###
|
|
||||||
Woodcutting:
|
|
||||||
# Twilight Oak
|
|
||||||
TWILIGHTFOREST_TILE_TFLOG|0:
|
|
||||||
XP_Gain: 70
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Canopy
|
|
||||||
TWILIGHTFOREST_TILE_TFLOG|1:
|
|
||||||
XP_Gain: 80
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Mangrove
|
|
||||||
TWILIGHTFOREST_TILE_TFLOG|2:
|
|
||||||
XP_Gain: 90
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Darkwood
|
|
||||||
TWILIGHTFOREST_TILE_TFLOG|3:
|
|
||||||
XP_Gain: 100
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Roots
|
|
||||||
TWILIGHTFOREST_TILE_TFROOTS|0:
|
|
||||||
XP_Gain: 10
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: false
|
|
||||||
TWILIGHTFOREST_TILE_TFROOTS|1:
|
|
||||||
XP_Gain: 10
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: false
|
|
||||||
# Timewood
|
|
||||||
TWILIGHTFOREST_TILE_TFMAGICLOG|0:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Transwood
|
|
||||||
TWILIGHTFOREST_TILE_TFMAGICLOG|1:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Minewood
|
|
||||||
TWILIGHTFOREST_TILE_TFMAGICLOG|2:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
# Sortingwood
|
|
||||||
TWILIGHTFOREST_TILE_TFMAGICLOG|3:
|
|
||||||
XP_Gain: 1000
|
|
||||||
Double_Drops_Enabled: true
|
|
||||||
Is_Log: true
|
|
||||||
@@ -1,152 +0,0 @@
|
|||||||
# Config created by joulesbeef
|
|
||||||
# Created For twilightforest-2.2.3
|
|
||||||
#
|
|
||||||
# Settings for Custom Mobs
|
|
||||||
MoCreatures-Ogre:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-TwilightLich:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-HelmetCrab:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-SlimeBeetle:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-TwilightWraith:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-Naga:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
MoCreatures-Shark:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-TowerTermite:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
MoCreatures-SmallFish:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-Redcap:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-YetiBoss:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
MoCreatures-HellRat:
|
|
||||||
Class: Monster
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-Hydra:
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-Firefly:
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-KnightPhantom:
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
TwilightForest-TowerGolem:
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
MoCreatures-FishBowl:
|
|
||||||
XP_Multiplier: 1.0
|
|
||||||
Tameable: false
|
|
||||||
Taming_XP: 0
|
|
||||||
CanBeSummoned: false
|
|
||||||
COTW_Material: ''
|
|
||||||
COTW_Material_Data: 0
|
|
||||||
COTW_Material_Amount: 0
|
|
||||||
@@ -1,184 +0,0 @@
|
|||||||
# Config created by joulesbeef
|
|
||||||
# Created For twilightforest-2.2.3
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Settings for Axes
|
|
||||||
###
|
|
||||||
Axes:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODAXE:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Steeleaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFAXE:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Knightmetal
|
|
||||||
TWILIGHTFOREST_ITEM_KNIGHTLYAXE:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_KNIGHTMETAL
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Minotaur
|
|
||||||
TWILIGHTFOREST_ITEM_MINOTAURAXE:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: Diamond
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
#
|
|
||||||
# Settings for Hoes
|
|
||||||
###
|
|
||||||
Hoes:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODHOE:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Steeleaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFHOE:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
|
|
||||||
#
|
|
||||||
# Settings for Pickaxes
|
|
||||||
###
|
|
||||||
Pickaxes:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODPICK:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Fiery
|
|
||||||
TWILIGHTFOREST_ITEM_FIERYPICK:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_FIERYINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Steeleaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFPICK:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Knightmetal
|
|
||||||
TWILIGHTFOREST_ITEM_KNIGHTLYPICK:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_KNIGHTMETAL
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
#
|
|
||||||
# Settings for Shovels
|
|
||||||
###
|
|
||||||
Shovels:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODSHOVEL:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Steeleaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFSHOVEL:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
#
|
|
||||||
# Settings for Swords
|
|
||||||
###
|
|
||||||
Swords:
|
|
||||||
# Ironwood
|
|
||||||
TWILIGHTFOREST_ITEM_IRONWOODSWORD:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_IRONWOODINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Fiery
|
|
||||||
TWILIGHTFOREST_ITEM_FIERYSWORD:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_FIERYINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Steeleaf
|
|
||||||
TWILIGHTFOREST_ITEM_STEELEAFSWORD:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_STEELEAFINGOT
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
# Knightmetal
|
|
||||||
TWILIGHTFOREST_ITEM_KNIGHTLYSWORD:
|
|
||||||
XP_Modifer: 1.0
|
|
||||||
Ability_Enabled: true
|
|
||||||
Tier: 1
|
|
||||||
Repairable: true
|
|
||||||
Repair_Material: TWILIGHTFOREST_ITEM_KNIGHTMETAL
|
|
||||||
Repair_Material_Data_Value: 0
|
|
||||||
Repair_Material_Quantity: 2
|
|
||||||
Durability: 500
|
|
||||||
33
pom.xml
33
pom.xml
@@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>1.5.01-SNAPSHOT</version>
|
<version>1.4.08-dev1</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
@@ -76,8 +76,6 @@
|
|||||||
<artifactSet>
|
<artifactSet>
|
||||||
<includes>
|
<includes>
|
||||||
<include>com.turt2live.metrics:MetricsExtension</include>
|
<include>com.turt2live.metrics:MetricsExtension</include>
|
||||||
<include>commons-logging:commons-logging</include>
|
|
||||||
<include>net.snaq:dbpool</include>
|
|
||||||
</includes>
|
</includes>
|
||||||
</artifactSet>
|
</artifactSet>
|
||||||
<relocations>
|
<relocations>
|
||||||
@@ -85,14 +83,6 @@
|
|||||||
<pattern>com.turt2live.metrics</pattern>
|
<pattern>com.turt2live.metrics</pattern>
|
||||||
<shadedPattern>com.gmail.nossr50.metrics.mcstats</shadedPattern>
|
<shadedPattern>com.gmail.nossr50.metrics.mcstats</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
|
||||||
<pattern>org.apache.commons.logging</pattern>
|
|
||||||
<shadedPattern>com.gmail.nossr50.commons.logging</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>net.snaq</pattern>
|
|
||||||
<shadedPattern>com.gmail.nossr50.dbpool</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
</relocations>
|
</relocations>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
@@ -118,10 +108,6 @@
|
|||||||
<id>bukkit-repo</id>
|
<id>bukkit-repo</id>
|
||||||
<url>http://repo.bukkit.org/content/groups/public/</url>
|
<url>http://repo.bukkit.org/content/groups/public/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
|
||||||
<id>md_5-releases</id>
|
|
||||||
<url>http://repo.md-5.net/content/repositories/releases/</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>Plugin MetricsExtension</id>
|
<id>Plugin MetricsExtension</id>
|
||||||
<url>http://repo.turt2live.com</url>
|
<url>http://repo.turt2live.com</url>
|
||||||
@@ -131,9 +117,9 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>bukkit</artifactId>
|
<artifactId>bukkit</artifactId>
|
||||||
<version>1.7.10-R0.1-SNAPSHOT</version>
|
<version>LATEST</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>provided</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
@@ -146,21 +132,12 @@
|
|||||||
<artifactId>MetricsExtension</artifactId>
|
<artifactId>MetricsExtension</artifactId>
|
||||||
<version>0.0.5-SNAPSHOT</version>
|
<version>0.0.5-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>net.snaq</groupId>
|
|
||||||
<artifactId>dbpool</artifactId>
|
|
||||||
<version>5.1</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>md_5-releases</id>
|
<id>mcmmo-repo</id>
|
||||||
<url>http://repo.md-5.net/content/repositories/releases/</url>
|
<url>file:///var/lib/jenkins/repo</url>
|
||||||
</repository>
|
</repository>
|
||||||
<snapshotRepository>
|
|
||||||
<id>md_5-snapshots</id>
|
|
||||||
<url>http://repo.md-5.net/content/repositories/snapshots/</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|||||||
@@ -1,116 +1,42 @@
|
|||||||
package com.gmail.nossr50.api;
|
package com.gmail.nossr50.api;
|
||||||
|
|
||||||
import org.bukkit.entity.LivingEntity;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
import com.gmail.nossr50.datatypes.skills.AbilityType;
|
import com.gmail.nossr50.datatypes.skills.AbilityType;
|
||||||
import com.gmail.nossr50.runnables.skills.BleedTimerTask;
|
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public final class AbilityAPI {
|
public final class AbilityAPI {
|
||||||
private AbilityAPI() {}
|
private AbilityAPI() {}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the ability "Berserk" is active.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to check
|
|
||||||
*
|
|
||||||
* @return true if "Berserk" is active
|
|
||||||
*/
|
|
||||||
public static boolean berserkEnabled(Player player) {
|
public static boolean berserkEnabled(Player player) {
|
||||||
return UserManager.getPlayer(player).getAbilityMode(AbilityType.BERSERK);
|
return UserManager.getPlayer(player).getAbilityMode(AbilityType.BERSERK);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the ability "Giga Drill Breaker" is active.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to check
|
|
||||||
*
|
|
||||||
* @return true if "Giga Drill Breaker" is active
|
|
||||||
*/
|
|
||||||
public static boolean gigaDrillBreakerEnabled(Player player) {
|
public static boolean gigaDrillBreakerEnabled(Player player) {
|
||||||
return UserManager.getPlayer(player).getAbilityMode(AbilityType.GIGA_DRILL_BREAKER);
|
return UserManager.getPlayer(player).getAbilityMode(AbilityType.GIGA_DRILL_BREAKER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the ability "Green Terra" is active.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to check
|
|
||||||
*
|
|
||||||
* @return true if "Green Terra" is active
|
|
||||||
*/
|
|
||||||
public static boolean greenTerraEnabled(Player player) {
|
public static boolean greenTerraEnabled(Player player) {
|
||||||
return UserManager.getPlayer(player).getAbilityMode(AbilityType.GREEN_TERRA);
|
return UserManager.getPlayer(player).getAbilityMode(AbilityType.GREEN_TERRA);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the ability "Serrated Strikes" is active.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to check
|
|
||||||
*
|
|
||||||
* @return true if "Serrated Strikes" is active
|
|
||||||
*/
|
|
||||||
public static boolean serratedStrikesEnabled(Player player) {
|
public static boolean serratedStrikesEnabled(Player player) {
|
||||||
return UserManager.getPlayer(player).getAbilityMode(AbilityType.SERRATED_STRIKES);
|
return UserManager.getPlayer(player).getAbilityMode(AbilityType.SERRATED_STRIKES);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the ability "Skull Splitter" is active.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to check
|
|
||||||
*
|
|
||||||
* @return true if "Skull Splitter" is active
|
|
||||||
*/
|
|
||||||
public static boolean skullSplitterEnabled(Player player) {
|
public static boolean skullSplitterEnabled(Player player) {
|
||||||
return UserManager.getPlayer(player).getAbilityMode(AbilityType.SKULL_SPLITTER);
|
return UserManager.getPlayer(player).getAbilityMode(AbilityType.SKULL_SPLITTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the ability "Super Breaker" is active.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to check
|
|
||||||
*
|
|
||||||
* @return true if "Super Breaker" is active
|
|
||||||
*/
|
|
||||||
public static boolean superBreakerEnabled(Player player) {
|
public static boolean superBreakerEnabled(Player player) {
|
||||||
return UserManager.getPlayer(player).getAbilityMode(AbilityType.SUPER_BREAKER);
|
return UserManager.getPlayer(player).getAbilityMode(AbilityType.SUPER_BREAKER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the ability "Tree Feller" is active.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to check
|
|
||||||
*
|
|
||||||
* @return true if "Tree Feller" is active
|
|
||||||
*/
|
|
||||||
public static boolean treeFellerEnabled(Player player) {
|
public static boolean treeFellerEnabled(Player player) {
|
||||||
return UserManager.getPlayer(player).getAbilityMode(AbilityType.TREE_FELLER);
|
return UserManager.getPlayer(player).getAbilityMode(AbilityType.TREE_FELLER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if any ability is active.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to check
|
|
||||||
*
|
|
||||||
* @return true if any ability is active
|
|
||||||
*/
|
|
||||||
public static boolean isAnyAbilityEnabled(Player player) {
|
public static boolean isAnyAbilityEnabled(Player player) {
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
|
|
||||||
@@ -123,111 +49,35 @@ public final class AbilityAPI {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Reset the ability cooldowns for a player
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to reset the cooldowns for
|
|
||||||
*/
|
|
||||||
public static void resetCooldowns(Player player) {
|
public static void resetCooldowns(Player player) {
|
||||||
UserManager.getPlayer(player).resetCooldowns();
|
UserManager.getPlayer(player).getProfile().resetCooldowns();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the cooldown for the "Berserk" ability
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to set the cooldown for
|
|
||||||
* @param cooldown The cooldown length to set
|
|
||||||
*/
|
|
||||||
public static void setBerserkCooldown(Player player, long cooldown) {
|
public static void setBerserkCooldown(Player player, long cooldown) {
|
||||||
UserManager.getPlayer(player).setAbilityDATS(AbilityType.BERSERK, cooldown);
|
UserManager.getPlayer(player).getProfile().setSkillDATS(AbilityType.BERSERK, cooldown);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the cooldown for the "Giga Drill Breaker" ability
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to set the cooldown for
|
|
||||||
* @param cooldown The cooldown length to set
|
|
||||||
*/
|
|
||||||
public static void setGigaDrillBreakerCooldown(Player player, long cooldown) {
|
public static void setGigaDrillBreakerCooldown(Player player, long cooldown) {
|
||||||
UserManager.getPlayer(player).setAbilityDATS(AbilityType.GIGA_DRILL_BREAKER, cooldown);
|
UserManager.getPlayer(player).getProfile().setSkillDATS(AbilityType.GIGA_DRILL_BREAKER, cooldown);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the cooldown for the "Green Terra" ability
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to set the cooldown for
|
|
||||||
* @param cooldown The cooldown length to set
|
|
||||||
*/
|
|
||||||
public static void setGreenTerraCooldown(Player player, long cooldown) {
|
public static void setGreenTerraCooldown(Player player, long cooldown) {
|
||||||
UserManager.getPlayer(player).setAbilityDATS(AbilityType.GREEN_TERRA, cooldown);
|
UserManager.getPlayer(player).getProfile().setSkillDATS(AbilityType.GREEN_TERRA, cooldown);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the cooldown for the "Serrated Strikes" ability
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to set the cooldown for
|
|
||||||
* @param cooldown The cooldown length to set
|
|
||||||
*/
|
|
||||||
public static void setSerratedStrikesCooldown(Player player, long cooldown) {
|
public static void setSerratedStrikesCooldown(Player player, long cooldown) {
|
||||||
UserManager.getPlayer(player).setAbilityDATS(AbilityType.SERRATED_STRIKES, cooldown);
|
UserManager.getPlayer(player).getProfile().setSkillDATS(AbilityType.SERRATED_STRIKES, cooldown);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the cooldown for the "Skull Splitter" ability
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to set the cooldown for
|
|
||||||
* @param cooldown The cooldown length to set
|
|
||||||
*/
|
|
||||||
public static void setSkullSplitterCooldown(Player player, long cooldown) {
|
public static void setSkullSplitterCooldown(Player player, long cooldown) {
|
||||||
UserManager.getPlayer(player).setAbilityDATS(AbilityType.SKULL_SPLITTER, cooldown);
|
UserManager.getPlayer(player).getProfile().setSkillDATS(AbilityType.SKULL_SPLITTER, cooldown);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the cooldown for the "Super Breaker" ability
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to set the cooldown for
|
|
||||||
* @param cooldown The cooldown length to set
|
|
||||||
*/
|
|
||||||
public static void setSuperBreakerCooldown(Player player, long cooldown) {
|
public static void setSuperBreakerCooldown(Player player, long cooldown) {
|
||||||
UserManager.getPlayer(player).setAbilityDATS(AbilityType.SUPER_BREAKER, cooldown);
|
UserManager.getPlayer(player).getProfile().setSkillDATS(AbilityType.SUPER_BREAKER, cooldown);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the cooldown for the "Tree Feller" ability
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The {@link Player} to set the cooldown for
|
|
||||||
* @param cooldown The cooldown length to set
|
|
||||||
*/
|
|
||||||
public static void setTreeFellerCooldown(Player player, long cooldown) {
|
public static void setTreeFellerCooldown(Player player, long cooldown) {
|
||||||
UserManager.getPlayer(player).setAbilityDATS(AbilityType.TREE_FELLER, cooldown);
|
UserManager.getPlayer(player).getProfile().setSkillDATS(AbilityType.TREE_FELLER, cooldown);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a LivingEntity is bleeding
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param entity The {@link LivingEntity} to check
|
|
||||||
* @return true if entity is bleeding, false otherwise
|
|
||||||
*/
|
|
||||||
public static boolean isBleeding(LivingEntity entity) {
|
|
||||||
return BleedTimerTask.isBleeding(entity);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,94 +71,78 @@ public final class ChatAPI {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a player is currently talking in party chat.
|
* Check if a player is currently talking in party chat.
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
*
|
||||||
* @param player The player to check
|
* @param player The player to check
|
||||||
* @return true if the player is using party chat, false otherwise
|
* @return true if the player is using party chat, false otherwise
|
||||||
*/
|
*/
|
||||||
public static boolean isUsingPartyChat(Player player) {
|
public static boolean isUsingPartyChat(Player player) {
|
||||||
return UserManager.getPlayer(player).isChatEnabled(ChatMode.PARTY);
|
return UserManager.getPlayer(player).getPartyChatMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a player is currently talking in party chat.
|
* Check if a player is currently talking in party chat.
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
*
|
||||||
* @param playerName The name of the player to check
|
* @param playerName The name of the player to check
|
||||||
* @return true if the player is using party chat, false otherwise
|
* @return true if the player is using party chat, false otherwise
|
||||||
*/
|
*/
|
||||||
public static boolean isUsingPartyChat(String playerName) {
|
public static boolean isUsingPartyChat(String playerName) {
|
||||||
return UserManager.getPlayer(playerName).isChatEnabled(ChatMode.PARTY);
|
return UserManager.getPlayer(playerName).getPartyChatMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a player is currently talking in admin chat.
|
* Check if a player is currently talking in admin chat.
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
*
|
||||||
* @param player The player to check
|
* @param player The player to check
|
||||||
* @return true if the player is using admin chat, false otherwise
|
* @return true if the player is using admin chat, false otherwise
|
||||||
*/
|
*/
|
||||||
public static boolean isUsingAdminChat(Player player) {
|
public static boolean isUsingAdminChat(Player player) {
|
||||||
return UserManager.getPlayer(player).isChatEnabled(ChatMode.ADMIN);
|
return UserManager.getPlayer(player).getAdminChatMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a player is currently talking in admin chat.
|
* Check if a player is currently talking in admin chat.
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
*
|
||||||
* @param playerName The name of the player to check
|
* @param playerName The name of the player to check
|
||||||
* @return true if the player is using admin chat, false otherwise
|
* @return true if the player is using admin chat, false otherwise
|
||||||
*/
|
*/
|
||||||
public static boolean isUsingAdminChat(String playerName) {
|
public static boolean isUsingAdminChat(String playerName) {
|
||||||
return UserManager.getPlayer(playerName).isChatEnabled(ChatMode.ADMIN);
|
return UserManager.getPlayer(playerName).getAdminChatMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle the party chat mode of a player.
|
* Toggle the party chat mode of a player.
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
*
|
||||||
* @param player The player to toggle party chat on.
|
* @param player The player to toggle party chat on.
|
||||||
*/
|
*/
|
||||||
public static void togglePartyChat(Player player) {
|
public static void togglePartyChat(Player player) {
|
||||||
UserManager.getPlayer(player).toggleChat(ChatMode.PARTY);
|
UserManager.getPlayer(player).togglePartyChat();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle the party chat mode of a player.
|
* Toggle the party chat mode of a player.
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
*
|
||||||
* @param playerName The name of the player to toggle party chat on.
|
* @param playerName The name of the player to toggle party chat on.
|
||||||
*/
|
*/
|
||||||
public static void togglePartyChat(String playerName) {
|
public static void togglePartyChat(String playerName) {
|
||||||
UserManager.getPlayer(playerName).toggleChat(ChatMode.PARTY);
|
UserManager.getPlayer(playerName).togglePartyChat();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle the admin chat mode of a player.
|
* Toggle the admin chat mode of a player.
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
*
|
||||||
* @param player The player to toggle admin chat on.
|
* @param player The player to toggle admin chat on.
|
||||||
*/
|
*/
|
||||||
public static void toggleAdminChat(Player player) {
|
public static void toggleAdminChat(Player player) {
|
||||||
UserManager.getPlayer(player).toggleChat(ChatMode.ADMIN);
|
UserManager.getPlayer(player).toggleAdminChat();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle the admin chat mode of a player.
|
* Toggle the admin chat mode of a player.
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
*
|
||||||
* @param playerName The name of the player to toggle party chat on.
|
* @param playerName The name of the player to toggle party chat on.
|
||||||
*/
|
*/
|
||||||
public static void toggleAdminChat(String playerName) {
|
public static void toggleAdminChat(String playerName) {
|
||||||
UserManager.getPlayer(playerName).toggleChat(ChatMode.ADMIN);
|
UserManager.getPlayer(playerName).toggleAdminChat();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ChatManager getPartyChatManager(Plugin plugin, String party) {
|
private static ChatManager getPartyChatManager(Plugin plugin, String party) {
|
||||||
|
|||||||
@@ -1,23 +1,16 @@
|
|||||||
package com.gmail.nossr50.api;
|
package com.gmail.nossr50.api;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.api.exceptions.InvalidFormulaTypeException;
|
|
||||||
import com.gmail.nossr50.api.exceptions.InvalidPlayerException;
|
import com.gmail.nossr50.api.exceptions.InvalidPlayerException;
|
||||||
import com.gmail.nossr50.api.exceptions.InvalidSkillException;
|
import com.gmail.nossr50.api.exceptions.InvalidSkillException;
|
||||||
import com.gmail.nossr50.api.exceptions.InvalidXPGainReasonException;
|
|
||||||
import com.gmail.nossr50.api.exceptions.McMMOPlayerNotFoundException;
|
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.config.experience.ExperienceConfig;
|
import com.gmail.nossr50.config.experience.ExperienceConfig;
|
||||||
import com.gmail.nossr50.datatypes.experience.FormulaType;
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|
||||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
import com.gmail.nossr50.datatypes.skills.XPGainReason;
|
|
||||||
import com.gmail.nossr50.skills.child.FamilyTree;
|
import com.gmail.nossr50.skills.child.FamilyTree;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
@@ -50,7 +43,9 @@ public final class ExperienceAPI {
|
|||||||
public static boolean isNonChildSkill(String skillType) {
|
public static boolean isNonChildSkill(String skillType) {
|
||||||
SkillType skill = SkillType.getSkill(skillType);
|
SkillType skill = SkillType.getSkill(skillType);
|
||||||
|
|
||||||
return skill != null && !skill.isChildSkill();
|
if (skill == null) return false;
|
||||||
|
|
||||||
|
return !skill.isChildSkill();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@@ -69,59 +64,10 @@ public final class ExperienceAPI {
|
|||||||
*
|
*
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void addRawXP(Player player, String skillType, float XP) {
|
public static void addRawXP(Player player, String skillType, float XP) {
|
||||||
addRawXP(player, skillType, XP, "UNKNOWN");
|
UserManager.getPlayer(player).applyXpGain(getSkillType(skillType), XP);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds raw XP to the player.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The player to add XP to
|
|
||||||
* @param skillType The skill to add XP to
|
|
||||||
* @param XP The amount of XP to add
|
|
||||||
* @param xpGainReason The reason to gain XP
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidXPGainReasonException if the given xpGainReason is not valid
|
|
||||||
*/
|
|
||||||
public static void addRawXP(Player player, String skillType, float XP, String xpGainReason) {
|
|
||||||
addRawXP(player, skillType, XP, xpGainReason, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds raw XP to the player.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The player to add XP to
|
|
||||||
* @param skillType The skill to add XP to
|
|
||||||
* @param XP The amount of XP to add
|
|
||||||
* @param xpGainReason The reason to gain XP
|
|
||||||
* @param isUnshared true if the XP cannot be shared with party members
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidXPGainReasonException if the given xpGainReason is not valid
|
|
||||||
*/
|
|
||||||
public static void addRawXP(Player player, String skillType, float XP, String xpGainReason, boolean isUnshared) {
|
|
||||||
if (isUnshared) {
|
|
||||||
getPlayer(player).beginUnsharedXpGain(getSkillType(skillType), XP, getXPGainReason(xpGainReason));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
getPlayer(player).applyXpGain(getSkillType(skillType), XP, getXPGainReason(xpGainReason));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds raw XP to an offline player.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @deprecated We're using float for our XP values now
|
|
||||||
* replaced by {@link #addRawXPOffline(String playerName, String skillType, float XP)}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static void addRawXPOffline(String playerName, String skillType, int XP) {
|
public static void addRawXPOffline(String playerName, String skillType, int XP) {
|
||||||
addRawXPOffline(playerName, skillType, (float) XP);
|
addRawXPOffline(playerName, skillType, (float) XP);
|
||||||
@@ -132,9 +78,6 @@ public final class ExperienceAPI {
|
|||||||
* </br>
|
* </br>
|
||||||
* This function is designed for API usage.
|
* This function is designed for API usage.
|
||||||
*
|
*
|
||||||
* @deprecated We're using uuids to get an offline player
|
|
||||||
* replaced by {@link #addRawXPOffline(UUID uuid, String skillType, float XP)}
|
|
||||||
*
|
|
||||||
* @param playerName The player to add XP to
|
* @param playerName The player to add XP to
|
||||||
* @param skillType The skill to add XP to
|
* @param skillType The skill to add XP to
|
||||||
* @param XP The amount of XP to add
|
* @param XP The amount of XP to add
|
||||||
@@ -142,27 +85,10 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void addRawXPOffline(String playerName, String skillType, float XP) {
|
public static void addRawXPOffline(String playerName, String skillType, float XP) {
|
||||||
addOfflineXP(playerName, getSkillType(skillType), (int) Math.floor(XP));
|
addOfflineXP(playerName, getSkillType(skillType), (int) Math.floor(XP));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds raw XP to an offline player.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The UUID of player to add XP to
|
|
||||||
* @param skillType The skill to add XP to
|
|
||||||
* @param XP The amount of XP to add
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
*/
|
|
||||||
public static void addRawXPOffline(UUID uuid, String skillType, float XP) {
|
|
||||||
addOfflineXP(uuid, getSkillType(skillType), (int) Math.floor(XP));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds XP to the player, calculates for XP Rate only.
|
* Adds XP to the player, calculates for XP Rate only.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -174,26 +100,8 @@ public final class ExperienceAPI {
|
|||||||
*
|
*
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void addMultipliedXP(Player player, String skillType, int XP) {
|
public static void addMultipliedXP(Player player, String skillType, int XP) {
|
||||||
addMultipliedXP(player, skillType, XP, "UNKNOWN");
|
UserManager.getPlayer(player).applyXpGain(getSkillType(skillType), (int) (XP * ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier()));
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds XP to the player, calculates for XP Rate only.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The player to add XP to
|
|
||||||
* @param skillType The skill to add XP to
|
|
||||||
* @param XP The amount of XP to add
|
|
||||||
* @param xpGainReason The reason to gain XP
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidXPGainReasonException if the given xpGainReason is not valid
|
|
||||||
*/
|
|
||||||
public static void addMultipliedXP(Player player, String skillType, int XP, String xpGainReason) {
|
|
||||||
getPlayer(player).applyXpGain(getSkillType(skillType), (int) (XP * ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier()), getXPGainReason(xpGainReason));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -208,7 +116,6 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void addMultipliedXPOffline(String playerName, String skillType, int XP) {
|
public static void addMultipliedXPOffline(String playerName, String skillType, int XP) {
|
||||||
addOfflineXP(playerName, getSkillType(skillType), (int) (XP * ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier()));
|
addOfflineXP(playerName, getSkillType(skillType), (int) (XP * ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier()));
|
||||||
}
|
}
|
||||||
@@ -224,51 +131,10 @@ public final class ExperienceAPI {
|
|||||||
*
|
*
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void addModifiedXP(Player player, String skillType, int XP) {
|
public static void addModifiedXP(Player player, String skillType, int XP) {
|
||||||
addModifiedXP(player, skillType, XP, "UNKNOWN");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds XP to the player, calculates for XP Rate and skill modifier.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The player to add XP to
|
|
||||||
* @param skillType The skill to add XP to
|
|
||||||
* @param XP The amount of XP to add
|
|
||||||
* @param xpGainReason The reason to gain XP
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidXPGainReasonException if the given xpGainReason is not valid
|
|
||||||
*/
|
|
||||||
public static void addModifiedXP(Player player, String skillType, int XP, String xpGainReason) {
|
|
||||||
addModifiedXP(player, skillType, XP, xpGainReason, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds XP to the player, calculates for XP Rate and skill modifier.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The player to add XP to
|
|
||||||
* @param skillType The skill to add XP to
|
|
||||||
* @param XP The amount of XP to add
|
|
||||||
* @param xpGainReason The reason to gain XP
|
|
||||||
* @param isUnshared true if the XP cannot be shared with party members
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidXPGainReasonException if the given xpGainReason is not valid
|
|
||||||
*/
|
|
||||||
public static void addModifiedXP(Player player, String skillType, int XP, String xpGainReason, boolean isUnshared) {
|
|
||||||
SkillType skill = getSkillType(skillType);
|
SkillType skill = getSkillType(skillType);
|
||||||
|
|
||||||
if (isUnshared) {
|
UserManager.getPlayer(player).applyXpGain(skill, (int) (XP / skill.getXpModifier() * ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier()));
|
||||||
getPlayer(player).beginUnsharedXpGain(skill, (int) (XP / skill.getXpModifier() * ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier()), getXPGainReason(xpGainReason));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
getPlayer(player).applyXpGain(skill, (int) (XP / skill.getXpModifier() * ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier()), getXPGainReason(xpGainReason));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -283,7 +149,6 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void addModifiedXPOffline(String playerName, String skillType, int XP) {
|
public static void addModifiedXPOffline(String playerName, String skillType, int XP) {
|
||||||
SkillType skill = getSkillType(skillType);
|
SkillType skill = getSkillType(skillType);
|
||||||
|
|
||||||
@@ -302,51 +167,8 @@ public final class ExperienceAPI {
|
|||||||
*
|
*
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void addXP(Player player, String skillType, int XP) {
|
public static void addXP(Player player, String skillType, int XP) {
|
||||||
addXP(player, skillType, XP, "UNKNOWN");
|
UserManager.getPlayer(player).beginXpGain(getSkillType(skillType), XP);
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds XP to the player, calculates for XP Rate, skill modifiers, perks, child skills,
|
|
||||||
* and party sharing.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The player to add XP to
|
|
||||||
* @param skillType The skill to add XP to
|
|
||||||
* @param XP The amount of XP to add
|
|
||||||
* @param xpGainReason The reason to gain XP
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidXPGainReasonException if the given xpGainReason is not valid
|
|
||||||
*/
|
|
||||||
public static void addXP(Player player, String skillType, int XP, String xpGainReason) {
|
|
||||||
addXP(player, skillType, XP, xpGainReason, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds XP to the player, calculates for XP Rate, skill modifiers, perks, child skills,
|
|
||||||
* and party sharing.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The player to add XP to
|
|
||||||
* @param skillType The skill to add XP to
|
|
||||||
* @param XP The amount of XP to add
|
|
||||||
* @param xpGainReason The reason to gain XP
|
|
||||||
* @param isUnshared true if the XP cannot be shared with party members
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidXPGainReasonException if the given xpGainReason is not valid
|
|
||||||
*/
|
|
||||||
public static void addXP(Player player, String skillType, int XP, String xpGainReason, boolean isUnshared) {
|
|
||||||
if (isUnshared) {
|
|
||||||
getPlayer(player).beginUnsharedXpGain(getSkillType(skillType), XP, getXPGainReason(xpGainReason));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
getPlayer(player).beginXpGain(getSkillType(skillType), XP, getXPGainReason(xpGainReason));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -362,7 +184,7 @@ public final class ExperienceAPI {
|
|||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
public static int getXP(Player player, String skillType) {
|
public static int getXP(Player player, String skillType) {
|
||||||
return getPlayer(player).getSkillXpLevel(getNonChildSkillType(skillType));
|
return UserManager.getPlayer(player).getProfile().getSkillXpLevel(getNonChildSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -378,28 +200,10 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static int getOfflineXP(String playerName, String skillType) {
|
public static int getOfflineXP(String playerName, String skillType) {
|
||||||
return getOfflineProfile(playerName).getSkillXpLevel(getNonChildSkillType(skillType));
|
return getOfflineProfile(playerName).getSkillXpLevel(getNonChildSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the amount of XP an offline player has in a specific skill.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to get XP for
|
|
||||||
* @param skillType The skill to get XP for
|
|
||||||
* @return the amount of XP in a given skill
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
|
||||||
*/
|
|
||||||
public static int getOfflineXP(UUID uuid, String skillType) {
|
|
||||||
return getOfflineProfile(uuid).getSkillXpLevel(getNonChildSkillType(skillType));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the raw amount of XP a player has in a specific skill.
|
* Get the raw amount of XP a player has in a specific skill.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -413,7 +217,7 @@ public final class ExperienceAPI {
|
|||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
public static float getXPRaw(Player player, String skillType) {
|
public static float getXPRaw(Player player, String skillType) {
|
||||||
return getPlayer(player).getSkillXpLevelRaw(getNonChildSkillType(skillType));
|
return UserManager.getPlayer(player).getProfile().getSkillXpLevelRaw(getNonChildSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -429,28 +233,10 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static float getOfflineXPRaw(String playerName, String skillType) {
|
public static float getOfflineXPRaw(String playerName, String skillType) {
|
||||||
return getOfflineProfile(playerName).getSkillXpLevelRaw(getNonChildSkillType(skillType));
|
return getOfflineProfile(playerName).getSkillXpLevelRaw(getNonChildSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the raw amount of XP an offline player has in a specific skill.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to get XP for
|
|
||||||
* @param skillType The skill to get XP for
|
|
||||||
* @return the amount of XP in a given skill
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
|
||||||
*/
|
|
||||||
public static float getOfflineXPRaw(UUID uuid, String skillType) {
|
|
||||||
return getOfflineProfile(uuid).getSkillXpLevelRaw(getNonChildSkillType(skillType));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the total amount of XP needed to reach the next level.
|
* Get the total amount of XP needed to reach the next level.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -464,7 +250,7 @@ public final class ExperienceAPI {
|
|||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
public static int getXPToNextLevel(Player player, String skillType) {
|
public static int getXPToNextLevel(Player player, String skillType) {
|
||||||
return getPlayer(player).getXpToLevel(getNonChildSkillType(skillType));
|
return UserManager.getPlayer(player).getProfile().getXpToLevel(getNonChildSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -480,28 +266,10 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static int getOfflineXPToNextLevel(String playerName, String skillType) {
|
public static int getOfflineXPToNextLevel(String playerName, String skillType) {
|
||||||
return getOfflineProfile(playerName).getXpToLevel(getNonChildSkillType(skillType));
|
return getOfflineProfile(playerName).getXpToLevel(getNonChildSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the total amount of XP an offline player needs to reach the next level.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to get XP for
|
|
||||||
* @param skillType The skill to get XP for
|
|
||||||
* @return the total amount of XP needed to reach the next level
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
|
||||||
*/
|
|
||||||
public static int getOfflineXPToNextLevel(UUID uuid, String skillType) {
|
|
||||||
return getOfflineProfile(uuid).getXpToLevel(getNonChildSkillType(skillType));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the amount of XP remaining until the next level.
|
* Get the amount of XP remaining until the next level.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -517,7 +285,7 @@ public final class ExperienceAPI {
|
|||||||
public static int getXPRemaining(Player player, String skillType) {
|
public static int getXPRemaining(Player player, String skillType) {
|
||||||
SkillType skill = getNonChildSkillType(skillType);
|
SkillType skill = getNonChildSkillType(skillType);
|
||||||
|
|
||||||
PlayerProfile profile = getPlayer(player).getProfile();
|
PlayerProfile profile = UserManager.getPlayer(player).getProfile();
|
||||||
|
|
||||||
return profile.getXpToLevel(skill) - profile.getSkillXpLevel(skill);
|
return profile.getXpToLevel(skill) - profile.getSkillXpLevel(skill);
|
||||||
}
|
}
|
||||||
@@ -535,34 +303,14 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static int getOfflineXPRemaining(String playerName, String skillType) {
|
public static int getOfflineXPRemaining(String playerName, String skillType) {
|
||||||
SkillType skill = getNonChildSkillType(skillType);
|
SkillType skill = getNonChildSkillType(skillType);
|
||||||
|
|
||||||
PlayerProfile profile = getOfflineProfile(playerName);
|
PlayerProfile profile = getOfflineProfile(playerName);
|
||||||
|
|
||||||
return profile.getXpToLevel(skill) - profile.getSkillXpLevel(skill);
|
return profile.getXpToLevel(skill) - profile.getSkillXpLevel(skill);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the amount of XP an offline player has left before leveling up.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to get XP for
|
|
||||||
* @param skillType The skill to get XP for
|
|
||||||
* @return the amount of XP needed to reach the next level
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
|
||||||
*/
|
|
||||||
public static float getOfflineXPRemaining(UUID uuid, String skillType) {
|
|
||||||
SkillType skill = getNonChildSkillType(skillType);
|
|
||||||
PlayerProfile profile = getOfflineProfile(uuid);
|
|
||||||
|
|
||||||
return profile.getXpToLevel(skill) - profile.getSkillXpLevelRaw(skill);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add levels to a skill.
|
* Add levels to a skill.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -575,7 +323,7 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
*/
|
*/
|
||||||
public static void addLevel(Player player, String skillType, int levels) {
|
public static void addLevel(Player player, String skillType, int levels) {
|
||||||
getPlayer(player).addLevels(getSkillType(skillType), levels);
|
UserManager.getPlayer(player).getProfile().addLevels(getSkillType(skillType), levels);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -590,7 +338,6 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void addLevelOffline(String playerName, String skillType, int levels) {
|
public static void addLevelOffline(String playerName, String skillType, int levels) {
|
||||||
PlayerProfile profile = getOfflineProfile(playerName);
|
PlayerProfile profile = getOfflineProfile(playerName);
|
||||||
SkillType skill = getSkillType(skillType);
|
SkillType skill = getSkillType(skillType);
|
||||||
@@ -602,43 +349,12 @@ public final class ExperienceAPI {
|
|||||||
profile.addLevels(parentSkill, (levels / parentSkills.size()));
|
profile.addLevels(parentSkill, (levels / parentSkills.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
profile.scheduleAsyncSave();
|
profile.save();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
profile.addLevels(skill, levels);
|
profile.addLevels(skill, levels);
|
||||||
profile.scheduleAsyncSave();
|
profile.save();
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add levels to a skill for an offline player.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to add levels to
|
|
||||||
* @param skillType Type of skill to add levels to
|
|
||||||
* @param levels Number of levels to add
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
*/
|
|
||||||
public static void addLevelOffline(UUID uuid, String skillType, int levels) {
|
|
||||||
PlayerProfile profile = getOfflineProfile(uuid);
|
|
||||||
SkillType skill = getSkillType(skillType);
|
|
||||||
|
|
||||||
if (skill.isChildSkill()) {
|
|
||||||
Set<SkillType> parentSkills = FamilyTree.getParents(skill);
|
|
||||||
|
|
||||||
for (SkillType parentSkill : parentSkills) {
|
|
||||||
profile.addLevels(parentSkill, (levels / parentSkills.size()));
|
|
||||||
}
|
|
||||||
|
|
||||||
profile.scheduleAsyncSave();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
profile.addLevels(skill, levels);
|
|
||||||
profile.scheduleAsyncSave();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -653,7 +369,7 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
*/
|
*/
|
||||||
public static int getLevel(Player player, String skillType) {
|
public static int getLevel(Player player, String skillType) {
|
||||||
return getPlayer(player).getSkillLevel(getSkillType(skillType));
|
return UserManager.getPlayer(player).getProfile().getSkillLevel(getSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -668,27 +384,10 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static int getLevelOffline(String playerName, String skillType) {
|
public static int getLevelOffline(String playerName, String skillType) {
|
||||||
return getOfflineProfile(playerName).getSkillLevel(getSkillType(skillType));
|
return getOfflineProfile(playerName).getSkillLevel(getSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the level an offline player has in a specific skill.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to get the level for
|
|
||||||
* @param skillType The skill to get the level for
|
|
||||||
* @return the level of a given skill
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
*/
|
|
||||||
public static int getLevelOffline(UUID uuid, String skillType) {
|
|
||||||
return getOfflineProfile(uuid).getSkillLevel(getSkillType(skillType));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the power level of a player.
|
* Gets the power level of a player.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -698,7 +397,7 @@ public final class ExperienceAPI {
|
|||||||
* @return the power level of the player
|
* @return the power level of the player
|
||||||
*/
|
*/
|
||||||
public static int getPowerLevel(Player player) {
|
public static int getPowerLevel(Player player) {
|
||||||
return getPlayer(player).getPowerLevel();
|
return UserManager.getPlayer(player).getPowerLevel();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -711,7 +410,6 @@ public final class ExperienceAPI {
|
|||||||
*
|
*
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static int getPowerLevelOffline(String playerName) {
|
public static int getPowerLevelOffline(String playerName) {
|
||||||
int powerLevel = 0;
|
int powerLevel = 0;
|
||||||
PlayerProfile profile = getOfflineProfile(playerName);
|
PlayerProfile profile = getOfflineProfile(playerName);
|
||||||
@@ -723,27 +421,6 @@ public final class ExperienceAPI {
|
|||||||
return powerLevel;
|
return powerLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the power level of an offline player.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to get the power level for
|
|
||||||
* @return the power level of the player
|
|
||||||
*
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
*/
|
|
||||||
public static int getPowerLevelOffline(UUID uuid) {
|
|
||||||
int powerLevel = 0;
|
|
||||||
PlayerProfile profile = getOfflineProfile(uuid);
|
|
||||||
|
|
||||||
for (SkillType type : SkillType.NON_CHILD_SKILLS) {
|
|
||||||
powerLevel += profile.getSkillLevel(type);
|
|
||||||
}
|
|
||||||
|
|
||||||
return powerLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the level cap of a specific skill.
|
* Get the level cap of a specific skill.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -783,28 +460,10 @@ public final class ExperienceAPI {
|
|||||||
*
|
*
|
||||||
* @return the position on the leaderboard
|
* @return the position on the leaderboard
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static int getPlayerRankSkill(String playerName, String skillType) {
|
public static int getPlayerRankSkill(String playerName, String skillType) {
|
||||||
return mcMMO.getDatabaseManager().readRank(getOfflineProfile(playerName).getPlayerName()).get(getNonChildSkillType(skillType));
|
return mcMMO.getDatabaseManager().readRank(getOfflineProfile(playerName).getPlayerName()).get(getNonChildSkillType(skillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the position on the leaderboard of a player.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The name of the player to check
|
|
||||||
* @param skillType The skill to check
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
|
||||||
*
|
|
||||||
* @return the position on the leaderboard
|
|
||||||
*/
|
|
||||||
public static int getPlayerRankSkill(UUID uuid, String skillType) {
|
|
||||||
return mcMMO.getDatabaseManager().readRank(getOfflineProfile(uuid).getPlayerName()).get(getNonChildSkillType(skillType));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the position on the power level leaderboard of a player.
|
* Get the position on the power level leaderboard of a player.
|
||||||
@@ -817,26 +476,10 @@ public final class ExperienceAPI {
|
|||||||
*
|
*
|
||||||
* @return the position on the power level leaderboard
|
* @return the position on the power level leaderboard
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static int getPlayerRankOverall(String playerName) {
|
public static int getPlayerRankOverall(String playerName) {
|
||||||
return mcMMO.getDatabaseManager().readRank(getOfflineProfile(playerName).getPlayerName()).get(null);
|
return mcMMO.getDatabaseManager().readRank(getOfflineProfile(playerName).getPlayerName()).get(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the position on the power level leaderboard of a player.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The name of the player to check
|
|
||||||
*
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
*
|
|
||||||
* @return the position on the power level leaderboard
|
|
||||||
*/
|
|
||||||
public static int getPlayerRankOverall(UUID uuid) {
|
|
||||||
return mcMMO.getDatabaseManager().readRank(getOfflineProfile(uuid).getPlayerName()).get(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the level of a player in a specific skill type.
|
* Sets the level of a player in a specific skill type.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -849,7 +492,7 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
*/
|
*/
|
||||||
public static void setLevel(Player player, String skillType, int skillLevel) {
|
public static void setLevel(Player player, String skillType, int skillLevel) {
|
||||||
getPlayer(player).modifySkill(getSkillType(skillType), skillLevel);
|
UserManager.getPlayer(player).getProfile().modifySkill(getSkillType(skillType), skillLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -864,27 +507,10 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidSkillException if the given skill is not valid
|
* @throws InvalidSkillException if the given skill is not valid
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void setLevelOffline(String playerName, String skillType, int skillLevel) {
|
public static void setLevelOffline(String playerName, String skillType, int skillLevel) {
|
||||||
getOfflineProfile(playerName).modifySkill(getSkillType(skillType), skillLevel);
|
getOfflineProfile(playerName).modifySkill(getSkillType(skillType), skillLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the level of an offline player in a specific skill type.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to set the level of
|
|
||||||
* @param skillType The skill to set the level for
|
|
||||||
* @param skillLevel The value to set the level to
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
*/
|
|
||||||
public static void setLevelOffline(UUID uuid, String skillType, int skillLevel) {
|
|
||||||
getOfflineProfile(uuid).modifySkill(getSkillType(skillType), skillLevel);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the XP of a player in a specific skill type.
|
* Sets the XP of a player in a specific skill type.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -898,7 +524,7 @@ public final class ExperienceAPI {
|
|||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
public static void setXP(Player player, String skillType, int newValue) {
|
public static void setXP(Player player, String skillType, int newValue) {
|
||||||
getPlayer(player).setSkillXpLevel(getNonChildSkillType(skillType), newValue);
|
UserManager.getPlayer(player).getProfile().setSkillXpLevel(getNonChildSkillType(skillType), newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -914,28 +540,10 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void setXPOffline(String playerName, String skillType, int newValue) {
|
public static void setXPOffline(String playerName, String skillType, int newValue) {
|
||||||
getOfflineProfile(playerName).setSkillXpLevel(getNonChildSkillType(skillType), newValue);
|
getOfflineProfile(playerName).setSkillXpLevel(getNonChildSkillType(skillType), newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the XP of an offline player in a specific skill type.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to set the XP of
|
|
||||||
* @param skillType The skill to set the XP for
|
|
||||||
* @param newValue The value to set the XP to
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
|
||||||
*/
|
|
||||||
public static void setXPOffline(UUID uuid, String skillType, int newValue) {
|
|
||||||
getOfflineProfile(uuid).setSkillXpLevel(getNonChildSkillType(skillType), newValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes XP from a player in a specific skill type.
|
* Removes XP from a player in a specific skill type.
|
||||||
* </br>
|
* </br>
|
||||||
@@ -949,7 +557,7 @@ public final class ExperienceAPI {
|
|||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
public static void removeXP(Player player, String skillType, int xp) {
|
public static void removeXP(Player player, String skillType, int xp) {
|
||||||
getPlayer(player).removeXp(getNonChildSkillType(skillType), xp);
|
UserManager.getPlayer(player).getProfile().removeXp(getNonChildSkillType(skillType), xp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -965,85 +573,32 @@ public final class ExperienceAPI {
|
|||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
* @throws InvalidPlayerException if the given player does not exist in the database
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
* @throws UnsupportedOperationException if the given skill is a child skill
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static void removeXPOffline(String playerName, String skillType, int xp) {
|
public static void removeXPOffline(String playerName, String skillType, int xp) {
|
||||||
getOfflineProfile(playerName).removeXp(getNonChildSkillType(skillType), xp);
|
getOfflineProfile(playerName).removeXp(getNonChildSkillType(skillType), xp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes XP from an offline player in a specific skill type.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param uuid The player to change the XP of
|
|
||||||
* @param skillType The skill to change the XP for
|
|
||||||
* @param xp The amount of XP to remove
|
|
||||||
*
|
|
||||||
* @throws InvalidSkillException if the given skill is not valid
|
|
||||||
* @throws InvalidPlayerException if the given player does not exist in the database
|
|
||||||
* @throws UnsupportedOperationException if the given skill is a child skill
|
|
||||||
*/
|
|
||||||
public static void removeXPOffline(UUID uuid, String skillType, int xp) {
|
|
||||||
getOfflineProfile(uuid).removeXp(getNonChildSkillType(skillType), xp);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check how much XP is needed for a specific level with the selected level curve.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param level The level to get the amount of XP for
|
|
||||||
*
|
|
||||||
* @throws InvalidFormulaTypeException if the given formulaType is not valid
|
|
||||||
*/
|
|
||||||
public static int getXpNeededToLevel(int level) {
|
|
||||||
return mcMMO.getFormulaManager().getCachedXpToLevel(level, ExperienceConfig.getInstance().getFormulaType());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check how much XP is needed for a specific level with the provided level curve.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param level The level to get the amount of XP for
|
|
||||||
* @param formulaType The formula type to get the amount of XP for
|
|
||||||
*
|
|
||||||
* @throws InvalidFormulaTypeException if the given formulaType is not valid
|
|
||||||
*/
|
|
||||||
public static int getXpNeededToLevel(int level, String formulaType) {
|
|
||||||
return mcMMO.getFormulaManager().getCachedXpToLevel(level, getFormulaType(formulaType));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Utility methods follow.
|
// Utility methods follow.
|
||||||
private static void addOfflineXP(UUID playerUniqueId, SkillType skill, int XP) {
|
|
||||||
PlayerProfile profile = getOfflineProfile(playerUniqueId);
|
|
||||||
|
|
||||||
profile.addXp(skill, XP);
|
|
||||||
profile.save();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
private static void addOfflineXP(String playerName, SkillType skill, int XP) {
|
private static void addOfflineXP(String playerName, SkillType skill, int XP) {
|
||||||
PlayerProfile profile = getOfflineProfile(playerName);
|
PlayerProfile profile = getOfflineProfile(playerName);
|
||||||
|
|
||||||
profile.addXp(skill, XP);
|
if (skill.isChildSkill()) {
|
||||||
profile.scheduleAsyncSave();
|
Set<SkillType> parentSkills = FamilyTree.getParents(skill);
|
||||||
}
|
|
||||||
|
|
||||||
private static PlayerProfile getOfflineProfile(UUID uuid) {
|
for (SkillType parentSkill : parentSkills) {
|
||||||
PlayerProfile profile = mcMMO.getDatabaseManager().loadPlayerProfile(uuid);
|
profile.setSkillXpLevel(parentSkill, profile.getSkillLevel(parentSkill) + (XP / parentSkills.size()));
|
||||||
|
}
|
||||||
|
|
||||||
if (!profile.isLoaded()) {
|
profile.save();
|
||||||
throw new InvalidPlayerException();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return profile;
|
profile.setSkillXpLevel(skill, profile.getSkillXpLevel(skill) + XP);
|
||||||
|
profile.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
private static PlayerProfile getOfflineProfile(String playerName) {
|
private static PlayerProfile getOfflineProfile(String playerName) {
|
||||||
UUID uuid = mcMMO.p.getServer().getOfflinePlayer(playerName).getUniqueId();
|
PlayerProfile profile = mcMMO.getDatabaseManager().loadPlayerProfile(playerName, false);
|
||||||
PlayerProfile profile = mcMMO.getDatabaseManager().loadPlayerProfile(uuid);
|
|
||||||
|
|
||||||
if (!profile.isLoaded()) {
|
if (!profile.isLoaded()) {
|
||||||
throw new InvalidPlayerException();
|
throw new InvalidPlayerException();
|
||||||
@@ -1071,32 +626,4 @@ public final class ExperienceAPI {
|
|||||||
|
|
||||||
return skill;
|
return skill;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static XPGainReason getXPGainReason(String reason) throws InvalidXPGainReasonException {
|
|
||||||
XPGainReason xpGainReason = XPGainReason.getXPGainReason(reason);
|
|
||||||
|
|
||||||
if (xpGainReason == null) {
|
|
||||||
throw new InvalidXPGainReasonException();
|
|
||||||
}
|
|
||||||
|
|
||||||
return xpGainReason;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static FormulaType getFormulaType(String formula) throws InvalidFormulaTypeException {
|
|
||||||
FormulaType formulaType = FormulaType.getFormulaType(formula);
|
|
||||||
|
|
||||||
if (formulaType == null) {
|
|
||||||
throw new InvalidFormulaTypeException();
|
|
||||||
}
|
|
||||||
|
|
||||||
return formulaType;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static McMMOPlayer getPlayer(Player player) throws McMMOPlayerNotFoundException {
|
|
||||||
if (!UserManager.hasPlayerDataKey(player)) {
|
|
||||||
throw new McMMOPlayerNotFoundException(player);
|
|
||||||
}
|
|
||||||
|
|
||||||
return UserManager.getPlayer(player);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
package com.gmail.nossr50.api;
|
package com.gmail.nossr50.api;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
import com.gmail.nossr50.datatypes.party.Party;
|
||||||
import com.gmail.nossr50.datatypes.party.PartyLeader;
|
|
||||||
import com.gmail.nossr50.party.PartyManager;
|
import com.gmail.nossr50.party.PartyManager;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
@@ -82,7 +79,7 @@ public final class PartyAPI {
|
|||||||
Party party = PartyManager.getParty(partyName);
|
Party party = PartyManager.getParty(partyName);
|
||||||
|
|
||||||
if (party == null) {
|
if (party == null) {
|
||||||
party = new Party(new PartyLeader(player.getUniqueId(), player.getName()), partyName);
|
party = new Party(player.getName(), partyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
PartyManager.addToParty(UserManager.getPlayer(player), party);
|
PartyManager.addToParty(UserManager.getPlayer(player), party);
|
||||||
@@ -108,7 +105,7 @@ public final class PartyAPI {
|
|||||||
* @return the leader of the party
|
* @return the leader of the party
|
||||||
*/
|
*/
|
||||||
public static String getPartyLeader(String partyName) {
|
public static String getPartyLeader(String partyName) {
|
||||||
return PartyManager.getPartyLeaderName(partyName);
|
return PartyManager.getPartyLeader(partyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -117,11 +114,10 @@ public final class PartyAPI {
|
|||||||
* This function is designed for API usage.
|
* This function is designed for API usage.
|
||||||
*
|
*
|
||||||
* @param partyName The name of the party to set the leader of
|
* @param partyName The name of the party to set the leader of
|
||||||
* @param playerName The playerName to set as leader
|
* @param player The player to set as leader
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
public static void setPartyLeader(String partyName, String player) {
|
||||||
public static void setPartyLeader(String partyName, String playerName) {
|
PartyManager.setPartyLeader(player, PartyManager.getParty(partyName));
|
||||||
PartyManager.setPartyLeader(mcMMO.p.getServer().getOfflinePlayer(playerName).getUniqueId(), PartyManager.getParty(partyName));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -136,8 +132,8 @@ public final class PartyAPI {
|
|||||||
public static List<OfflinePlayer> getOnlineAndOfflineMembers(Player player) {
|
public static List<OfflinePlayer> getOnlineAndOfflineMembers(Player player) {
|
||||||
List<OfflinePlayer> members = new ArrayList<OfflinePlayer>();
|
List<OfflinePlayer> members = new ArrayList<OfflinePlayer>();
|
||||||
|
|
||||||
for (UUID memberUniqueId : PartyManager.getAllMembers(player).keySet()) {
|
for (String memberName : PartyManager.getAllMembers(player)) {
|
||||||
OfflinePlayer member = mcMMO.p.getServer().getOfflinePlayer(memberUniqueId);
|
OfflinePlayer member = mcMMO.p.getServer().getOfflinePlayer(memberName);
|
||||||
members.add(member);
|
members.add(member);
|
||||||
}
|
}
|
||||||
return members;
|
return members;
|
||||||
@@ -151,20 +147,7 @@ public final class PartyAPI {
|
|||||||
* @param player The player to check
|
* @param player The player to check
|
||||||
* @return all the player names in the player's party
|
* @return all the player names in the player's party
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public static LinkedHashSet<String> getMembers(Player player) {
|
public static LinkedHashSet<String> getMembers(Player player) {
|
||||||
return (LinkedHashSet<String>) PartyManager.getAllMembers(player).values();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a list of all player names and uuids in this player's party.
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param player The player to check
|
|
||||||
* @return all the player names and uuids in the player's party
|
|
||||||
*/
|
|
||||||
public static LinkedHashMap<UUID, String> getMembersMap(Player player) {
|
|
||||||
return PartyManager.getAllMembers(player);
|
return PartyManager.getAllMembers(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,25 +174,4 @@ public final class PartyAPI {
|
|||||||
public static List<Player> getOnlineMembers(Player player) {
|
public static List<Player> getOnlineMembers(Player player) {
|
||||||
return PartyManager.getOnlineMembers(player);
|
return PartyManager.getOnlineMembers(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Check is a certain party has an ally
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @param partyName The name of the party to check
|
|
||||||
* @return true if the party has an ally, false otherwise
|
|
||||||
*/
|
|
||||||
public static boolean hasAlly(String partyName) {
|
|
||||||
return getAllyName(partyName) != null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String getAllyName(String partyName) {
|
|
||||||
Party ally = PartyManager.getParty(partyName).getAlly();
|
|
||||||
if (ally != null) {
|
|
||||||
return ally.getName();
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,93 +0,0 @@
|
|||||||
package com.gmail.nossr50.api;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
|
||||||
|
|
||||||
public final class SkillAPI {
|
|
||||||
private SkillAPI() {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a list of strings with mcMMO's skills
|
|
||||||
* This includes parent and child skills
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @return a list of strings with valid skill names
|
|
||||||
*/
|
|
||||||
public static List<String> getSkills() {
|
|
||||||
return getListFromEnum(Arrays.asList(SkillType.values()));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a list of strings with mcMMO's skills
|
|
||||||
* This only includes parent skills
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @return a list of strings with valid skill names
|
|
||||||
*/
|
|
||||||
public static List<String> getNonChildSkills() {
|
|
||||||
return getListFromEnum(SkillType.NON_CHILD_SKILLS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a list of strings with mcMMO's skills
|
|
||||||
* This only includes child skills
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @return a list of strings with valid skill names
|
|
||||||
*/
|
|
||||||
public static List<String> getChildSkills() {
|
|
||||||
return getListFromEnum(SkillType.CHILD_SKILLS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a list of strings with mcMMO's skills
|
|
||||||
* This only includes combat skills
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @return a list of strings with valid skill names
|
|
||||||
*/
|
|
||||||
public static List<String> getCombatSkills() {
|
|
||||||
return getListFromEnum(SkillType.COMBAT_SKILLS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a list of strings with mcMMO's skills
|
|
||||||
* This only includes gathering skills
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @return a list of strings with valid skill names
|
|
||||||
*/
|
|
||||||
public static List<String> getGatheringSkills() {
|
|
||||||
return getListFromEnum(SkillType.GATHERING_SKILLS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a list of strings with mcMMO's skills
|
|
||||||
* This only includes misc skills
|
|
||||||
* </br>
|
|
||||||
* This function is designed for API usage.
|
|
||||||
*
|
|
||||||
* @return a list of strings with valid skill names
|
|
||||||
*/
|
|
||||||
public static List<String> getMiscSkills() {
|
|
||||||
return getListFromEnum(SkillType.MISC_SKILLS);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static List<String> getListFromEnum(List<SkillType> skillsTypes) {
|
|
||||||
List<String> skills = new ArrayList<String>();
|
|
||||||
|
|
||||||
for (SkillType skillType : skillsTypes) {
|
|
||||||
skills.add(skillType.name());
|
|
||||||
}
|
|
||||||
|
|
||||||
return skills;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package com.gmail.nossr50.api.exceptions;
|
|
||||||
|
|
||||||
public class InvalidFormulaTypeException extends RuntimeException {
|
|
||||||
private static final long serialVersionUID = 3368670229490121886L;
|
|
||||||
|
|
||||||
public InvalidFormulaTypeException() {
|
|
||||||
super("That is not a valid FormulaType.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package com.gmail.nossr50.api.exceptions;
|
|
||||||
|
|
||||||
public class InvalidXPGainReasonException extends RuntimeException {
|
|
||||||
private static final long serialVersionUID = 4427052841957931157L;
|
|
||||||
|
|
||||||
public InvalidXPGainReasonException() {
|
|
||||||
super("That is not a valid XPGainReason.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package com.gmail.nossr50.api.exceptions;
|
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
public class McMMOPlayerNotFoundException extends RuntimeException {
|
|
||||||
private static final long serialVersionUID = 761917904993202836L;
|
|
||||||
|
|
||||||
public McMMOPlayerNotFoundException(Player player) {
|
|
||||||
super("McMMOPlayer object was not found for: " + player.getName() + " " + player.getUniqueId());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
package com.gmail.nossr50.chat;
|
package com.gmail.nossr50.chat;
|
||||||
|
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
import com.gmail.nossr50.datatypes.party.Party;
|
||||||
import com.gmail.nossr50.events.chat.McMMOPartyChatEvent;
|
import com.gmail.nossr50.events.chat.McMMOPartyChatEvent;
|
||||||
import com.gmail.nossr50.runnables.party.PartyChatTask;
|
|
||||||
|
|
||||||
public class PartyChatManager extends ChatManager {
|
public class PartyChatManager extends ChatManager {
|
||||||
private Party party;
|
private Party party;
|
||||||
@@ -25,6 +26,14 @@ public class PartyChatManager extends ChatManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void sendMessage() {
|
protected void sendMessage() {
|
||||||
new PartyChatTask(plugin, party, senderName, displayName, message).runTask(plugin);
|
if (Config.getInstance().getPartyChatColorLeaderName() && senderName.equalsIgnoreCase(party.getLeader())) {
|
||||||
|
message = message.replaceFirst(displayName, ChatColor.GOLD + displayName + ChatColor.RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Player member : party.getOnlineMembers()) {
|
||||||
|
member.sendMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.getLogger().info("[P]<" + party.getName() + ">" + message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,17 +2,19 @@ package com.gmail.nossr50.commands;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
import org.bukkit.command.TabExecutor;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.StringUtil;
|
import org.bukkit.util.StringUtil;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public class KrakenCommand implements TabExecutor {
|
public class KrakenCommand implements TabExecutor {
|
||||||
@@ -29,11 +31,7 @@ public class KrakenCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CommandUtils.hasPlayerDataKey(sender)) {
|
UserManager.getPlayer((Player) sender).getFishingManager().unleashTheKraken();
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
UserManager.getPlayer(sender.getName()).getFishingManager().unleashTheKraken();
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
@@ -42,10 +40,10 @@ public class KrakenCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
String playerName = CommandUtils.getMatchedPlayerName(args[0]);
|
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(args[0], true);
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(playerName);
|
|
||||||
|
|
||||||
if (!CommandUtils.checkPlayerExistence(sender, playerName, mcMMOPlayer)) {
|
if (mcMMOPlayer == null) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Commands.Offline"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,7 +59,7 @@ public class KrakenCommand implements TabExecutor {
|
|||||||
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
List<String> playerNames = CommandUtils.getOnlinePlayerNames(sender);
|
Set<String> playerNames = UserManager.getPlayerNames();
|
||||||
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
||||||
default:
|
default:
|
||||||
return ImmutableList.of();
|
return ImmutableList.of();
|
||||||
|
|||||||
@@ -1,351 +0,0 @@
|
|||||||
package com.gmail.nossr50.commands;
|
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
|
||||||
import java.io.Closeable;
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.io.FileReader;
|
|
||||||
import java.io.FileWriter;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
import org.bukkit.Material;
|
|
||||||
import org.bukkit.command.Command;
|
|
||||||
import org.bukkit.command.CommandExecutor;
|
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
|
||||||
import com.gmail.nossr50.datatypes.skills.ModConfigType;
|
|
||||||
import com.gmail.nossr50.util.Misc;
|
|
||||||
|
|
||||||
public class McImportCommand implements CommandExecutor {
|
|
||||||
int fileAmount;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
|
||||||
switch (args.length) {
|
|
||||||
case 0:
|
|
||||||
importModConfig();
|
|
||||||
return true;
|
|
||||||
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean importModConfig() {
|
|
||||||
String importFilePath = mcMMO.getModDirectory() + File.separator + "import";
|
|
||||||
File importFile = new File(importFilePath, "import.log");
|
|
||||||
mcMMO.p.getLogger().info("Starting import of mod materials...");
|
|
||||||
fileAmount = 0;
|
|
||||||
|
|
||||||
HashMap<ModConfigType, ArrayList<String>> materialNames = new HashMap<ModConfigType, ArrayList<String>>();
|
|
||||||
|
|
||||||
BufferedReader in = null;
|
|
||||||
|
|
||||||
try {
|
|
||||||
// Open the file
|
|
||||||
in = new BufferedReader(new FileReader(importFile));
|
|
||||||
|
|
||||||
String line;
|
|
||||||
String materialName;
|
|
||||||
String modName;
|
|
||||||
|
|
||||||
// While not at the end of the file
|
|
||||||
while ((line = in.readLine()) != null) {
|
|
||||||
String[] split1 = line.split("material ");
|
|
||||||
|
|
||||||
if (split1.length != 2) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
String[] split2 = split1[1].split(" with");
|
|
||||||
|
|
||||||
if (split2.length != 2) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
materialName = split2[0];
|
|
||||||
|
|
||||||
// Categorise each material under a mod config type
|
|
||||||
ModConfigType type = ModConfigType.getModConfigType(materialName);
|
|
||||||
|
|
||||||
if (!materialNames.containsKey(type)) {
|
|
||||||
materialNames.put(type, new ArrayList<String>());
|
|
||||||
}
|
|
||||||
|
|
||||||
materialNames.get(type).add(materialName);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (FileNotFoundException e) {
|
|
||||||
mcMMO.p.getLogger().warning("Could not find " + importFile.getAbsolutePath() + " ! (No such file or directory)");
|
|
||||||
mcMMO.p.getLogger().warning("Copy and paste latest.log to " + importFile.getParentFile().getAbsolutePath() + " and rename it to import.log");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
finally {
|
|
||||||
tryClose(in);
|
|
||||||
}
|
|
||||||
|
|
||||||
createOutput(materialNames);
|
|
||||||
|
|
||||||
mcMMO.p.getLogger().info("Import finished! Created " + fileAmount + " files!");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createOutput(HashMap<ModConfigType, ArrayList<String>> materialNames) {
|
|
||||||
for (ModConfigType modConfigType : materialNames.keySet()) {
|
|
||||||
HashMap<String, ArrayList<String>> materialNamesType = new HashMap<String, ArrayList<String>>();
|
|
||||||
|
|
||||||
for (String materialName : materialNames.get(modConfigType)) {
|
|
||||||
String modName = Misc.getModName(materialName);
|
|
||||||
|
|
||||||
if (!materialNamesType.containsKey(modName)) {
|
|
||||||
materialNamesType.put(modName, new ArrayList<String>());
|
|
||||||
}
|
|
||||||
|
|
||||||
materialNamesType.get(modName).add(materialName);
|
|
||||||
}
|
|
||||||
|
|
||||||
createOutput(modConfigType, materialNamesType);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void tryClose(Closeable c) {
|
|
||||||
if (c == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
c.close();
|
|
||||||
}
|
|
||||||
catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createOutput(ModConfigType modConfigType, HashMap<String, ArrayList<String>> materialNames) {
|
|
||||||
File outputFilePath = new File(mcMMO.getModDirectory() + File.separator + "output");
|
|
||||||
if (!outputFilePath.exists() && !outputFilePath.mkdirs()) {
|
|
||||||
mcMMO.p.getLogger().severe("Could not create output directory! " + outputFilePath.getAbsolutePath());
|
|
||||||
}
|
|
||||||
|
|
||||||
FileWriter out = null;
|
|
||||||
String type = modConfigType.name().toLowerCase();
|
|
||||||
|
|
||||||
for (String modName : materialNames.keySet()) {
|
|
||||||
File outputFile = new File(outputFilePath, modName + "." + type + ".yml");
|
|
||||||
mcMMO.p.getLogger().info("Creating " + outputFile.getName());
|
|
||||||
try {
|
|
||||||
if (outputFile.exists() && !outputFile.delete()) {
|
|
||||||
mcMMO.p.getLogger().severe("Not able to delete old output file! " + outputFile.getAbsolutePath());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!outputFile.createNewFile()) {
|
|
||||||
mcMMO.p.getLogger().severe("Could not create output file! " + outputFile.getAbsolutePath());
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
StringBuilder writer = new StringBuilder();
|
|
||||||
HashMap<String, ArrayList<String>> configSections = getConfigSections(modConfigType, modName, materialNames);
|
|
||||||
|
|
||||||
if (configSections == null) {
|
|
||||||
mcMMO.p.getLogger().severe("Something went wrong!! type is " + type);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Write the file, go through each skill and write all the materials
|
|
||||||
for (String configSection : configSections.keySet()) {
|
|
||||||
if (configSection.equals("UNIDENTIFIED")) {
|
|
||||||
writer.append("# This isn't a valid config section and all materials in this category need to be").append("\r\n");
|
|
||||||
writer.append("# copy and pasted to a valid section of this config file.").append("\r\n");
|
|
||||||
}
|
|
||||||
writer.append(configSection).append(":").append("\r\n");
|
|
||||||
|
|
||||||
for (String line : configSections.get(configSection)) {
|
|
||||||
writer.append(line).append("\r\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
writer.append("\r\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
out = new FileWriter(outputFile);
|
|
||||||
out.write(writer.toString());
|
|
||||||
}
|
|
||||||
catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
finally {
|
|
||||||
tryClose(out);
|
|
||||||
fileAmount++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private HashMap<String, ArrayList<String>> getConfigSections(ModConfigType type, String modName, HashMap<String, ArrayList<String>> materialNames) {
|
|
||||||
switch (type) {
|
|
||||||
case BLOCKS:
|
|
||||||
return getConfigSectionsBlocks(modName, materialNames);
|
|
||||||
case TOOLS:
|
|
||||||
return getConfigSectionsTools(modName, materialNames);
|
|
||||||
case ARMOR:
|
|
||||||
return getConfigSectionsArmor(modName, materialNames);
|
|
||||||
case UNKNOWN:
|
|
||||||
return getConfigSectionsUnknown(modName, materialNames);
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private HashMap<String, ArrayList<String>> getConfigSectionsBlocks(String modName, HashMap<String, ArrayList<String>> materialNames) {
|
|
||||||
HashMap<String, ArrayList<String>> configSections = new HashMap<String, ArrayList<String>>();
|
|
||||||
|
|
||||||
// Go through all the materials and categorise them under a skill
|
|
||||||
for (String materialName : materialNames.get(modName)) {
|
|
||||||
String skillName = "UNIDENTIFIED";
|
|
||||||
if (materialName.contains("ORE")) {
|
|
||||||
skillName = "Mining";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("LOG") || materialName.contains("LEAVES")) {
|
|
||||||
skillName = "Woodcutting";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("GRASS") || materialName.contains("FLOWER") || materialName.contains("CROP")) {
|
|
||||||
skillName = "Herbalism";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("DIRT") || materialName.contains("SAND")) {
|
|
||||||
skillName = "Excavation";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!configSections.containsKey(skillName)) {
|
|
||||||
configSections.put(skillName, new ArrayList<String>());
|
|
||||||
}
|
|
||||||
|
|
||||||
ArrayList<String> skillContents = configSections.get(skillName);
|
|
||||||
skillContents.add(" " + materialName + "|0:");
|
|
||||||
skillContents.add(" " + " " + "XP_Gain: 99");
|
|
||||||
skillContents.add(" " + " " + "Double_Drops_Enabled: true");
|
|
||||||
|
|
||||||
if (skillName.equals("Mining")) {
|
|
||||||
skillContents.add(" " + " " + "Smelting_XP_Gain: 9");
|
|
||||||
}
|
|
||||||
else if (skillName.equals("Woodcutting")) {
|
|
||||||
skillContents.add(" " + " " + "Is_Log: " + materialName.contains("LOG"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return configSections;
|
|
||||||
}
|
|
||||||
|
|
||||||
private HashMap<String, ArrayList<String>> getConfigSectionsTools(String modName, HashMap<String, ArrayList<String>> materialNames) {
|
|
||||||
HashMap<String, ArrayList<String>> configSections = new HashMap<String, ArrayList<String>>();
|
|
||||||
|
|
||||||
// Go through all the materials and categorise them under a tool type
|
|
||||||
for (String materialName : materialNames.get(modName)) {
|
|
||||||
String toolType = "UNIDENTIFIED";
|
|
||||||
if (materialName.contains("PICKAXE")) {
|
|
||||||
toolType = "Pickaxes";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("AXE")) {
|
|
||||||
toolType = "Axes";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("BOW")) {
|
|
||||||
toolType = "Bows";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("HOE")) {
|
|
||||||
toolType = "Hoes";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("SHOVEL") || materialName.contains("SPADE")) {
|
|
||||||
toolType = "Shovels";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("SWORD")) {
|
|
||||||
toolType = "Swords";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!configSections.containsKey(toolType)) {
|
|
||||||
configSections.put(toolType, new ArrayList<String>());
|
|
||||||
}
|
|
||||||
|
|
||||||
ArrayList<String> skillContents = configSections.get(toolType);
|
|
||||||
skillContents.add(" " + materialName + ":");
|
|
||||||
skillContents.add(" " + " " + "XP_Modifier: 1.0");
|
|
||||||
skillContents.add(" " + " " + "Tier: 1");
|
|
||||||
skillContents.add(" " + " " + "Ability_Enabled: true");
|
|
||||||
addRepairableLines(materialName, skillContents);
|
|
||||||
}
|
|
||||||
|
|
||||||
return configSections;
|
|
||||||
}
|
|
||||||
|
|
||||||
private HashMap<String, ArrayList<String>> getConfigSectionsArmor(String modName, HashMap<String, ArrayList<String>> materialNames) {
|
|
||||||
HashMap<String, ArrayList<String>> configSections = new HashMap<String, ArrayList<String>>();
|
|
||||||
|
|
||||||
// Go through all the materials and categorise them under an armor type
|
|
||||||
for (String materialName : materialNames.get(modName)) {
|
|
||||||
String toolType = "UNIDENTIFIED";
|
|
||||||
if (materialName.contains("BOOT") || materialName.contains("SHOE")) {
|
|
||||||
toolType = "Boots";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("CHESTPLATE") || materialName.contains("CHEST")) {
|
|
||||||
toolType = "Chestplates";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("HELM") || materialName.contains("HAT")) {
|
|
||||||
toolType = "Helmets";
|
|
||||||
}
|
|
||||||
else if (materialName.contains("LEGGINGS") || materialName.contains("LEGS") || materialName.contains("PANTS")) {
|
|
||||||
toolType = "Leggings";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!configSections.containsKey(toolType)) {
|
|
||||||
configSections.put(toolType, new ArrayList<String>());
|
|
||||||
}
|
|
||||||
|
|
||||||
ArrayList<String> skillContents = configSections.get(toolType);
|
|
||||||
skillContents.add(" " + materialName + ":");
|
|
||||||
addRepairableLines(materialName, skillContents);
|
|
||||||
}
|
|
||||||
|
|
||||||
return configSections;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void addRepairableLines(String materialName, ArrayList<String> skillContents) {
|
|
||||||
skillContents.add(" " + " " + "Repairable: true");
|
|
||||||
skillContents.add(" " + " " + "Repair_Material: REPAIR_MATERIAL_NAME");
|
|
||||||
skillContents.add(" " + " " + "Repair_Material_Data_Value: 0");
|
|
||||||
skillContents.add(" " + " " + "Repair_Material_Quantity: 9");
|
|
||||||
skillContents.add(" " + " " + "Repair_Material_Pretty_Name: Repair Item Name");
|
|
||||||
skillContents.add(" " + " " + "Repair_MinimumLevel: 0");
|
|
||||||
skillContents.add(" " + " " + "Repair_XpMultiplier: 1.0");
|
|
||||||
|
|
||||||
Material material = Material.matchMaterial(materialName);
|
|
||||||
short durability = (material == null) ? (short) 9999 : material.getMaxDurability();
|
|
||||||
skillContents.add(" " + " " + "Durability: " + ((durability > 0) ? durability : (short) 9999));
|
|
||||||
}
|
|
||||||
|
|
||||||
private HashMap<String, ArrayList<String>> getConfigSectionsUnknown(String modName, HashMap<String, ArrayList<String>> materialNames) {
|
|
||||||
HashMap<String, ArrayList<String>> configSections = new HashMap<String, ArrayList<String>>();
|
|
||||||
|
|
||||||
// Go through all the materials and print them
|
|
||||||
for (String materialName : materialNames.get(modName)) {
|
|
||||||
String configKey = "UNIDENTIFIED";
|
|
||||||
|
|
||||||
if (!configSections.containsKey(configKey)) {
|
|
||||||
configSections.put(configKey, new ArrayList<String>());
|
|
||||||
}
|
|
||||||
|
|
||||||
ArrayList<String> skillContents = configSections.get(configKey);
|
|
||||||
skillContents.add(" " + materialName);
|
|
||||||
}
|
|
||||||
|
|
||||||
return configSections;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,6 @@ package com.gmail.nossr50.commands;
|
|||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
|
|
||||||
@@ -18,13 +17,13 @@ public class McabilityCommand extends ToggleCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void applyCommandAction(McMMOPlayer mcMMOPlayer) {
|
protected void applyCommandAction() {
|
||||||
mcMMOPlayer.getPlayer().sendMessage(LocaleLoader.getString("Commands.Ability." + (mcMMOPlayer.getAbilityUse() ? "Off" : "On")));
|
player.sendMessage(LocaleLoader.getString("Commands.Ability." + (mcMMOPlayer.getAbilityUse() ? "Off" : "On")));
|
||||||
mcMMOPlayer.toggleAbilityUse();
|
mcMMOPlayer.toggleAbilityUse();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void sendSuccessMessage(CommandSender sender, String playerName) {
|
protected void sendSuccessMessage(CommandSender sender) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Ability.Toggle", playerName));
|
sender.sendMessage(LocaleLoader.getString("Commands.Ability.Toggle"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package com.gmail.nossr50.commands;
|
|||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
|
|
||||||
@@ -18,13 +17,13 @@ public class McgodCommand extends ToggleCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void applyCommandAction(McMMOPlayer mcMMOPlayer) {
|
protected void applyCommandAction() {
|
||||||
mcMMOPlayer.getPlayer().sendMessage(LocaleLoader.getString("Commands.GodMode." + (mcMMOPlayer.getGodMode() ? "Disabled" : "Enabled")));
|
player.sendMessage(LocaleLoader.getString("Commands.GodMode." + (mcMMOPlayer.getGodMode() ? "Disabled" : "Enabled")));
|
||||||
mcMMOPlayer.toggleGodMode();
|
mcMMOPlayer.toggleGodMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void sendSuccessMessage(CommandSender sender, String playerName) {
|
protected void sendSuccessMessage(CommandSender sender) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.GodMode.Toggle", playerName));
|
sender.sendMessage(LocaleLoader.getString("Commands.GodMode.Success"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import com.gmail.nossr50.mcMMO;
|
|||||||
import com.gmail.nossr50.commands.party.PartySubcommandType;
|
import com.gmail.nossr50.commands.party.PartySubcommandType;
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
|
import com.gmail.nossr50.util.HolidayManager;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
|
|
||||||
public class McmmoCommand implements CommandExecutor {
|
public class McmmoCommand implements CommandExecutor {
|
||||||
@@ -27,14 +28,11 @@ public class McmmoCommand implements CommandExecutor {
|
|||||||
|
|
||||||
if (Config.getInstance().getDonateMessageEnabled()) {
|
if (Config.getInstance().getDonateMessageEnabled()) {
|
||||||
sender.sendMessage(LocaleLoader.getString("MOTD.Donate"));
|
sender.sendMessage(LocaleLoader.getString("MOTD.Donate"));
|
||||||
sender.sendMessage(ChatColor.GOLD + " - " + ChatColor.GREEN + "tft_02@hotmail.com" + ChatColor.GOLD + " Paypal");
|
sender.sendMessage(ChatColor.GOLD + " - " + ChatColor.GREEN + "gjmcferrin@gmail.com" + ChatColor.GOLD + " Paypal");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Permissions.showversion(sender)) {
|
sender.sendMessage(LocaleLoader.getString("MOTD.Version", mcMMO.p.getDescription().getVersion()));
|
||||||
sender.sendMessage(LocaleLoader.getString("MOTD.Version", mcMMO.p.getDescription().getVersion()));
|
HolidayManager.anniversaryCheck(sender);
|
||||||
}
|
|
||||||
|
|
||||||
mcMMO.getHolidayManager().anniversaryCheck(sender);
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
@@ -45,9 +43,9 @@ public class McmmoCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mcc.Header"));
|
sender.sendMessage(LocaleLoader.getString("Commands.mcc.Header"));
|
||||||
displayGeneralCommands(sender);
|
|
||||||
displayOtherCommands(sender);
|
|
||||||
displayPartyCommands(sender);
|
displayPartyCommands(sender);
|
||||||
|
displayOtherCommands(sender);
|
||||||
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@@ -56,57 +54,55 @@ public class McmmoCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayGeneralCommands(CommandSender sender) {
|
private void displayPartyCommands(CommandSender sender) {
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /mcstats " + LocaleLoader.getString("Commands.Stats"));
|
if (Permissions.party(sender)) {
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /<skill>" + LocaleLoader.getString("Commands.SkillInfo"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Party.Commands"));
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /mctop " + LocaleLoader.getString("Commands.Leaderboards"));
|
sender.sendMessage(" /party create <" + LocaleLoader.getString("Commands.Usage.PartyName") + "> " + LocaleLoader.getString("Commands.Party1"));
|
||||||
|
sender.sendMessage(" /party join <" + LocaleLoader.getString("Commands.Usage.Player") + "> " + LocaleLoader.getString("Commands.Party2"));
|
||||||
|
sender.sendMessage(" /party quit " + LocaleLoader.getString("Commands.Party.Quit"));
|
||||||
|
|
||||||
if (Permissions.inspect(sender)) {
|
if (Permissions.partyChat(sender)) {
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /inspect " + LocaleLoader.getString("Commands.Inspect"));
|
sender.sendMessage(" /party chat " + LocaleLoader.getString("Commands.Party.Toggle"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Permissions.mcability(sender)) {
|
sender.sendMessage(" /party invite <" + LocaleLoader.getString("Commands.Usage.Player") + "> " + LocaleLoader.getString("Commands.Party.Invite"));
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /mcability " + LocaleLoader.getString("Commands.ToggleAbility"));
|
sender.sendMessage(" /party accept " + LocaleLoader.getString("Commands.Party.Accept"));
|
||||||
|
|
||||||
|
if (Permissions.partySubcommand(sender, PartySubcommandType.TELEPORT)) {
|
||||||
|
sender.sendMessage(" /party teleport " + LocaleLoader.getString("Commands.Party.Teleport"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayOtherCommands(CommandSender sender) {
|
private void displayOtherCommands(CommandSender sender) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Other"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Other"));
|
||||||
|
sender.sendMessage(" /mcstats " + LocaleLoader.getString("Commands.Stats"));
|
||||||
|
sender.sendMessage(" /mctop " + LocaleLoader.getString("Commands.Leaderboards"));
|
||||||
|
|
||||||
if (Permissions.skillreset(sender)) {
|
if (Permissions.skillreset(sender)) {
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /skillreset <skill|all> " + LocaleLoader.getString("Commands.Reset"));
|
sender.sendMessage(" /skillreset <skill|all> " + LocaleLoader.getString("Commands.Reset"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Permissions.mmoedit(sender)) {
|
if (Permissions.mcability(sender)) {
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /mmoedit " + LocaleLoader.getString("Commands.mmoedit"));
|
sender.sendMessage(" /mcability " + LocaleLoader.getString("Commands.ToggleAbility"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Permissions.adminChat(sender)) {
|
if (Permissions.adminChat(sender)) {
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /adminchat " + LocaleLoader.getString("Commands.AdminToggle"));
|
sender.sendMessage(" /adminchat " + LocaleLoader.getString("Commands.AdminToggle"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Permissions.inspect(sender)) {
|
||||||
|
sender.sendMessage(" /inspect " + LocaleLoader.getString("Commands.Inspect"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Permissions.mmoedit(sender)) {
|
||||||
|
sender.sendMessage(" /mmoedit " + LocaleLoader.getString("Commands.mmoedit"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Permissions.mcgod(sender)) {
|
if (Permissions.mcgod(sender)) {
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /mcgod " + LocaleLoader.getString("Commands.mcgod"));
|
sender.sendMessage(" /mcgod " + LocaleLoader.getString("Commands.mcgod"));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void displayPartyCommands(CommandSender sender) {
|
sender.sendMessage(" /<skill>" + LocaleLoader.getString("Commands.SkillInfo"));
|
||||||
if (Permissions.party(sender)) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Party.Commands"));
|
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /party create <" + LocaleLoader.getString("Commands.Usage.PartyName") + "> " + LocaleLoader.getString("Commands.Party1"));
|
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /party join <" + LocaleLoader.getString("Commands.Usage.Player") + "> " + LocaleLoader.getString("Commands.Party2"));
|
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /party quit " + LocaleLoader.getString("Commands.Party.Quit"));
|
|
||||||
|
|
||||||
if (Permissions.partyChat(sender)) {
|
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /party chat " + LocaleLoader.getString("Commands.Party.Toggle"));
|
|
||||||
}
|
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /party invite <" + LocaleLoader.getString("Commands.Usage.Player") + "> " + LocaleLoader.getString("Commands.Party.Invite"));
|
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /party accept " + LocaleLoader.getString("Commands.Party.Accept"));
|
|
||||||
|
|
||||||
if (Permissions.partySubcommand(sender, PartySubcommandType.TELEPORT)) {
|
|
||||||
sender.sendMessage(ChatColor.DARK_AQUA + " /party teleport <" + LocaleLoader.getString("Commands.Usage.Player") + "> " + LocaleLoader.getString("Commands.Party.Teleport"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package com.gmail.nossr50.commands;
|
|||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
|
|
||||||
@@ -18,17 +17,17 @@ public class McrefreshCommand extends ToggleCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void applyCommandAction(McMMOPlayer mcMMOPlayer) {
|
protected void applyCommandAction() {
|
||||||
mcMMOPlayer.setRecentlyHurt(0);
|
mcMMOPlayer.setRecentlyHurt(0);
|
||||||
mcMMOPlayer.resetCooldowns();
|
mcMMOPlayer.getProfile().resetCooldowns();
|
||||||
mcMMOPlayer.resetToolPrepMode();
|
mcMMOPlayer.resetToolPrepMode();
|
||||||
mcMMOPlayer.resetAbilityMode();
|
mcMMOPlayer.resetAbilityMode();
|
||||||
|
|
||||||
mcMMOPlayer.getPlayer().sendMessage(LocaleLoader.getString("Ability.Generic.Refresh"));
|
player.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void sendSuccessMessage(CommandSender sender, String playerName) {
|
protected void sendSuccessMessage(CommandSender sender) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mcrefresh.Success", playerName));
|
sender.sendMessage(LocaleLoader.getString("Commands.mcrefresh.Success", player.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package com.gmail.nossr50.commands;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
import org.bukkit.command.TabExecutor;
|
||||||
@@ -12,7 +11,6 @@ import com.gmail.nossr50.config.Config;
|
|||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
import com.gmail.nossr50.util.scoreboards.ScoreboardManager;
|
import com.gmail.nossr50.util.scoreboards.ScoreboardManager;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public class McscoreboardCommand implements TabExecutor {
|
public class McscoreboardCommand implements TabExecutor {
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ import org.bukkit.entity.Player;
|
|||||||
import org.bukkit.util.StringUtil;
|
import org.bukkit.util.StringUtil;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.MobHealthbarType;
|
import com.gmail.nossr50.datatypes.MobHealthbarType;
|
||||||
|
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public class MobhealthCommand implements TabExecutor {
|
public class MobhealthCommand implements TabExecutor {
|
||||||
@@ -37,15 +37,13 @@ public class MobhealthCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CommandUtils.hasPlayerDataKey(sender)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
|
PlayerProfile playerProfile = UserManager.getPlayer((Player) sender).getProfile();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
MobHealthbarType type = MobHealthbarType.valueOf(args[0].toUpperCase().trim());
|
MobHealthbarType type = MobHealthbarType.valueOf(args[0].toUpperCase().trim());
|
||||||
UserManager.getPlayer((Player) sender).getProfile().setMobHealthbarType(type);
|
playerProfile.setMobHealthbarType(type);
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Healthbars.Changed." + type.name()));
|
sender.sendMessage(LocaleLoader.getString("Commands.Healthbars.Changed." + type.name()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,19 +2,24 @@ package com.gmail.nossr50.commands;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
import org.bukkit.command.TabExecutor;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.StringUtil;
|
import org.bukkit.util.StringUtil;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public abstract class ToggleCommand implements TabExecutor {
|
public abstract class ToggleCommand implements TabExecutor {
|
||||||
|
protected McMMOPlayer mcMMOPlayer;
|
||||||
|
protected Player player;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
@@ -28,11 +33,10 @@ public abstract class ToggleCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CommandUtils.hasPlayerDataKey(sender)) {
|
player = (Player) sender;
|
||||||
return true;
|
mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
}
|
|
||||||
|
|
||||||
applyCommandAction(UserManager.getPlayer(sender.getName()));
|
applyCommandAction();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
@@ -41,19 +45,17 @@ public abstract class ToggleCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
String playerName = CommandUtils.getMatchedPlayerName(args[0]);
|
mcMMOPlayer = UserManager.getPlayer(args[0], true);
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(playerName);
|
|
||||||
|
|
||||||
if (!CommandUtils.checkPlayerExistence(sender, playerName, mcMMOPlayer)) {
|
if (mcMMOPlayer == null) {
|
||||||
|
player.sendMessage(LocaleLoader.getString("Commands.Offline"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CommandUtils.isOffline(sender, mcMMOPlayer.getPlayer())) {
|
player = mcMMOPlayer.getPlayer();
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
applyCommandAction(mcMMOPlayer);
|
applyCommandAction();
|
||||||
sendSuccessMessage(sender, playerName);
|
sendSuccessMessage(sender);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -65,7 +67,7 @@ public abstract class ToggleCommand implements TabExecutor {
|
|||||||
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
List<String> playerNames = CommandUtils.getOnlinePlayerNames(sender);
|
Set<String> playerNames = UserManager.getPlayerNames();
|
||||||
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
||||||
default:
|
default:
|
||||||
return ImmutableList.of();
|
return ImmutableList.of();
|
||||||
@@ -74,6 +76,6 @@ public abstract class ToggleCommand implements TabExecutor {
|
|||||||
|
|
||||||
protected abstract boolean hasOtherPermission(CommandSender sender);
|
protected abstract boolean hasOtherPermission(CommandSender sender);
|
||||||
protected abstract boolean hasSelfPermission(CommandSender sender);
|
protected abstract boolean hasSelfPermission(CommandSender sender);
|
||||||
protected abstract void applyCommandAction(McMMOPlayer mcMMOPlayer);
|
protected abstract void applyCommandAction();
|
||||||
protected abstract void sendSuccessMessage(CommandSender sender, String playerName);
|
protected abstract void sendSuccessMessage(CommandSender sender);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,11 @@ import com.gmail.nossr50.util.commands.CommandUtils;
|
|||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public class XprateCommand implements TabExecutor {
|
public class XprateCommand implements TabExecutor {
|
||||||
private final double ORIGINAL_XP_RATE = ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier();
|
private double originalRate;
|
||||||
|
|
||||||
|
public XprateCommand() {
|
||||||
|
originalRate = ExperienceConfig.getInstance().getExperienceGainsGlobalMultiplier();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
@@ -38,7 +42,7 @@ public class XprateCommand implements TabExecutor {
|
|||||||
mcMMO.p.toggleXpEventEnabled();
|
mcMMO.p.toggleXpEventEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
ExperienceConfig.getInstance().setExperienceGainsGlobalMultiplier(ORIGINAL_XP_RATE);
|
ExperienceConfig.getInstance().setExperienceGainsGlobalMultiplier(originalRate);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
|||||||
@@ -12,9 +12,7 @@ import org.bukkit.util.StringUtil;
|
|||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.chat.ChatManager;
|
import com.gmail.nossr50.chat.ChatManager;
|
||||||
import com.gmail.nossr50.chat.ChatManagerFactory;
|
import com.gmail.nossr50.chat.ChatManagerFactory;
|
||||||
import com.gmail.nossr50.config.Config;
|
|
||||||
import com.gmail.nossr50.datatypes.chat.ChatMode;
|
import com.gmail.nossr50.datatypes.chat.ChatMode;
|
||||||
import com.gmail.nossr50.datatypes.party.PartyFeature;
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
@@ -23,8 +21,9 @@ import com.gmail.nossr50.util.player.UserManager;
|
|||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public abstract class ChatCommand implements TabExecutor {
|
public abstract class ChatCommand implements TabExecutor {
|
||||||
private ChatMode chatMode;
|
protected ChatMode chatMode;
|
||||||
protected ChatManager chatManager;
|
protected ChatManager chatManager;
|
||||||
|
private McMMOPlayer mcMMOPlayer;
|
||||||
|
|
||||||
public ChatCommand(ChatMode chatMode) {
|
public ChatCommand(ChatMode chatMode) {
|
||||||
this.chatMode = chatMode;
|
this.chatMode = chatMode;
|
||||||
@@ -33,40 +32,32 @@ public abstract class ChatCommand implements TabExecutor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
McMMOPlayer mcMMOPlayer;
|
|
||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 0:
|
case 0:
|
||||||
if (CommandUtils.noConsoleUsage(sender)) {
|
if (CommandUtils.noConsoleUsage(sender)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CommandUtils.hasPlayerDataKey(sender)) {
|
mcMMOPlayer = UserManager.getPlayer((Player) sender);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
mcMMOPlayer = UserManager.getPlayer(sender.getName());
|
if (chatMode.isEnabled(mcMMOPlayer)) {
|
||||||
|
disableChatMode(sender);
|
||||||
if (mcMMOPlayer.isChatEnabled(chatMode)) {
|
|
||||||
disableChatMode(mcMMOPlayer, sender);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
enableChatMode(mcMMOPlayer, sender);
|
enableChatMode(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
if (!CommandUtils.hasPlayerDataKey(sender)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (CommandUtils.shouldEnableToggle(args[0])) {
|
if (CommandUtils.shouldEnableToggle(args[0])) {
|
||||||
if (CommandUtils.noConsoleUsage(sender)) {
|
if (CommandUtils.noConsoleUsage(sender)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
enableChatMode(UserManager.getPlayer(sender.getName()), sender);
|
mcMMOPlayer = UserManager.getPlayer((Player) sender);
|
||||||
|
|
||||||
|
enableChatMode(sender);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,7 +66,9 @@ public abstract class ChatCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
disableChatMode(UserManager.getPlayer(sender.getName()), sender);
|
mcMMOPlayer = UserManager.getPlayer((Player) sender);
|
||||||
|
|
||||||
|
disableChatMode(sender);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,28 +108,23 @@ public abstract class ChatCommand implements TabExecutor {
|
|||||||
|
|
||||||
protected abstract void handleChatSending(CommandSender sender, String[] args);
|
protected abstract void handleChatSending(CommandSender sender, String[] args);
|
||||||
|
|
||||||
private void enableChatMode(McMMOPlayer mcMMOPlayer, CommandSender sender) {
|
private void enableChatMode(CommandSender sender) {
|
||||||
if (chatMode == ChatMode.PARTY && mcMMOPlayer.getParty() == null) {
|
if (chatMode == ChatMode.PARTY && mcMMOPlayer.getParty() == null) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chatMode == ChatMode.PARTY && (mcMMOPlayer.getParty().getLevel() < Config.getInstance().getPartyFeatureUnlockLevel(PartyFeature.CHAT))) {
|
chatMode.enable(mcMMOPlayer);
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Feature.Disabled.1"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
mcMMOPlayer.enableChat(chatMode);
|
|
||||||
sender.sendMessage(chatMode.getEnabledMessage());
|
sender.sendMessage(chatMode.getEnabledMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void disableChatMode(McMMOPlayer mcMMOPlayer, CommandSender sender) {
|
private void disableChatMode(CommandSender sender) {
|
||||||
if (chatMode == ChatMode.PARTY && mcMMOPlayer.getParty() == null) {
|
if (chatMode == ChatMode.PARTY && mcMMOPlayer.getParty() == null) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mcMMOPlayer.disableChat(chatMode);
|
chatMode.disable(mcMMOPlayer);
|
||||||
sender.sendMessage(chatMode.getDisabledMessage());
|
sender.sendMessage(chatMode.getDisabledMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,8 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.gmail.nossr50.chat.PartyChatManager;
|
import com.gmail.nossr50.chat.PartyChatManager;
|
||||||
import com.gmail.nossr50.config.Config;
|
|
||||||
import com.gmail.nossr50.datatypes.chat.ChatMode;
|
import com.gmail.nossr50.datatypes.chat.ChatMode;
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
import com.gmail.nossr50.datatypes.party.Party;
|
||||||
import com.gmail.nossr50.datatypes.party.PartyFeature;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.party.PartyManager;
|
import com.gmail.nossr50.party.PartyManager;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
@@ -30,11 +28,6 @@ public class PartyChatCommand extends ChatCommand {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (party.getLevel() < Config.getInstance().getPartyFeatureUnlockLevel(PartyFeature.CHAT)) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Feature.Disabled.1"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
message = buildChatMessage(args, 0);
|
message = buildChatMessage(args, 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import com.gmail.nossr50.datatypes.database.DatabaseType;
|
|||||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.runnables.database.DatabaseConversionTask;
|
import com.gmail.nossr50.runnables.database.DatabaseConversionTask;
|
||||||
import com.gmail.nossr50.runnables.player.PlayerProfileLoadingTask;
|
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class ConvertDatabaseCommand implements CommandExecutor {
|
public class ConvertDatabaseCommand implements CommandExecutor {
|
||||||
@@ -56,13 +55,13 @@ public class ConvertDatabaseCommand implements CommandExecutor {
|
|||||||
UserManager.clearAll();
|
UserManager.clearAll();
|
||||||
|
|
||||||
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
||||||
PlayerProfile profile = oldDatabase.loadPlayerProfile(player.getUniqueId());
|
PlayerProfile profile = oldDatabase.loadPlayerProfile(player.getName(), false);
|
||||||
|
|
||||||
if (profile.isLoaded()) {
|
if (profile.isLoaded()) {
|
||||||
mcMMO.getDatabaseManager().saveUser(profile);
|
mcMMO.getDatabaseManager().saveUser(profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
new PlayerProfileLoadingTask(player).runTaskLaterAsynchronously(mcMMO.p, 1); // 1 Tick delay to ensure the player is marked as online before we begin loading
|
UserManager.addUser(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
new DatabaseConversionTask(oldDatabase, sender, previousType.toString(), newType.toString()).runTaskAsynchronously(mcMMO.p);
|
new DatabaseConversionTask(oldDatabase, sender, previousType.toString(), newType.toString()).runTaskAsynchronously(mcMMO.p);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.gmail.nossr50.commands;
|
package com.gmail.nossr50.commands.database;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@@ -11,7 +11,6 @@ import org.bukkit.command.TabExecutor;
|
|||||||
import org.bukkit.util.StringUtil;
|
import org.bukkit.util.StringUtil;
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.commands.database.ConvertDatabaseCommand;
|
|
||||||
import com.gmail.nossr50.commands.experience.ConvertExperienceCommand;
|
import com.gmail.nossr50.commands.experience.ConvertExperienceCommand;
|
||||||
import com.gmail.nossr50.database.DatabaseManagerFactory;
|
import com.gmail.nossr50.database.DatabaseManagerFactory;
|
||||||
import com.gmail.nossr50.datatypes.database.DatabaseType;
|
import com.gmail.nossr50.datatypes.database.DatabaseType;
|
||||||
@@ -24,17 +23,23 @@ public class McconvertCommand implements TabExecutor {
|
|||||||
private static final List<String> DATABASE_TYPES;
|
private static final List<String> DATABASE_TYPES;
|
||||||
private static final List<String> SUBCOMMANDS = ImmutableList.of("database", "experience");
|
private static final List<String> SUBCOMMANDS = ImmutableList.of("database", "experience");
|
||||||
|
|
||||||
private CommandExecutor databaseConvertCommand = new ConvertDatabaseCommand();
|
private CommandExecutor databaseConvertCommand = new ConvertDatabaseCommand();
|
||||||
private CommandExecutor experienceConvertCommand = new ConvertExperienceCommand();
|
private CommandExecutor experienceConvertCommand = new ConvertExperienceCommand();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
ArrayList<String> formulaTypes = new ArrayList<String>();
|
ArrayList<String> formulaTypes = new ArrayList<String>();
|
||||||
ArrayList<String> databaseTypes = new ArrayList<String>();
|
|
||||||
|
|
||||||
for (FormulaType type : FormulaType.values()) {
|
for (FormulaType type : FormulaType.values()) {
|
||||||
formulaTypes.add(type.toString());
|
formulaTypes.add(type.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Collections.sort(formulaTypes);
|
||||||
|
FORMULA_TYPES = ImmutableList.copyOf(formulaTypes);
|
||||||
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
|
ArrayList<String> databaseTypes = new ArrayList<String>();
|
||||||
|
|
||||||
for (DatabaseType type : DatabaseType.values()) {
|
for (DatabaseType type : DatabaseType.values()) {
|
||||||
databaseTypes.add(type.toString());
|
databaseTypes.add(type.toString());
|
||||||
}
|
}
|
||||||
@@ -46,12 +51,8 @@ public class McconvertCommand implements TabExecutor {
|
|||||||
databaseTypes.add(DatabaseManagerFactory.getCustomDatabaseManagerClass().getName());
|
databaseTypes.add(DatabaseManagerFactory.getCustomDatabaseManagerClass().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
Collections.sort(formulaTypes);
|
|
||||||
Collections.sort(databaseTypes);
|
Collections.sort(databaseTypes);
|
||||||
|
|
||||||
FORMULA_TYPES = ImmutableList.copyOf(formulaTypes);
|
|
||||||
DATABASE_TYPES = ImmutableList.copyOf(databaseTypes);
|
DATABASE_TYPES = ImmutableList.copyOf(databaseTypes);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -2,6 +2,7 @@ package com.gmail.nossr50.commands.database;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@@ -10,6 +11,7 @@ import org.bukkit.util.StringUtil;
|
|||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
|
import com.gmail.nossr50.util.Misc;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
@@ -20,9 +22,9 @@ public class McremoveCommand implements TabExecutor {
|
|||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
String playerName = CommandUtils.getMatchedPlayerName(args[0]);
|
String playerName = Misc.getMatchedPlayerName(args[0]);
|
||||||
|
|
||||||
if (UserManager.getOfflinePlayer(playerName) == null && CommandUtils.unloadedProfile(sender, mcMMO.getDatabaseManager().loadPlayerProfile(playerName, false))) {
|
if (UserManager.getPlayer(playerName, true) == null && CommandUtils.unloadedProfile(sender, mcMMO.getDatabaseManager().loadPlayerProfile(playerName, false))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,7 +46,7 @@ public class McremoveCommand implements TabExecutor {
|
|||||||
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
List<String> playerNames = CommandUtils.getOnlinePlayerNames(sender);
|
Set<String> playerNames = UserManager.getPlayerNames();
|
||||||
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
||||||
default:
|
default:
|
||||||
return ImmutableList.of();
|
return ImmutableList.of();
|
||||||
|
|||||||
@@ -15,21 +15,19 @@ import com.google.common.collect.ImmutableList;
|
|||||||
public class MmoshowdbCommand implements TabExecutor {
|
public class MmoshowdbCommand implements TabExecutor {
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
switch (args.length) {
|
if (args.length != 0) {
|
||||||
case 0:
|
return false;
|
||||||
Class<?> clazz = DatabaseManagerFactory.getCustomDatabaseManagerClass();
|
|
||||||
|
|
||||||
if (clazz != null) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mmoshowdb", clazz.getName()));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mmoshowdb", (Config.getInstance().getUseMySQL() ? "sql" : "flatfile")));
|
|
||||||
return true;
|
|
||||||
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Class<?> clazz = DatabaseManagerFactory.getCustomDatabaseManagerClass();
|
||||||
|
|
||||||
|
if (clazz != null) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Commands.mmoshowdb", clazz.getName()));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Commands.mmoshowdb", (Config.getInstance().getUseMySQL() ? "sql" : "flatfile")));
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
package com.gmail.nossr50.commands.experience;
|
package com.gmail.nossr50.commands.experience;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
import com.gmail.nossr50.datatypes.skills.XPGainReason;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.EventUtils;
|
import com.gmail.nossr50.util.EventUtils;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
@@ -22,25 +19,24 @@ public class AddlevelsCommand extends ExperienceCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleCommand(Player player, PlayerProfile profile, SkillType skill, int value) {
|
protected void handleCommand(SkillType skill) {
|
||||||
float xpRemoved = profile.getSkillXpLevelRaw(skill);
|
float xpRemoved = profile.getSkillXpLevelRaw(skill);
|
||||||
profile.addLevels(skill, value);
|
profile.addLevels(skill, value);
|
||||||
|
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
profile.scheduleAsyncSave();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventUtils.handleLevelChangeEvent(player, skill, value, xpRemoved, true, XPGainReason.COMMAND);
|
EventUtils.handleLevelChangeEvent(player, skill, value, xpRemoved, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handlePlayerMessageAll(Player player, int value) {
|
protected void handlePlayerMessageAll() {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardAll.1", value));
|
player.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardAll.1", value));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handlePlayerMessageSkill(Player player, int value, SkillType skill) {
|
protected void handlePlayerMessageSkill() {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardSkill.1", value, skill.getName()));
|
player.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardSkill.1", value, skill.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
package com.gmail.nossr50.commands.experience;
|
package com.gmail.nossr50.commands.experience;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
import com.gmail.nossr50.datatypes.skills.XPGainReason;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
|
||||||
|
|
||||||
public class AddxpCommand extends ExperienceCommand {
|
public class AddxpCommand extends ExperienceCommand {
|
||||||
@Override
|
@Override
|
||||||
@@ -22,23 +18,22 @@ public class AddxpCommand extends ExperienceCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleCommand(Player player, PlayerProfile profile, SkillType skill, int value) {
|
protected void handleCommand(SkillType skill) {
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
UserManager.getPlayer(player).applyXpGain(skill, value, XPGainReason.COMMAND);
|
mcMMOPlayer.applyXpGain(skill, value);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
profile.addXp(skill, value);
|
profile.addExperience(skill, value);
|
||||||
profile.scheduleAsyncSave();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handlePlayerMessageAll(Player player, int value) {
|
protected void handlePlayerMessageAll() {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.addxp.AwardAll", value));
|
player.sendMessage(LocaleLoader.getString("Commands.addxp.AwardAll", value));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handlePlayerMessageSkill(Player player, int value, SkillType skill) {
|
protected void handlePlayerMessageSkill() {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.addxp.AwardSkill", value, skill.getName()));
|
player.sendMessage(LocaleLoader.getString("Commands.addxp.AwardSkill", value, skill.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import com.gmail.nossr50.mcMMO;
|
|||||||
import com.gmail.nossr50.datatypes.experience.FormulaType;
|
import com.gmail.nossr50.datatypes.experience.FormulaType;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.runnables.database.FormulaConversionTask;
|
import com.gmail.nossr50.runnables.database.FormulaConversionTask;
|
||||||
import com.gmail.nossr50.runnables.player.PlayerProfileLoadingTask;
|
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class ConvertExperienceCommand implements CommandExecutor {
|
public class ConvertExperienceCommand implements CommandExecutor {
|
||||||
@@ -38,7 +37,7 @@ public class ConvertExperienceCommand implements CommandExecutor {
|
|||||||
new FormulaConversionTask(sender, newType).runTaskLater(mcMMO.p, 1);
|
new FormulaConversionTask(sender, newType).runTaskLater(mcMMO.p, 1);
|
||||||
|
|
||||||
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
||||||
new PlayerProfileLoadingTask(player).runTaskLaterAsynchronously(mcMMO.p, 1); // 1 Tick delay to ensure the player is marked as online before we begin loading
|
UserManager.addUser(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.gmail.nossr50.commands.experience;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@@ -14,16 +15,23 @@ import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|||||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
|
import com.gmail.nossr50.util.Misc;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public abstract class ExperienceCommand implements TabExecutor {
|
public abstract class ExperienceCommand implements TabExecutor {
|
||||||
|
protected McMMOPlayer mcMMOPlayer;
|
||||||
|
protected Player player;
|
||||||
|
protected PlayerProfile profile;
|
||||||
|
|
||||||
|
protected boolean allSkills;
|
||||||
|
protected SkillType skill;
|
||||||
|
protected int value;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
SkillType skill;
|
|
||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 2:
|
case 2:
|
||||||
if (CommandUtils.noConsoleUsage(sender)) {
|
if (CommandUtils.noConsoleUsage(sender)) {
|
||||||
@@ -39,13 +47,12 @@ public abstract class ExperienceCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
skill = SkillType.getSkill(args[0]);
|
player = (Player) sender;
|
||||||
|
mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
|
profile = mcMMOPlayer.getProfile();
|
||||||
|
|
||||||
if (args[1].equalsIgnoreCase("all")) {
|
editValues();
|
||||||
skill = null;
|
cleanUp();
|
||||||
}
|
|
||||||
|
|
||||||
editValues((Player) sender, UserManager.getPlayer(sender.getName()).getProfile(), skill, Integer.parseInt(args[1]));
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
@@ -58,32 +65,28 @@ public abstract class ExperienceCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
skill = SkillType.getSkill(args[1]);
|
String playerName = Misc.getMatchedPlayerName(args[0]);
|
||||||
|
mcMMOPlayer = UserManager.getPlayer(playerName, true);
|
||||||
if (args[1].equalsIgnoreCase("all")) {
|
|
||||||
skill = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
int value = Integer.parseInt(args[2]);
|
|
||||||
|
|
||||||
String playerName = CommandUtils.getMatchedPlayerName(args[0]);
|
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getOfflinePlayer(playerName);
|
|
||||||
|
|
||||||
// If the mcMMOPlayer doesn't exist, create a temporary profile and check if it's present in the database. If it's not, abort the process.
|
// If the mcMMOPlayer doesn't exist, create a temporary profile and check if it's present in the database. If it's not, abort the process.
|
||||||
if (mcMMOPlayer == null) {
|
if (mcMMOPlayer == null) {
|
||||||
PlayerProfile profile = mcMMO.getDatabaseManager().loadPlayerProfile(playerName, false);
|
profile = mcMMO.getDatabaseManager().loadPlayerProfile(playerName, false);
|
||||||
|
|
||||||
if (CommandUtils.unloadedProfile(sender, profile)) {
|
if (CommandUtils.unloadedProfile(sender, profile)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
editValues(null, profile, skill, value);
|
editValues();
|
||||||
|
profile.save(); // Since this is a temporary profile, we save it here.
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
editValues(mcMMOPlayer.getPlayer(), mcMMOPlayer.getProfile(), skill, value);
|
profile = mcMMOPlayer.getProfile();
|
||||||
|
player = mcMMOPlayer.getPlayer();
|
||||||
|
editValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSenderMessage(sender, playerName, skill);
|
handleSenderMessage(sender, playerName);
|
||||||
|
cleanUp();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -95,7 +98,7 @@ public abstract class ExperienceCommand implements TabExecutor {
|
|||||||
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
List<String> playerNames = CommandUtils.getOnlinePlayerNames(sender);
|
Set<String> playerNames = UserManager.getPlayerNames();
|
||||||
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
||||||
case 2:
|
case 2:
|
||||||
return StringUtil.copyPartialMatches(args[1], SkillType.SKILL_NAMES, new ArrayList<String>(SkillType.SKILL_NAMES.size()));
|
return StringUtil.copyPartialMatches(args[1], SkillType.SKILL_NAMES, new ArrayList<String>(SkillType.SKILL_NAMES.size()));
|
||||||
@@ -106,16 +109,42 @@ public abstract class ExperienceCommand implements TabExecutor {
|
|||||||
|
|
||||||
protected abstract boolean permissionsCheckSelf(CommandSender sender);
|
protected abstract boolean permissionsCheckSelf(CommandSender sender);
|
||||||
protected abstract boolean permissionsCheckOthers(CommandSender sender);
|
protected abstract boolean permissionsCheckOthers(CommandSender sender);
|
||||||
protected abstract void handleCommand(Player player, PlayerProfile profile, SkillType skill, int value);
|
protected abstract void handleCommand(SkillType skill);
|
||||||
protected abstract void handlePlayerMessageAll(Player player, int value);
|
protected abstract void handlePlayerMessageAll();
|
||||||
protected abstract void handlePlayerMessageSkill(Player player, int value, SkillType skill);
|
protected abstract void handlePlayerMessageSkill();
|
||||||
|
|
||||||
private boolean validateArguments(CommandSender sender, String skillName, String value) {
|
private boolean validateArguments(CommandSender sender, String skillName, String value) {
|
||||||
return !(CommandUtils.isInvalidInteger(sender, value) || (!skillName.equalsIgnoreCase("all") && CommandUtils.isInvalidSkill(sender, skillName)));
|
if (isInvalidInteger(sender, value) || isInvalidSkill(sender, skillName)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static void handleSenderMessage(CommandSender sender, String playerName, SkillType skill) {
|
private boolean isInvalidInteger(CommandSender sender, String value) {
|
||||||
if (skill == null) {
|
if (CommandUtils.isInvalidInteger(sender, value)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.value = Integer.parseInt(value);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected boolean isInvalidSkill(CommandSender sender, String skillName) {
|
||||||
|
if (skillName.equalsIgnoreCase("all")) {
|
||||||
|
allSkills = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (CommandUtils.isInvalidSkill(sender, skillName)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
skill = SkillType.getSkill(skillName);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void handleSenderMessage(CommandSender sender, String playerName) {
|
||||||
|
if (allSkills) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardAll.2", playerName));
|
sender.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardAll.2", playerName));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -123,22 +152,27 @@ public abstract class ExperienceCommand implements TabExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void editValues(Player player, PlayerProfile profile, SkillType skill, int value) {
|
protected void editValues() {
|
||||||
if (skill == null) {
|
if (allSkills) {
|
||||||
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
for (SkillType skillType : SkillType.values()) {
|
||||||
handleCommand(player, profile, skillType, value);
|
handleCommand(skillType);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
handlePlayerMessageAll(player, value);
|
handlePlayerMessageAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
handleCommand(player, profile, skill, value);
|
handleCommand(skill);
|
||||||
|
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
handlePlayerMessageSkill(player, value, skill);
|
handlePlayerMessageSkill();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void cleanUp() {
|
||||||
|
allSkills = false;
|
||||||
|
player = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
package com.gmail.nossr50.commands.experience;
|
package com.gmail.nossr50.commands.experience;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
import com.gmail.nossr50.datatypes.skills.XPGainReason;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.EventUtils;
|
import com.gmail.nossr50.util.EventUtils;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
@@ -22,31 +19,26 @@ public class MmoeditCommand extends ExperienceCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleCommand(Player player, PlayerProfile profile, SkillType skill, int value) {
|
protected void handleCommand(SkillType skill) {
|
||||||
int skillLevel = profile.getSkillLevel(skill);
|
int skillLevel = profile.getSkillLevel(skill);
|
||||||
float xpRemoved = profile.getSkillXpLevelRaw(skill);
|
float xpRemoved = profile.getSkillXpLevelRaw(skill);
|
||||||
|
|
||||||
profile.modifySkill(skill, value);
|
profile.modifySkill(skill, value);
|
||||||
|
|
||||||
if (player == null) {
|
if (player == null || value == skillLevel) {
|
||||||
profile.scheduleAsyncSave();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value == skillLevel) {
|
EventUtils.handleLevelChangeEvent(player, skill, value, xpRemoved, value > skillLevel);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
EventUtils.handleLevelChangeEvent(player, skill, value, xpRemoved, value > skillLevel, XPGainReason.COMMAND);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handlePlayerMessageAll(Player player, int value) {
|
protected void handlePlayerMessageAll() {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.mmoedit.AllSkills.1", value));
|
player.sendMessage(LocaleLoader.getString("Commands.mmoedit.AllSkills.1", value));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handlePlayerMessageSkill(Player player, int value, SkillType skill) {
|
protected void handlePlayerMessageSkill() {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.1", skill.getName(), value));
|
player.sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.1", skill.getName(), value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,88 +1,83 @@
|
|||||||
package com.gmail.nossr50.commands.experience;
|
package com.gmail.nossr50.commands.experience;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.StringUtil;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|
||||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
import com.gmail.nossr50.datatypes.skills.XPGainReason;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.EventUtils;
|
import com.gmail.nossr50.util.EventUtils;
|
||||||
|
import com.gmail.nossr50.util.Misc;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
public class SkillresetCommand extends ExperienceCommand {
|
||||||
|
private CommandSender sender;
|
||||||
|
private Command command;
|
||||||
|
private int argsLength;
|
||||||
|
|
||||||
/**
|
|
||||||
* This class mirrors the structure of ExperienceCommand, except the
|
|
||||||
* value/quantity argument is removed.
|
|
||||||
*/
|
|
||||||
public class SkillresetCommand implements TabExecutor {
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
|
this.command = command;
|
||||||
|
this.sender = sender;
|
||||||
|
argsLength = args.length;
|
||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
if (CommandUtils.noConsoleUsage(sender)) {
|
if (CommandUtils.noConsoleUsage(sender)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!permissionsCheckSelf(sender)) {
|
if (!Permissions.skillreset(sender)) {
|
||||||
sender.sendMessage(command.getPermissionMessage());
|
sender.sendMessage(command.getPermissionMessage());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!validateArguments(sender, args[0])) {
|
if (isInvalidSkill(sender, args[0])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
editValues((Player) sender, UserManager.getPlayer(sender.getName()).getProfile(), SkillType.getSkill(args[0]));
|
player = (Player) sender;
|
||||||
|
mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
|
profile = mcMMOPlayer.getProfile();
|
||||||
|
|
||||||
|
editValues();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if (!permissionsCheckOthers(sender)) {
|
if (!Permissions.skillresetOthers(sender)) {
|
||||||
sender.sendMessage(command.getPermissionMessage());
|
sender.sendMessage(command.getPermissionMessage());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!validateArguments(sender, args[1])) {
|
if (isInvalidSkill(sender, args[1])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
SkillType skill;
|
String playerName = Misc.getMatchedPlayerName(args[0]);
|
||||||
if (args[1].equalsIgnoreCase("all")) {
|
mcMMOPlayer = UserManager.getPlayer(playerName, true);
|
||||||
skill = null;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
skill = SkillType.getSkill(args[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
String playerName = CommandUtils.getMatchedPlayerName(args[0]);
|
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getOfflinePlayer(playerName);
|
|
||||||
|
|
||||||
// If the mcMMOPlayer doesn't exist, create a temporary profile and check if it's present in the database. If it's not, abort the process.
|
// If the mcMMOPlayer doesn't exist, create a temporary profile and check if it's present in the database. If it's not, abort the process.
|
||||||
if (mcMMOPlayer == null) {
|
if (mcMMOPlayer == null) {
|
||||||
PlayerProfile profile = mcMMO.getDatabaseManager().loadPlayerProfile(playerName, false);
|
profile = mcMMO.getDatabaseManager().loadPlayerProfile(playerName, false);
|
||||||
|
|
||||||
if (CommandUtils.unloadedProfile(sender, profile)) {
|
if (CommandUtils.unloadedProfile(sender, profile)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
editValues(null, profile, skill);
|
editValues();
|
||||||
|
profile.save(); // Since this is a temporary profile, we save it here.
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
editValues(mcMMOPlayer.getPlayer(), mcMMOPlayer.getProfile(), skill);
|
profile = mcMMOPlayer.getProfile();
|
||||||
|
player = mcMMOPlayer.getPlayer();
|
||||||
|
|
||||||
|
editValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSenderMessage(sender, playerName, skill);
|
handleSenderMessage(sender, playerName);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -91,77 +86,41 @@ public class SkillresetCommand implements TabExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
protected boolean permissionsCheckSelf(CommandSender sender) {
|
||||||
switch (args.length) {
|
return false;
|
||||||
case 1:
|
|
||||||
List<String> playerNames = CommandUtils.getOnlinePlayerNames(sender);
|
|
||||||
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
|
||||||
case 2:
|
|
||||||
return StringUtil.copyPartialMatches(args[1], SkillType.SKILL_NAMES, new ArrayList<String>(SkillType.SKILL_NAMES.size()));
|
|
||||||
default:
|
|
||||||
return ImmutableList.of();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void handleCommand(Player player, PlayerProfile profile, SkillType skill) {
|
@Override
|
||||||
|
protected boolean permissionsCheckOthers(CommandSender sender) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void handleCommand(SkillType skill) {
|
||||||
|
if (argsLength == 1 && !Permissions.skillreset(sender, skill) || (argsLength == 2 && !Permissions.skillresetOthers(sender, skill))) {
|
||||||
|
sender.sendMessage(command.getPermissionMessage());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int levelsRemoved = profile.getSkillLevel(skill);
|
int levelsRemoved = profile.getSkillLevel(skill);
|
||||||
float xpRemoved = profile.getSkillXpLevelRaw(skill);
|
float xpRemoved = profile.getSkillXpLevelRaw(skill);
|
||||||
|
|
||||||
profile.modifySkill(skill, 0);
|
profile.modifySkill(skill, 0);
|
||||||
|
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
profile.scheduleAsyncSave();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventUtils.handleLevelChangeEvent(player, skill, levelsRemoved, xpRemoved, false, XPGainReason.COMMAND);
|
EventUtils.handleLevelChangeEvent(player, skill, levelsRemoved, xpRemoved, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean permissionsCheckSelf(CommandSender sender) {
|
@Override
|
||||||
return Permissions.skillreset(sender);
|
protected void handlePlayerMessageAll() {
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean permissionsCheckOthers(CommandSender sender) {
|
|
||||||
return Permissions.skillresetOthers(sender);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void handlePlayerMessageAll(Player player) {
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Reset.All"));
|
player.sendMessage(LocaleLoader.getString("Commands.Reset.All"));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void handlePlayerMessageSkill(Player player, SkillType skill) {
|
@Override
|
||||||
|
protected void handlePlayerMessageSkill() {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Reset.Single", skill.getName()));
|
player.sendMessage(LocaleLoader.getString("Commands.Reset.Single", skill.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean validateArguments(CommandSender sender, String skillName) {
|
|
||||||
return !(CommandUtils.isInvalidSkill(sender, skillName) && !skillName.equalsIgnoreCase("all"));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static void handleSenderMessage(CommandSender sender, String playerName, SkillType skill) {
|
|
||||||
if (skill == null) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardAll.2", playerName));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardSkill.2", skill.getName(), playerName));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void editValues(Player player, PlayerProfile profile, SkillType skill) {
|
|
||||||
if (skill == null) {
|
|
||||||
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
|
||||||
handleCommand(player, profile, skillType);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player != null) {
|
|
||||||
handlePlayerMessageAll(player);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
handleCommand(player, profile, skill);
|
|
||||||
|
|
||||||
if (player != null) {
|
|
||||||
handlePlayerMessageSkill(player, skill);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package com.gmail.nossr50.commands.hardcore;
|
package com.gmail.nossr50.commands.hardcore;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
@@ -10,18 +8,18 @@ import com.gmail.nossr50.util.Permissions;
|
|||||||
|
|
||||||
public class HardcoreCommand extends HardcoreModeCommand {
|
public class HardcoreCommand extends HardcoreModeCommand {
|
||||||
@Override
|
@Override
|
||||||
protected boolean checkTogglePermissions(CommandSender sender) {
|
protected boolean checkTogglePermissions() {
|
||||||
return Permissions.hardcoreToggle(sender);
|
return Permissions.hardcoreToggle(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean checkModifyPermissions(CommandSender sender) {
|
protected boolean checkModifyPermissions() {
|
||||||
return Permissions.hardcoreModify(sender);
|
return Permissions.hardcoreModify(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean checkEnabled(SkillType skill) {
|
protected boolean checkEnabled(String skill) {
|
||||||
if (skill == null) {
|
if (skill.equalsIgnoreCase("ALL")) {
|
||||||
for (SkillType skillType : SkillType.values()) {
|
for (SkillType skillType : SkillType.values()) {
|
||||||
if (!skillType.getHardcoreStatLossEnabled()) {
|
if (!skillType.getHardcoreStatLossEnabled()) {
|
||||||
return false;
|
return false;
|
||||||
@@ -31,35 +29,35 @@ public class HardcoreCommand extends HardcoreModeCommand {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return skill.getHardcoreStatLossEnabled();
|
return SkillType.getSkill(skill).getHardcoreStatLossEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void enable(SkillType skill) {
|
protected void enable(String skill) {
|
||||||
toggle(true, skill);
|
toggle(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void disable(SkillType skill) {
|
protected void disable(String skill) {
|
||||||
toggle(false, skill);
|
toggle(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void modify(CommandSender sender, double newPercentage) {
|
protected void modify() {
|
||||||
Config.getInstance().setHardcoreDeathStatPenaltyPercentage(newPercentage);
|
Config.getInstance().setHardcoreDeathStatPenaltyPercentage(newPercent);
|
||||||
sender.sendMessage(LocaleLoader.getString("Hardcore.DeathStatLoss.PercentageChanged", percent.format(newPercentage / 100.0D)));
|
sender.sendMessage(LocaleLoader.getString("Hardcore.DeathStatLoss.PercentageChanged", percent.format(newPercent / 100D)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void toggle(boolean enable, SkillType skill) {
|
private void toggle(boolean enable) {
|
||||||
if (skill == null) {
|
if (skill.equalsIgnoreCase("ALL")) {
|
||||||
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
||||||
skillType.setHardcoreStatLossEnabled(enable);
|
skillType.setHardcoreStatLossEnabled(enable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skill.setHardcoreStatLossEnabled(enable);
|
SkillType.getSkill(skill).setHardcoreStatLossEnabled(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
mcMMO.p.getServer().broadcastMessage(LocaleLoader.getString("Hardcore.Mode." + (enable ? "Enabled" : "Disabled"), LocaleLoader.getString("Hardcore.DeathStatLoss.Name"), (skill == null ? "all skills" : skill.getName())));
|
mcMMO.p.getServer().broadcastMessage(LocaleLoader.getString("Hardcore.Mode." + (enable ? "Enabled" : "Disabled"), LocaleLoader.getString("Hardcore.DeathStatLoss.Name"), skill));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -17,22 +17,31 @@ import com.gmail.nossr50.util.commands.CommandUtils;
|
|||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public abstract class HardcoreModeCommand implements TabExecutor {
|
public abstract class HardcoreModeCommand implements TabExecutor {
|
||||||
protected final DecimalFormat percent = new DecimalFormat("##0.00%");
|
protected CommandSender sender;
|
||||||
|
protected double newPercent;
|
||||||
|
protected DecimalFormat percent;
|
||||||
|
protected String skill;
|
||||||
|
|
||||||
|
public HardcoreModeCommand() {
|
||||||
|
percent = new DecimalFormat("##0.00%");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 0:
|
case 0:
|
||||||
if (!checkTogglePermissions(sender)) {
|
this.sender = sender;
|
||||||
|
|
||||||
|
if (!checkTogglePermissions()) {
|
||||||
sender.sendMessage(command.getPermissionMessage());
|
sender.sendMessage(command.getPermissionMessage());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checkEnabled(null)) {
|
if (checkEnabled("ALL")) {
|
||||||
disable(null);
|
disable("ALL");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
enable(null);
|
enable("ALL");
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -44,7 +53,7 @@ public abstract class HardcoreModeCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
enable(null);
|
enable("ALL");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,11 +63,11 @@ public abstract class HardcoreModeCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
disable(null);
|
disable("ALL");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CommandUtils.isInvalidDouble(sender, args[0])) {
|
if (isInvalidPercentage(sender, args[0])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,20 +76,16 @@ public abstract class HardcoreModeCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
modify(sender, Double.parseDouble(args[0]));
|
modify();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if (CommandUtils.isInvalidSkill(sender, args[0])) {
|
if (!args[0].equalsIgnoreCase("ALL") && CommandUtils.isChildSkill(sender, SkillType.getSkill(args[0]))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
SkillType skill = SkillType.getSkill(args[0]);
|
skill = args[0];
|
||||||
|
|
||||||
if (!CommandUtils.isChildSkill(sender, skill)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (CommandUtils.shouldEnableToggle(args[1])) {
|
if (CommandUtils.shouldEnableToggle(args[1])) {
|
||||||
if (!Permissions.hardcoreToggle(sender)) {
|
if (!Permissions.hardcoreToggle(sender)) {
|
||||||
@@ -98,7 +103,7 @@ public abstract class HardcoreModeCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
enable(skill);
|
disable(skill);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,10 +128,19 @@ public abstract class HardcoreModeCommand implements TabExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract boolean checkTogglePermissions(CommandSender sender);
|
protected abstract boolean checkTogglePermissions();
|
||||||
protected abstract boolean checkModifyPermissions(CommandSender sender);
|
protected abstract boolean checkModifyPermissions();
|
||||||
protected abstract boolean checkEnabled(SkillType skill);
|
protected abstract boolean checkEnabled(String skill);
|
||||||
protected abstract void enable(SkillType skill);
|
protected abstract void enable(String skill);
|
||||||
protected abstract void disable(SkillType skill);
|
protected abstract void disable(String skill);
|
||||||
protected abstract void modify(CommandSender sender, double newPercentage);
|
protected abstract void modify();
|
||||||
|
|
||||||
|
private boolean isInvalidPercentage(CommandSender sender, String value) {
|
||||||
|
if (CommandUtils.isInvalidDouble(sender, value)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
newPercent = Double.parseDouble(value);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package com.gmail.nossr50.commands.hardcore;
|
package com.gmail.nossr50.commands.hardcore;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
@@ -10,18 +8,18 @@ import com.gmail.nossr50.util.Permissions;
|
|||||||
|
|
||||||
public class VampirismCommand extends HardcoreModeCommand {
|
public class VampirismCommand extends HardcoreModeCommand {
|
||||||
@Override
|
@Override
|
||||||
protected boolean checkTogglePermissions(CommandSender sender) {
|
protected boolean checkTogglePermissions() {
|
||||||
return Permissions.vampirismToggle(sender);
|
return Permissions.vampirismToggle(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean checkModifyPermissions(CommandSender sender) {
|
protected boolean checkModifyPermissions() {
|
||||||
return Permissions.vampirismModify(sender);
|
return Permissions.vampirismModify(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean checkEnabled(SkillType skill) {
|
protected boolean checkEnabled(String skill) {
|
||||||
if (skill == null) {
|
if (skill.equalsIgnoreCase("ALL")) {
|
||||||
for (SkillType skillType : SkillType.values()) {
|
for (SkillType skillType : SkillType.values()) {
|
||||||
if (!skillType.getHardcoreVampirismEnabled()) {
|
if (!skillType.getHardcoreVampirismEnabled()) {
|
||||||
return false;
|
return false;
|
||||||
@@ -31,35 +29,35 @@ public class VampirismCommand extends HardcoreModeCommand {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return skill.getHardcoreVampirismEnabled();
|
return SkillType.getSkill(skill).getHardcoreVampirismEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void enable(SkillType skill) {
|
protected void enable(String skill) {
|
||||||
toggle(true, skill);
|
toggle(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void disable(SkillType skill) {
|
protected void disable(String skill) {
|
||||||
toggle(false, skill);
|
toggle(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void modify(CommandSender sender, double newPercentage) {
|
protected void modify() {
|
||||||
Config.getInstance().setHardcoreVampirismStatLeechPercentage(newPercentage);
|
Config.getInstance().setHardcoreVampirismStatLeechPercentage(newPercent);
|
||||||
sender.sendMessage(LocaleLoader.getString("Hardcore.Vampirism.PercentageChanged", percent.format(newPercentage / 100.0D)));
|
sender.sendMessage(LocaleLoader.getString("Hardcore.Vampirism.PercentageChanged", percent.format(newPercent / 100D)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void toggle(boolean enable, SkillType skill) {
|
private void toggle(boolean enable) {
|
||||||
if (skill == null) {
|
if (skill.equalsIgnoreCase("ALL")) {
|
||||||
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
||||||
skillType.setHardcoreVampirismEnabled(enable);
|
skillType.setHardcoreVampirismEnabled(enable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skill.setHardcoreVampirismEnabled(enable);
|
SkillType.getSkill(skill).setHardcoreVampirismEnabled(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
mcMMO.p.getServer().broadcastMessage(LocaleLoader.getString("Hardcore.Mode." + (enable ? "Enabled" : "Disabled"), LocaleLoader.getString("Hardcore.Vampirism.Name"), (skill == null ? "all skills" : skill)));
|
mcMMO.p.getServer().broadcastMessage(LocaleLoader.getString("Hardcore.Mode." + (enable ? "Enabled" : "Disabled"), LocaleLoader.getString("Hardcore.Vampirism.Name"), skill));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,14 @@
|
|||||||
package com.gmail.nossr50.commands.party;
|
package com.gmail.nossr50.commands.party;
|
||||||
|
|
||||||
import org.bukkit.OfflinePlayer;
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.gmail.nossr50.mcMMO;
|
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
import com.gmail.nossr50.datatypes.party.Party;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.party.PartyManager;
|
import com.gmail.nossr50.party.PartyManager;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.Misc;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class PartyChangeOwnerCommand implements CommandExecutor {
|
public class PartyChangeOwnerCommand implements CommandExecutor {
|
||||||
@@ -19,15 +17,14 @@ public class PartyChangeOwnerCommand implements CommandExecutor {
|
|||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 2:
|
case 2:
|
||||||
Party playerParty = UserManager.getPlayer((Player) sender).getParty();
|
Party playerParty = UserManager.getPlayer((Player) sender).getParty();
|
||||||
String targetName = CommandUtils.getMatchedPlayerName(args[1]);
|
String targetName = Misc.getMatchedPlayerName(args[1]);
|
||||||
OfflinePlayer target = mcMMO.p.getServer().getOfflinePlayer(targetName);
|
|
||||||
|
|
||||||
if (!playerParty.hasMember(target.getUniqueId())) {
|
if (!playerParty.getMembers().contains(targetName)) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.NotInYourParty", targetName));
|
sender.sendMessage(LocaleLoader.getString("Party.NotInYourParty", targetName));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
PartyManager.setPartyLeader(target.getUniqueId(), playerParty);
|
PartyManager.setPartyLeader(targetName, playerParty);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -10,22 +10,24 @@ import com.gmail.nossr50.locale.LocaleLoader;
|
|||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class PartyChangePasswordCommand implements CommandExecutor {
|
public class PartyChangePasswordCommand implements CommandExecutor {
|
||||||
|
private Party playerParty;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
Party party = UserManager.getPlayer((Player) sender).getParty();
|
playerParty = UserManager.getPlayer((Player) sender).getParty();
|
||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
unprotectParty(party, sender);
|
unprotectParty(sender);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if (args[1].equalsIgnoreCase("clear") || args[1].equalsIgnoreCase("reset")) {
|
if (args[1].equalsIgnoreCase("clear") || args[1].equalsIgnoreCase("reset")) {
|
||||||
unprotectParty(party, sender);
|
unprotectParty(sender);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protectParty(party, sender, args[1]);
|
protectParty(sender, args[1]);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -35,15 +37,15 @@ public class PartyChangePasswordCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void unprotectParty(Party party, CommandSender sender) {
|
private void unprotectParty(CommandSender sender) {
|
||||||
party.setLocked(true);
|
playerParty.setLocked(true);
|
||||||
party.setPassword(null);
|
playerParty.setPassword(null);
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Password.Removed"));
|
sender.sendMessage(LocaleLoader.getString("Party.Password.Removed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void protectParty(Party party, CommandSender sender, String password) {
|
private void protectParty(CommandSender sender, String password) {
|
||||||
party.setLocked(true);
|
playerParty.setLocked(true);
|
||||||
party.setPassword(password);
|
playerParty.setPassword(password);
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Password.Set", password));
|
sender.sendMessage(LocaleLoader.getString("Party.Password.Set", password));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.gmail.nossr50.commands.party;
|
package com.gmail.nossr50.commands.party;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
@@ -12,10 +12,9 @@ import org.bukkit.command.TabExecutor;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.StringUtil;
|
import org.bukkit.util.StringUtil;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.commands.chat.PartyChatCommand;
|
import com.gmail.nossr50.commands.chat.PartyChatCommand;
|
||||||
import com.gmail.nossr50.commands.party.alliance.PartyAllianceCommand;
|
|
||||||
import com.gmail.nossr50.commands.party.teleport.PtpCommand;
|
import com.gmail.nossr50.commands.party.teleport.PtpCommand;
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
@@ -25,8 +24,11 @@ import com.gmail.nossr50.util.player.UserManager;
|
|||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
public class PartyCommand implements TabExecutor {
|
public class PartyCommand implements TabExecutor {
|
||||||
|
private McMMOPlayer mcMMOPlayer;
|
||||||
|
private Player player;
|
||||||
|
|
||||||
private static final List<String> PARTY_SUBCOMMANDS;
|
private static final List<String> PARTY_SUBCOMMANDS;
|
||||||
private static final List<String> XPSHARE_COMPLETIONS = ImmutableList.of("none", "equal");
|
private static final List<String> EXPSHARE_COMPLETIONS = ImmutableList.of("none", "equal");
|
||||||
private static final List<String> ITEMSHARE_COMPLETIONS = ImmutableList.of("none", "equal", "random", "loot", "mining", "herbalism", "woodcutting", "misc");
|
private static final List<String> ITEMSHARE_COMPLETIONS = ImmutableList.of("none", "equal", "random", "loot", "mining", "herbalism", "woodcutting", "misc");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
@@ -44,7 +46,7 @@ public class PartyCommand implements TabExecutor {
|
|||||||
private CommandExecutor partyAcceptCommand = new PartyAcceptCommand();
|
private CommandExecutor partyAcceptCommand = new PartyAcceptCommand();
|
||||||
private CommandExecutor partyCreateCommand = new PartyCreateCommand();
|
private CommandExecutor partyCreateCommand = new PartyCreateCommand();
|
||||||
private CommandExecutor partyQuitCommand = new PartyQuitCommand();
|
private CommandExecutor partyQuitCommand = new PartyQuitCommand();
|
||||||
private CommandExecutor partyXpShareCommand = new PartyXpShareCommand();
|
private CommandExecutor partyExpShareCommand = new PartyExpShareCommand();
|
||||||
private CommandExecutor partyItemShareCommand = new PartyItemShareCommand();
|
private CommandExecutor partyItemShareCommand = new PartyItemShareCommand();
|
||||||
private CommandExecutor partyInviteCommand = new PartyInviteCommand();
|
private CommandExecutor partyInviteCommand = new PartyInviteCommand();
|
||||||
private CommandExecutor partyKickCommand = new PartyKickCommand();
|
private CommandExecutor partyKickCommand = new PartyKickCommand();
|
||||||
@@ -55,9 +57,8 @@ public class PartyCommand implements TabExecutor {
|
|||||||
private CommandExecutor partyRenameCommand = new PartyRenameCommand();
|
private CommandExecutor partyRenameCommand = new PartyRenameCommand();
|
||||||
private CommandExecutor partyInfoCommand = new PartyInfoCommand();
|
private CommandExecutor partyInfoCommand = new PartyInfoCommand();
|
||||||
private CommandExecutor partyHelpCommand = new PartyHelpCommand();
|
private CommandExecutor partyHelpCommand = new PartyHelpCommand();
|
||||||
private CommandExecutor partyTeleportCommand = new PtpCommand();
|
private CommandExecutor partyTeleportCommand = mcMMO.p.getCommand("ptp").getExecutor();
|
||||||
private CommandExecutor partyChatCommand = new PartyChatCommand();
|
private CommandExecutor partyChatCommand = new PartyChatCommand();
|
||||||
private CommandExecutor partyAllianceCommand = new PartyAllianceCommand();
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
@@ -70,18 +71,13 @@ public class PartyCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Player player = (Player) sender;
|
player = (Player) sender;
|
||||||
|
mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
if (!UserManager.hasPlayerDataKey(player)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
|
||||||
|
|
||||||
if (args.length < 1) {
|
if (args.length < 1) {
|
||||||
if (!mcMMOPlayer.inParty()) {
|
if (!mcMMOPlayer.inParty()) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
||||||
return printUsage(player);
|
return printUsage();
|
||||||
}
|
}
|
||||||
|
|
||||||
return partyInfoCommand.onCommand(sender, command, label, args);
|
return partyInfoCommand.onCommand(sender, command, label, args);
|
||||||
@@ -90,7 +86,7 @@ public class PartyCommand implements TabExecutor {
|
|||||||
PartySubcommandType subcommand = PartySubcommandType.getSubcommand(args[0]);
|
PartySubcommandType subcommand = PartySubcommandType.getSubcommand(args[0]);
|
||||||
|
|
||||||
if (subcommand == null) {
|
if (subcommand == null) {
|
||||||
return printUsage(player);
|
return printUsage();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Can't use this for lock/unlock since they're handled by the same command
|
// Can't use this for lock/unlock since they're handled by the same command
|
||||||
@@ -115,7 +111,7 @@ public class PartyCommand implements TabExecutor {
|
|||||||
// Party member commands
|
// Party member commands
|
||||||
if (!mcMMOPlayer.inParty()) {
|
if (!mcMMOPlayer.inParty()) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
||||||
return printUsage(player);
|
return printUsage();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (subcommand) {
|
switch (subcommand) {
|
||||||
@@ -134,14 +130,14 @@ public class PartyCommand implements TabExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Party leader commands
|
// Party leader commands
|
||||||
if (!mcMMOPlayer.getParty().getLeader().getUniqueId().equals(player.getUniqueId())) {
|
if (!mcMMOPlayer.getParty().getLeader().equalsIgnoreCase(player.getName())) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.NotOwner"));
|
sender.sendMessage(LocaleLoader.getString("Party.NotOwner"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (subcommand) {
|
switch (subcommand) {
|
||||||
case XPSHARE:
|
case EXPSHARE:
|
||||||
return partyXpShareCommand.onCommand(sender, command, label, args);
|
return partyExpShareCommand.onCommand(sender, command, label, args);
|
||||||
case ITEMSHARE:
|
case ITEMSHARE:
|
||||||
return partyItemShareCommand.onCommand(sender, command, label, args);
|
return partyItemShareCommand.onCommand(sender, command, label, args);
|
||||||
case KICK:
|
case KICK:
|
||||||
@@ -157,8 +153,6 @@ public class PartyCommand implements TabExecutor {
|
|||||||
return partyChangePasswordCommand.onCommand(sender, command, label, args);
|
return partyChangePasswordCommand.onCommand(sender, command, label, args);
|
||||||
case RENAME:
|
case RENAME:
|
||||||
return partyRenameCommand.onCommand(sender, command, label, args);
|
return partyRenameCommand.onCommand(sender, command, label, args);
|
||||||
case ALLIANCE:
|
|
||||||
return partyAllianceCommand.onCommand(sender, command, label, args);
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -183,10 +177,10 @@ public class PartyCommand implements TabExecutor {
|
|||||||
case INVITE:
|
case INVITE:
|
||||||
case KICK:
|
case KICK:
|
||||||
case OWNER:
|
case OWNER:
|
||||||
List<String> playerNames = CommandUtils.getOnlinePlayerNames(sender);
|
Set<String> playerNames = UserManager.getPlayerNames();
|
||||||
return StringUtil.copyPartialMatches(args[1], playerNames, new ArrayList<String>(playerNames.size()));
|
return StringUtil.copyPartialMatches(args[1], playerNames, new ArrayList<String>(playerNames.size()));
|
||||||
case XPSHARE:
|
case EXPSHARE:
|
||||||
return StringUtil.copyPartialMatches(args[1], XPSHARE_COMPLETIONS, new ArrayList<String>(XPSHARE_COMPLETIONS.size()));
|
return StringUtil.copyPartialMatches(args[1], EXPSHARE_COMPLETIONS, new ArrayList<String>(EXPSHARE_COMPLETIONS.size()));
|
||||||
case ITEMSHARE:
|
case ITEMSHARE:
|
||||||
return StringUtil.copyPartialMatches(args[1], ITEMSHARE_COMPLETIONS, new ArrayList<String>(ITEMSHARE_COMPLETIONS.size()));
|
return StringUtil.copyPartialMatches(args[1], ITEMSHARE_COMPLETIONS, new ArrayList<String>(ITEMSHARE_COMPLETIONS.size()));
|
||||||
case LOCK:
|
case LOCK:
|
||||||
@@ -198,10 +192,7 @@ public class PartyCommand implements TabExecutor {
|
|||||||
List<String> matches = StringUtil.copyPartialMatches(args[1], PtpCommand.TELEPORT_SUBCOMMANDS, new ArrayList<String>(PtpCommand.TELEPORT_SUBCOMMANDS.size()));
|
List<String> matches = StringUtil.copyPartialMatches(args[1], PtpCommand.TELEPORT_SUBCOMMANDS, new ArrayList<String>(PtpCommand.TELEPORT_SUBCOMMANDS.size()));
|
||||||
|
|
||||||
if (matches.size() == 0) {
|
if (matches.size() == 0) {
|
||||||
Player player = (Player) sender;
|
playerNames = UserManager.getPlayerNames();
|
||||||
Party party = UserManager.getPlayer(player).getParty();
|
|
||||||
|
|
||||||
playerNames = party.getOnlinePlayerNames(player);
|
|
||||||
return StringUtil.copyPartialMatches(args[1], playerNames, new ArrayList<String>(playerNames.size()));
|
return StringUtil.copyPartialMatches(args[1], playerNames, new ArrayList<String>(playerNames.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,7 +211,7 @@ public class PartyCommand implements TabExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean printUsage(Player player) {
|
private boolean printUsage() {
|
||||||
player.sendMessage(LocaleLoader.getString("Party.Help.0", "/party join"));
|
player.sendMessage(LocaleLoader.getString("Party.Help.0", "/party join"));
|
||||||
player.sendMessage(LocaleLoader.getString("Party.Help.1", "/party create"));
|
player.sendMessage(LocaleLoader.getString("Party.Help.1", "/party create"));
|
||||||
player.sendMessage(LocaleLoader.getString("Party.Help.2", "/party ?"));
|
player.sendMessage(LocaleLoader.getString("Party.Help.2", "/party ?"));
|
||||||
@@ -228,7 +219,13 @@ public class PartyCommand implements TabExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String[] extractArgs(String[] args) {
|
private String[] extractArgs(String[] args) {
|
||||||
return Arrays.copyOfRange(args, 1, args.length);
|
String[] newArgs = new String[args.length - 1];
|
||||||
|
|
||||||
|
for (int i = 1; i < args.length; i++) {
|
||||||
|
newArgs[i - 1] = args[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
return newArgs;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isItemShareCategory(String category) {
|
private boolean isItemShareCategory(String category) {
|
||||||
|
|||||||
@@ -7,49 +7,50 @@ import org.bukkit.entity.Player;
|
|||||||
|
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
import com.gmail.nossr50.datatypes.party.Party;
|
||||||
import com.gmail.nossr50.datatypes.party.PartyFeature;
|
|
||||||
import com.gmail.nossr50.datatypes.party.ShareMode;
|
import com.gmail.nossr50.datatypes.party.ShareMode;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.StringUtils;
|
import com.gmail.nossr50.util.StringUtils;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
import com.gmail.nossr50.util.commands.CommandUtils;
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class PartyXpShareCommand implements CommandExecutor {
|
public class PartyExpShareCommand implements CommandExecutor {
|
||||||
|
private Party playerParty;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
Party party = UserManager.getPlayer((Player) sender).getParty();
|
if (!Config.getInstance().getExpShareEnabled()) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.ExpShare.Disabled"));
|
||||||
if (party.getLevel() < Config.getInstance().getPartyFeatureUnlockLevel(PartyFeature.XP_SHARE)) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Feature.Disabled.5"));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 2:
|
case 2:
|
||||||
|
playerParty = UserManager.getPlayer((Player) sender).getParty();
|
||||||
|
|
||||||
if (args[1].equalsIgnoreCase("none") || CommandUtils.shouldDisableToggle(args[1])) {
|
if (args[1].equalsIgnoreCase("none") || CommandUtils.shouldDisableToggle(args[1])) {
|
||||||
handleChangingShareMode(party, ShareMode.NONE);
|
handleChangingShareMode(ShareMode.NONE);
|
||||||
}
|
}
|
||||||
else if (args[1].equalsIgnoreCase("equal") || args[1].equalsIgnoreCase("even") || CommandUtils.shouldEnableToggle(args[1])) {
|
else if (args[1].equalsIgnoreCase("equal") || args[1].equalsIgnoreCase("even") || CommandUtils.shouldEnableToggle(args[1])) {
|
||||||
handleChangingShareMode(party, ShareMode.EQUAL);
|
handleChangingShareMode(ShareMode.EQUAL);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "xpshare", "<NONE | EQUAL>"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "expshare", "<NONE | EQUAL>"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "xpshare", "<NONE | EQUAL>"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "expshare", "<NONE | EQUAL>"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleChangingShareMode(Party party, ShareMode mode) {
|
private void handleChangingShareMode(ShareMode mode) {
|
||||||
party.setXpShareMode(mode);
|
playerParty.setXpShareMode(mode);
|
||||||
|
|
||||||
String changeModeMessage = LocaleLoader.getString("Commands.Party.SetSharing", LocaleLoader.getString("Party.ShareType.Xp"), LocaleLoader.getString("Party.ShareMode." + StringUtils.getCapitalized(mode.toString())));
|
String changeModeMessage = LocaleLoader.getString("Commands.Party.SetSharing", LocaleLoader.getString("Party.ShareType.Exp"), LocaleLoader.getString("Party.ShareMode." + StringUtils.getCapitalized(mode.toString())));
|
||||||
|
|
||||||
for (Player member : party.getOnlineMembers()) {
|
for (Player member : playerParty.getOnlineMembers()) {
|
||||||
member.sendMessage(changeModeMessage);
|
member.sendMessage(changeModeMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@ public class PartyHelpCommand implements CommandExecutor {
|
|||||||
sender.sendMessage(LocaleLoader.getString("Party.Help.7", "/party leader"));
|
sender.sendMessage(LocaleLoader.getString("Party.Help.7", "/party leader"));
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Help.8", "/party disband"));
|
sender.sendMessage(LocaleLoader.getString("Party.Help.8", "/party disband"));
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Help.9", "/party itemshare"));
|
sender.sendMessage(LocaleLoader.getString("Party.Help.9", "/party itemshare"));
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Help.10", "/party xpshare"));
|
sender.sendMessage(LocaleLoader.getString("Party.Help.10", "/party expshare"));
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
package com.gmail.nossr50.commands.party;
|
package com.gmail.nossr50.commands.party;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
import com.gmail.nossr50.datatypes.party.Party;
|
||||||
import com.gmail.nossr50.datatypes.party.PartyFeature;
|
|
||||||
import com.gmail.nossr50.datatypes.party.ShareMode;
|
import com.gmail.nossr50.datatypes.party.ShareMode;
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
@@ -19,74 +16,55 @@ import com.gmail.nossr50.party.PartyManager;
|
|||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class PartyInfoCommand implements CommandExecutor {
|
public class PartyInfoCommand implements CommandExecutor {
|
||||||
|
private McMMOPlayer mcMMOPlayer;
|
||||||
|
private Player player;
|
||||||
|
private Party playerParty;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 0:
|
case 0:
|
||||||
case 1:
|
case 1:
|
||||||
Player player = (Player) sender;
|
player = (Player) sender;
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
Party party = mcMMOPlayer.getParty();
|
playerParty = mcMMOPlayer.getParty();
|
||||||
|
|
||||||
displayPartyHeader(player, party);
|
displayPartyHeader();
|
||||||
displayShareModeInfo(player, party);
|
displayShareModeInfo();
|
||||||
displayPartyFeatures(player, party);
|
displayMemberInfo();
|
||||||
displayMemberInfo(player, mcMMOPlayer, party);
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.1", "party", "info"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Usage.1", "party", "info"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayPartyHeader(Player player, Party party) {
|
private String createMembersList() {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Header"));
|
StringBuilder memberList = new StringBuilder();
|
||||||
|
|
||||||
StringBuilder status = new StringBuilder();
|
for (String memberName : playerParty.getMembers()) {
|
||||||
status.append(LocaleLoader.getString("Commands.Party.Status", party.getName(), LocaleLoader.getString("Party.Status." + (party.isLocked() ? "Locked" : "Unlocked")), party.getLevel()));
|
Player member = mcMMO.p.getServer().getPlayerExact(memberName);
|
||||||
|
|
||||||
if (!party.hasReachedLevelCap()) {
|
if (playerParty.getLeader().equalsIgnoreCase(memberName)) {
|
||||||
status.append(" (").append(party.getXpToLevelPercentage()).append(")");
|
memberList.append(ChatColor.GOLD);
|
||||||
}
|
|
||||||
|
|
||||||
player.sendMessage(status.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void displayPartyFeatures(Player player, Party party) {
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Features.Header"));
|
|
||||||
|
|
||||||
List<String> unlockedPartyFeatures = new ArrayList<String>();
|
|
||||||
List<String> lockedPartyFeatures = new ArrayList<String>();
|
|
||||||
|
|
||||||
for (PartyFeature partyFeature : PartyFeature.values()) {
|
|
||||||
if (!partyFeature.hasPermission(player)) {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
else if (member != null) {
|
||||||
if (isUnlockedFeature(party, partyFeature)) {
|
memberList.append(ChatColor.WHITE);
|
||||||
unlockedPartyFeatures.add(partyFeature.getLocaleString());
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lockedPartyFeatures.add(partyFeature.getFeatureLockedLocaleString());
|
memberList.append(ChatColor.GRAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memberList.append(memberName).append(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.UnlockedFeatures", unlockedPartyFeatures.isEmpty() ? "None" : unlockedPartyFeatures));
|
return memberList.toString();
|
||||||
|
|
||||||
for (String message : lockedPartyFeatures) {
|
|
||||||
player.sendMessage(message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isUnlockedFeature(Party party, PartyFeature partyFeature) {
|
private void displayShareModeInfo() {
|
||||||
return party.getLevel() >= Config.getInstance().getPartyFeatureUnlockLevel(partyFeature);
|
boolean xpShareEnabled = Config.getInstance().getExpShareEnabled();
|
||||||
}
|
boolean itemShareEnabled = Config.getInstance().getItemShareEnabled();
|
||||||
|
boolean itemSharingActive = (playerParty.getItemShareMode() != ShareMode.NONE);
|
||||||
private void displayShareModeInfo(Player player, Party party) {
|
|
||||||
boolean xpShareEnabled = isUnlockedFeature(party, PartyFeature.XP_SHARE);
|
|
||||||
boolean itemShareEnabled = isUnlockedFeature(party, PartyFeature.ITEM_SHARE);
|
|
||||||
boolean itemSharingActive = (party.getItemShareMode() != ShareMode.NONE);
|
|
||||||
|
|
||||||
if (!xpShareEnabled && !itemShareEnabled) {
|
if (!xpShareEnabled && !itemShareEnabled) {
|
||||||
return;
|
return;
|
||||||
@@ -97,11 +75,11 @@ public class PartyInfoCommand implements CommandExecutor {
|
|||||||
String separator = "";
|
String separator = "";
|
||||||
|
|
||||||
if (xpShareEnabled) {
|
if (xpShareEnabled) {
|
||||||
expShareInfo = LocaleLoader.getString("Commands.Party.ExpShare", party.getXpShareMode().toString());
|
expShareInfo = LocaleLoader.getString("Commands.Party.ExpShare", playerParty.getXpShareMode().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemShareEnabled) {
|
if (itemShareEnabled) {
|
||||||
itemShareInfo = LocaleLoader.getString("Commands.Party.ItemShare", party.getItemShareMode().toString());
|
itemShareInfo = LocaleLoader.getString("Commands.Party.ItemShare", playerParty.getItemShareMode().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xpShareEnabled && itemShareEnabled) {
|
if (xpShareEnabled && itemShareEnabled) {
|
||||||
@@ -109,18 +87,28 @@ public class PartyInfoCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.ShareMode") + expShareInfo + separator + itemShareInfo);
|
player.sendMessage(LocaleLoader.getString("Commands.Party.ShareMode") + expShareInfo + separator + itemShareInfo);
|
||||||
|
|
||||||
if (itemSharingActive) {
|
if (itemSharingActive) {
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.ItemShareCategories", party.getItemShareCategories()));
|
player.sendMessage(LocaleLoader.getString("Commands.Party.ItemShareCategories", playerParty.getItemShareCategories()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayMemberInfo(Player player, McMMOPlayer mcMMOPlayer, Party party) {
|
private void displayPartyHeader() {
|
||||||
List<Player> nearMembers = PartyManager.getNearMembers(mcMMOPlayer);
|
player.sendMessage(LocaleLoader.getString("Commands.Party.Header"));
|
||||||
int membersOnline = party.getOnlineMembers().size() - 1;
|
|
||||||
|
if (playerParty.isLocked()) {
|
||||||
|
player.sendMessage(LocaleLoader.getString("Commands.Party.Status", playerParty.getName(), LocaleLoader.getString("Party.Status.Locked")));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
player.sendMessage(LocaleLoader.getString("Commands.Party.Status", playerParty.getName(), LocaleLoader.getString("Party.Status.Unlocked")));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void displayMemberInfo() {
|
||||||
|
int membersNear = PartyManager.getNearMembers(mcMMOPlayer).size();
|
||||||
|
int membersOnline = playerParty.getOnlineMembers().size() - 1;
|
||||||
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Members.Header"));
|
player.sendMessage(LocaleLoader.getString("Commands.Party.Members.Header"));
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.MembersNear", nearMembers.size(), membersOnline));
|
player.sendMessage(LocaleLoader.getString("Commands.Party.MembersNear", membersNear, membersOnline));
|
||||||
player.sendMessage(party.createMembersList(player.getName(), nearMembers));
|
player.sendMessage(createMembersList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,27 +15,17 @@ import com.gmail.nossr50.util.player.UserManager;
|
|||||||
public class PartyInviteCommand implements CommandExecutor {
|
public class PartyInviteCommand implements CommandExecutor {
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
|
if (CommandUtils.noConsoleUsage(sender)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 2:
|
case 2:
|
||||||
String targetName = CommandUtils.getMatchedPlayerName(args[1]);
|
|
||||||
McMMOPlayer mcMMOTarget = UserManager.getOfflinePlayer(targetName);
|
|
||||||
|
|
||||||
if (!CommandUtils.checkPlayerExistence(sender, targetName, mcMMOTarget)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Player target = mcMMOTarget.getPlayer();
|
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
String playerName = player.getName();
|
String playerName = player.getName();
|
||||||
|
|
||||||
if (player.equals(target)) {
|
if (playerName.equalsIgnoreCase(args[1])) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Invite.Self"));
|
player.sendMessage(LocaleLoader.getString("Party.Invite.Self"));
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (PartyManager.inSameParty(player, target)) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Player.InSameParty", targetName));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,6 +34,20 @@ public class PartyInviteCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
McMMOPlayer mcMMOTarget = UserManager.getPlayer(args[1], true);
|
||||||
|
|
||||||
|
if (mcMMOTarget == null) {
|
||||||
|
player.sendMessage(LocaleLoader.getString("Commands.Offline"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
Player target = mcMMOTarget.getPlayer();
|
||||||
|
|
||||||
|
if (PartyManager.inSameParty(player, target)) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.Player.InSameParty", target.getName()));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
Party playerParty = mcMMOPlayer.getParty();
|
Party playerParty = mcMMOPlayer.getParty();
|
||||||
mcMMOTarget.setPartyInvite(playerParty);
|
mcMMOTarget.setPartyInvite(playerParty);
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import org.bukkit.entity.Player;
|
|||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.datatypes.party.ItemShareType;
|
import com.gmail.nossr50.datatypes.party.ItemShareType;
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
import com.gmail.nossr50.datatypes.party.Party;
|
||||||
import com.gmail.nossr50.datatypes.party.PartyFeature;
|
|
||||||
import com.gmail.nossr50.datatypes.party.ShareMode;
|
import com.gmail.nossr50.datatypes.party.ShareMode;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.StringUtils;
|
import com.gmail.nossr50.util.StringUtils;
|
||||||
@@ -16,17 +15,18 @@ import com.gmail.nossr50.util.commands.CommandUtils;
|
|||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class PartyItemShareCommand implements CommandExecutor {
|
public class PartyItemShareCommand implements CommandExecutor {
|
||||||
|
private Party playerParty;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
Party party = UserManager.getPlayer((Player) sender).getParty();
|
if (!Config.getInstance().getItemShareEnabled()) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.ItemShare.Disabled"));
|
||||||
if (party.getLevel() < Config.getInstance().getPartyFeatureUnlockLevel(PartyFeature.ITEM_SHARE)) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Feature.Disabled.4"));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 2:
|
case 2:
|
||||||
|
playerParty = UserManager.getPlayer((Player) sender).getParty();
|
||||||
ShareMode mode = ShareMode.getShareMode(args[1].toUpperCase());
|
ShareMode mode = ShareMode.getShareMode(args[1].toUpperCase());
|
||||||
|
|
||||||
if (mode == null) {
|
if (mode == null) {
|
||||||
@@ -34,11 +34,12 @@ public class PartyItemShareCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChangingShareMode(party, mode);
|
handleChangingShareMode(mode);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
boolean toggle;
|
playerParty = UserManager.getPlayer((Player) sender).getParty();
|
||||||
|
boolean toggle = false;
|
||||||
|
|
||||||
if (CommandUtils.shouldEnableToggle(args[2])) {
|
if (CommandUtils.shouldEnableToggle(args[2])) {
|
||||||
toggle = true;
|
toggle = true;
|
||||||
@@ -52,7 +53,7 @@ public class PartyItemShareCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
handleToggleItemShareCategory(party, ItemShareType.valueOf(args[1].toUpperCase()), toggle);
|
handleToggleItemShareCategory(ItemShareType.valueOf(args[1].toUpperCase()), toggle);
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException ex) {
|
catch (IllegalArgumentException ex) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "itemshare", "<loot | mining | herbalism | woodcutting | misc> <true | false>"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "itemshare", "<loot | mining | herbalism | woodcutting | misc> <true | false>"));
|
||||||
@@ -67,22 +68,22 @@ public class PartyItemShareCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleChangingShareMode(Party party, ShareMode mode) {
|
private void handleChangingShareMode(ShareMode mode) {
|
||||||
party.setItemShareMode(mode);
|
playerParty.setItemShareMode(mode);
|
||||||
|
|
||||||
String changeModeMessage = LocaleLoader.getString("Commands.Party.SetSharing", LocaleLoader.getString("Party.ShareType.Item"), LocaleLoader.getString("Party.ShareMode." + StringUtils.getCapitalized(mode.toString())));
|
String changeModeMessage = LocaleLoader.getString("Commands.Party.SetSharing", LocaleLoader.getString("Party.ShareType.Item"), LocaleLoader.getString("Party.ShareMode." + StringUtils.getCapitalized(mode.toString())));
|
||||||
|
|
||||||
for (Player member : party.getOnlineMembers()) {
|
for (Player member : playerParty.getOnlineMembers()) {
|
||||||
member.sendMessage(changeModeMessage);
|
member.sendMessage(changeModeMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleToggleItemShareCategory(Party party, ItemShareType type, boolean toggle) {
|
private void handleToggleItemShareCategory(ItemShareType type, boolean toggle) {
|
||||||
party.setSharingDrops(type, toggle);
|
playerParty.setSharingDrops(type, toggle);
|
||||||
|
|
||||||
String toggleMessage = LocaleLoader.getString("Commands.Party.ToggleShareCategory", StringUtils.getCapitalized(type.toString()), toggle ? "enabled" : "disabled");
|
String toggleMessage = LocaleLoader.getString("Commands.Party.ToggleShareCategory", StringUtils.getCapitalized(type.toString()), toggle ? "enabled" : "disabled");
|
||||||
|
|
||||||
for (Player member : party.getOnlineMembers()) {
|
for (Player member : playerParty.getOnlineMembers()) {
|
||||||
member.sendMessage(toggleMessage);
|
member.sendMessage(toggleMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,35 +9,23 @@ import com.gmail.nossr50.datatypes.party.Party;
|
|||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.party.PartyManager;
|
import com.gmail.nossr50.party.PartyManager;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class PartyJoinCommand implements CommandExecutor {
|
public class PartyJoinCommand implements CommandExecutor {
|
||||||
|
private McMMOPlayer mcMMOPlayer;
|
||||||
|
private Player player;
|
||||||
|
private Party targetParty;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 2:
|
case 2:
|
||||||
case 3:
|
case 3:
|
||||||
String targetName = CommandUtils.getMatchedPlayerName(args[1]);
|
player = (Player) sender;
|
||||||
McMMOPlayer mcMMOTarget = UserManager.getPlayer(targetName);
|
mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
|
|
||||||
if (!CommandUtils.checkPlayerExistence(sender, targetName, mcMMOTarget)) {
|
// Verify target exists and is in a different party than the player
|
||||||
return true;
|
if (!canJoinParty(sender, args[1])) {
|
||||||
}
|
|
||||||
|
|
||||||
Player target = mcMMOTarget.getPlayer();
|
|
||||||
|
|
||||||
if (!mcMMOTarget.inParty()) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.PlayerNotInParty", targetName));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
Player player = (Player) sender;
|
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
|
||||||
Party targetParty = mcMMOTarget.getParty();
|
|
||||||
|
|
||||||
if (player.equals(target) || (mcMMOPlayer.inParty() && mcMMOPlayer.getParty().equals(targetParty))) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Join.Self"));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,4 +60,27 @@ public class PartyJoinCommand implements CommandExecutor {
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean canJoinParty(CommandSender sender, String targetName) {
|
||||||
|
// Short-circuit for joining your own party
|
||||||
|
if (sender.getName().equalsIgnoreCase(targetName)) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.Join.Self"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
targetParty = PartyManager.getPlayerParty(targetName);
|
||||||
|
|
||||||
|
if (targetParty == null) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.PlayerNotInParty", targetName));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Can't join your own party
|
||||||
|
if (mcMMOPlayer.inParty() && mcMMOPlayer.getParty().equals(targetParty)) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.Join.Self"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import com.gmail.nossr50.datatypes.party.Party;
|
|||||||
import com.gmail.nossr50.events.party.McMMOPartyChangeEvent.EventReason;
|
import com.gmail.nossr50.events.party.McMMOPartyChangeEvent.EventReason;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.party.PartyManager;
|
import com.gmail.nossr50.party.PartyManager;
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class PartyKickCommand implements CommandExecutor {
|
public class PartyKickCommand implements CommandExecutor {
|
||||||
@@ -20,15 +19,13 @@ public class PartyKickCommand implements CommandExecutor {
|
|||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 2:
|
case 2:
|
||||||
Party playerParty = UserManager.getPlayer((Player) sender).getParty();
|
Party playerParty = UserManager.getPlayer((Player) sender).getParty();
|
||||||
String targetName = CommandUtils.getMatchedPlayerName(args[1]);
|
OfflinePlayer target = mcMMO.p.getServer().getOfflinePlayer(args[1]);
|
||||||
|
|
||||||
if (!playerParty.hasMember(targetName)) {
|
if (!playerParty.getMembers().contains(target.getName())) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.NotInYourParty", targetName));
|
sender.sendMessage(LocaleLoader.getString("Party.NotInYourParty", target.getName()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
OfflinePlayer target = mcMMO.p.getServer().getOfflinePlayer(targetName);
|
|
||||||
|
|
||||||
if (target.isOnline()) {
|
if (target.isOnline()) {
|
||||||
Player onlineTarget = target.getPlayer();
|
Player onlineTarget = target.getPlayer();
|
||||||
String partyName = playerParty.getName();
|
String partyName = playerParty.getName();
|
||||||
|
|||||||
@@ -12,15 +12,19 @@ import com.gmail.nossr50.util.commands.CommandUtils;
|
|||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
|
|
||||||
public class PartyLockCommand implements CommandExecutor {
|
public class PartyLockCommand implements CommandExecutor {
|
||||||
|
private Party playerParty;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
|
playerParty = UserManager.getPlayer((Player) sender).getParty();
|
||||||
|
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
if (args[0].equalsIgnoreCase("lock")) {
|
if (args[0].equalsIgnoreCase("lock")) {
|
||||||
togglePartyLock(sender, true);
|
lockParty(sender, command.getPermissionMessage());
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("unlock")) {
|
else if (args[0].equalsIgnoreCase("unlock")) {
|
||||||
togglePartyLock(sender, false);
|
unlockParty(sender, command.getPermissionMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -32,10 +36,10 @@ public class PartyLockCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CommandUtils.shouldEnableToggle(args[1])) {
|
if (CommandUtils.shouldEnableToggle(args[1])) {
|
||||||
togglePartyLock(sender, true);
|
lockParty(sender, command.getPermissionMessage());
|
||||||
}
|
}
|
||||||
else if (CommandUtils.shouldDisableToggle(args[1])) {
|
else if (CommandUtils.shouldDisableToggle(args[1])) {
|
||||||
togglePartyLock(sender, false);
|
unlockParty(sender, command.getPermissionMessage());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sendUsageStrings(sender);
|
sendUsageStrings(sender);
|
||||||
@@ -49,25 +53,44 @@ public class PartyLockCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle locking a party.
|
||||||
|
*/
|
||||||
|
private void lockParty(CommandSender sender, String permissionMessage) {
|
||||||
|
if (!Permissions.partySubcommand(sender, PartySubcommandType.LOCK)) {
|
||||||
|
sender.sendMessage(permissionMessage);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (playerParty.isLocked()) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.IsLocked"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
playerParty.setLocked(true);
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.Locked"));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle unlocking a party.
|
||||||
|
*/
|
||||||
|
private void unlockParty(CommandSender sender, String permissionMessage) {
|
||||||
|
if (!Permissions.partySubcommand(sender, PartySubcommandType.UNLOCK)) {
|
||||||
|
sender.sendMessage(permissionMessage);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!playerParty.isLocked()) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.IsntLocked"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
playerParty.setLocked(false);
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Party.Unlocked"));
|
||||||
|
}
|
||||||
|
|
||||||
private void sendUsageStrings(CommandSender sender) {
|
private void sendUsageStrings(CommandSender sender) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "lock", "[on|off]"));
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.1", "party", "unlock"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Usage.1", "party", "unlock"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void togglePartyLock(CommandSender sender, boolean lock) {
|
|
||||||
Party party = UserManager.getPlayer((Player) sender).getParty();
|
|
||||||
|
|
||||||
if (!Permissions.partySubcommand(sender, lock ? PartySubcommandType.LOCK : PartySubcommandType.UNLOCK)) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("mcMMO.NoPermission"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lock ? party.isLocked() : !party.isLocked()) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party." + (lock ? "IsLocked" : "IsntLocked")));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
party.setLocked(lock);
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party." + (lock ? "Locked" : "Unlocked")));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class PartyRenameCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
String leaderName = playerParty.getLeader().getPlayerName();
|
String leaderName = playerParty.getLeader();
|
||||||
|
|
||||||
for (Player member : playerParty.getOnlineMembers()) {
|
for (Player member : playerParty.getOnlineMembers()) {
|
||||||
if (!PartyManager.handlePartyChangeEvent(member, oldPartyName, newPartyName, EventReason.CHANGED_PARTIES)) {
|
if (!PartyManager.handlePartyChangeEvent(member, oldPartyName, newPartyName, EventReason.CHANGED_PARTIES)) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ public enum PartySubcommandType {
|
|||||||
HELP,
|
HELP,
|
||||||
INFO,
|
INFO,
|
||||||
QUIT,
|
QUIT,
|
||||||
XPSHARE,
|
EXPSHARE,
|
||||||
ITEMSHARE,
|
ITEMSHARE,
|
||||||
INVITE,
|
INVITE,
|
||||||
KICK,
|
KICK,
|
||||||
@@ -18,8 +18,7 @@ public enum PartySubcommandType {
|
|||||||
PASSWORD,
|
PASSWORD,
|
||||||
RENAME,
|
RENAME,
|
||||||
TELEPORT,
|
TELEPORT,
|
||||||
CHAT,
|
CHAT;
|
||||||
ALLIANCE;
|
|
||||||
|
|
||||||
public static PartySubcommandType getSubcommand(String commandName) {
|
public static PartySubcommandType getSubcommand(String commandName) {
|
||||||
for (PartySubcommandType command : values()) {
|
for (PartySubcommandType command : values()) {
|
||||||
@@ -38,14 +37,11 @@ public enum PartySubcommandType {
|
|||||||
return OWNER;
|
return OWNER;
|
||||||
}
|
}
|
||||||
else if (commandName.equalsIgnoreCase("xpshare") || commandName.equalsIgnoreCase("shareexp") || commandName.equalsIgnoreCase("sharexp")) {
|
else if (commandName.equalsIgnoreCase("xpshare") || commandName.equalsIgnoreCase("shareexp") || commandName.equalsIgnoreCase("sharexp")) {
|
||||||
return XPSHARE;
|
return EXPSHARE;
|
||||||
}
|
}
|
||||||
else if (commandName.equalsIgnoreCase("shareitem") || commandName.equalsIgnoreCase("shareitems")) {
|
else if (commandName.equalsIgnoreCase("shareitem") || commandName.equalsIgnoreCase("shareitems")) {
|
||||||
return ITEMSHARE;
|
return ITEMSHARE;
|
||||||
}
|
}
|
||||||
else if (commandName.equalsIgnoreCase("ally")) {
|
|
||||||
return ALLIANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
package com.gmail.nossr50.commands.party.alliance;
|
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
|
||||||
import org.bukkit.command.CommandExecutor;
|
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
|
||||||
import com.gmail.nossr50.party.PartyManager;
|
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
|
||||||
|
|
||||||
public class PartyAllianceAcceptCommand implements CommandExecutor {
|
|
||||||
@Override
|
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
|
||||||
switch (args.length) {
|
|
||||||
case 2:
|
|
||||||
Player player = (Player) sender;
|
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
|
||||||
|
|
||||||
if (!mcMMOPlayer.hasPartyAllianceInvite()) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("mcMMO.NoInvites"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mcMMOPlayer.getParty().getAlly() != null) {
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Alliance.AlreadyAllies"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
PartyManager.acceptAllianceInvite(mcMMOPlayer);
|
|
||||||
return true;
|
|
||||||
|
|
||||||
default:
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "alliance", "accept"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
package com.gmail.nossr50.commands.party.alliance;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
import org.bukkit.command.Command;
|
|
||||||
import org.bukkit.command.CommandExecutor;
|
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
import org.bukkit.command.TabExecutor;
|
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
import org.bukkit.util.StringUtil;
|
|
||||||
|
|
||||||
import com.gmail.nossr50.config.Config;
|
|
||||||
import com.gmail.nossr50.datatypes.party.Party;
|
|
||||||
import com.gmail.nossr50.datatypes.party.PartyFeature;
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
|
||||||
import com.gmail.nossr50.party.PartyManager;
|
|
||||||
import com.gmail.nossr50.util.commands.CommandUtils;
|
|
||||||
import com.gmail.nossr50.util.player.UserManager;
|
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
|
||||||
|
|
||||||
public class PartyAllianceCommand implements TabExecutor {
|
|
||||||
private Player player;
|
|
||||||
private Party playerParty;
|
|
||||||
private Party targetParty;
|
|
||||||
|
|
||||||
public static final List<String> ALLIANCE_SUBCOMMANDS = ImmutableList.of("invite", "accept", "disband");
|
|
||||||
|
|
||||||
private CommandExecutor partyAllianceInviteCommand = new PartyAllianceInviteCommand();
|
|
||||||
private CommandExecutor partyAllianceAcceptCommand = new PartyAllianceAcceptCommand();
|
|
||||||
private CommandExecutor partyAllianceDisbandCommand = new PartyAllianceDisbandCommand();
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
|
||||||
if (CommandUtils.noConsoleUsage(sender)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
player = (Player) sender;
|
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
|
||||||
|
|
||||||
playerParty = mcMMOPlayer.getParty();
|
|
||||||
|
|
||||||
switch (args.length) {
|
|
||||||
case 1:
|
|
||||||
if (playerParty.getLevel() < Config.getInstance().getPartyFeatureUnlockLevel(PartyFeature.ALLIANCE)) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Feature.Disabled.3"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playerParty.getAlly() == null) {
|
|
||||||
printUsage();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
targetParty = playerParty.getAlly();
|
|
||||||
|
|
||||||
displayPartyHeader();
|
|
||||||
displayMemberInfo(mcMMOPlayer);
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
case 3:
|
|
||||||
if (playerParty.getLevel() < Config.getInstance().getPartyFeatureUnlockLevel(PartyFeature.ALLIANCE)) {
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Feature.Disabled.3"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args[1].equalsIgnoreCase("invite")) {
|
|
||||||
return partyAllianceInviteCommand.onCommand(sender, command, label, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args[1].equalsIgnoreCase("accept")) {
|
|
||||||
return partyAllianceAcceptCommand.onCommand(sender, command, label, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args[1].equalsIgnoreCase("disband")) {
|
|
||||||
return partyAllianceDisbandCommand.onCommand(sender, command, label, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playerParty.getAlly() == null) {
|
|
||||||
printUsage();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
targetParty = playerParty.getAlly();
|
|
||||||
|
|
||||||
displayPartyHeader();
|
|
||||||
displayMemberInfo(mcMMOPlayer);
|
|
||||||
return true;
|
|
||||||
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean printUsage() {
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Alliance.Help.0"));
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Alliance.Help.1"));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<String> onTabComplete(CommandSender commandSender, Command command, String label, String[] args) {
|
|
||||||
switch (args.length) {
|
|
||||||
case 1:
|
|
||||||
List<String> matches = StringUtil.copyPartialMatches(args[0], ALLIANCE_SUBCOMMANDS, new ArrayList<String>(ALLIANCE_SUBCOMMANDS.size()));
|
|
||||||
|
|
||||||
if (matches.size() == 0) {
|
|
||||||
List<String> playerNames = CommandUtils.getOnlinePlayerNames(commandSender);
|
|
||||||
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
|
||||||
}
|
|
||||||
|
|
||||||
return matches;
|
|
||||||
default:
|
|
||||||
return ImmutableList.of();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void displayPartyHeader() {
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Alliance.Header"));
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Alliance.Ally", playerParty.getName(), targetParty.getName()));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void displayMemberInfo(McMMOPlayer mcMMOPlayer) {
|
|
||||||
List<Player> nearMembers = PartyManager.getNearMembers(mcMMOPlayer);
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.Party.Alliance.Members.Header"));
|
|
||||||
player.sendMessage(playerParty.createMembersList(player.getName(), nearMembers));
|
|
||||||
player.sendMessage(ChatColor.DARK_GRAY + "----------------------------");
|
|
||||||
player.sendMessage(targetParty.createMembersList(player.getName(), nearMembers));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user