diff --git a/docs/Story.md b/docs/Story.md index a15ecc6..0d84eee 100644 --- a/docs/Story.md +++ b/docs/Story.md @@ -1,7 +1,7 @@ # 📖 The Story of the Disenchanter > *"Magic should not be lost simply because the vessel that held it has broken."* -> +> > — Steve, from the final pages of his research journal --- @@ -20,7 +20,7 @@ Surely such powerful enchantments could not simply vanish. ## ✦ The Search -So Steve began to study. He searched forgotten libraries. He questioned wandering villagers. +So Steve began to study. He searched forgotten libraries. He questioned wandering villagers. He explored ancient ruins and spent years experimenting with enchanted items, books, and the mysterious forces that bound magic to the objects of this world. Many attempts failed. Some produced nothing but ordinary books. Others caused the enchantment to disappear entirely. But Steve refused to give up. @@ -45,7 +45,7 @@ But Steve soon discovered that not all magic was willing to leave so easily. **Curses were different.** Dark enchantments resisted the process, fighting against anyone who attempted to extract them. -Removing a curse was dangerous. Failure could cause the entire item — and any enchantments already recovered from it — to be lost. +Removing a curse was dangerous. Failure could cause the entire item — and any enchantments not already recovered from it — to be lost. Steve learned an important lesson: > **Some magic can be preserved.** @@ -61,9 +61,9 @@ Steve learned an important lesson: And so, the Disenchanter was born. Steve's discovery allows adventurers to reclaim the magic hidden within their weapons, tools, and armor — preserving enchantments that might otherwise be lost forever. But when it comes to curses... -> ### **You'd better be lucky.** +> ### **You'd better be careful.** --- *The research of Steve did not end with the discovery of the Disenchanter.* -*There are still enchantments whose secrets remain unknown...* \ No newline at end of file +*There are still enchantments whose secrets remain unknown...* diff --git a/target/antrun/build-main.xml b/target/antrun/build-main.xml new file mode 100644 index 0000000..748c160 --- /dev/null +++ b/target/antrun/build-main.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/target/classes/com/rsscripting/rsdisenchanter/RSDISenchanter.class b/target/classes/com/rsscripting/rsdisenchanter/RSDISenchanter.class new file mode 100644 index 0000000..546972b Binary files /dev/null and b/target/classes/com/rsscripting/rsdisenchanter/RSDISenchanter.class differ diff --git a/target/classes/com/rsscripting/rsdisenchanter/command/DisenchantCommand.class b/target/classes/com/rsscripting/rsdisenchanter/command/DisenchantCommand.class new file mode 100644 index 0000000..a8f720a Binary files /dev/null and b/target/classes/com/rsscripting/rsdisenchanter/command/DisenchantCommand.class differ diff --git a/target/classes/com/rsscripting/rsdisenchanter/enchantment/EnchantmentManager.class b/target/classes/com/rsscripting/rsdisenchanter/enchantment/EnchantmentManager.class new file mode 100644 index 0000000..81f34f0 Binary files /dev/null and b/target/classes/com/rsscripting/rsdisenchanter/enchantment/EnchantmentManager.class differ diff --git a/target/classes/com/rsscripting/rsdisenchanter/gui/DisenchanterGUI.class b/target/classes/com/rsscripting/rsdisenchanter/gui/DisenchanterGUI.class new file mode 100644 index 0000000..9238672 Binary files /dev/null and b/target/classes/com/rsscripting/rsdisenchanter/gui/DisenchanterGUI.class differ diff --git a/target/classes/com/rsscripting/rsdisenchanter/language/LanguageManager.class b/target/classes/com/rsscripting/rsdisenchanter/language/LanguageManager.class new file mode 100644 index 0000000..4b3fcc8 Binary files /dev/null and b/target/classes/com/rsscripting/rsdisenchanter/language/LanguageManager.class differ diff --git a/target/classes/com/rsscripting/rsdisenchanter/listener/DisenchanterListener.class b/target/classes/com/rsscripting/rsdisenchanter/listener/DisenchanterListener.class new file mode 100644 index 0000000..f8d921a Binary files /dev/null and b/target/classes/com/rsscripting/rsdisenchanter/listener/DisenchanterListener.class differ diff --git a/target/classes/config.yml b/target/classes/config.yml new file mode 100644 index 0000000..c16aec1 --- /dev/null +++ b/target/classes/config.yml @@ -0,0 +1,15 @@ +# ========================================== +# RS-DISenchanter Configuration +# ========================================== + +# Language file to use. +# The file must exist in the language folder. +language: en_us + +# Chance, in percent, that an item is destroyed +# when attempting to remove a curse. +# +# 0 = Never destroyed +# 5 = 5% chance +# 100 = Always destroyed +curse-destruction-chance: 5 \ No newline at end of file diff --git a/target/classes/language/en_us.yml b/target/classes/language/en_us.yml new file mode 100644 index 0000000..c78c0da --- /dev/null +++ b/target/classes/language/en_us.yml @@ -0,0 +1,86 @@ +# ========================================== +# RS-DISenchanter - English Language File +# ========================================== + +gui: + + titles: + disenchanter: "&8Disenchanter" + + +messages: + + general: + no-permission: "{prefix}&cYou do not have permission to use the Disenchanter." + player-only: "{prefix}&cThis command can only be used by a player." + invalid-item: "{prefix}&cThat item cannot be used in the Disenchanter." + no-enchantments: "{prefix}&cThat item has no enchantments to remove." + + + curse: + removed: "{prefix}&aYou successfully removed {enchantment} from the {item}." + failed: "{prefix}&cBad luck! You failed to remove {enchantment} from the {item} and the {item} was destroyed." + + disenchant: + completed: "{prefix}&aThe enchantment was successfully removed." + + inventory: + full: "{prefix}&cYour inventory is full." + + +items: + + gui: + glass-pane: + name: " " + + +errors: + + language: + file-not-found: "{prefix}&cThe language file could not be found." + invalid-language: "{prefix}&cThe configured language file is invalid." + +enchantments: + aqua_affinity: "Aqua Affinity" + bane_of_arthropods: "Bane of Arthropods" + binding_curse: "Curse of Binding" + blast_protection: "Blast Protection" + breach: "Breach" + channeling: "Channeling" + density: "Density" + depth_strider: "Depth Strider" + efficiency: "Efficiency" + feather_falling: "Feather Falling" + fire_aspect: "Fire Aspect" + fortune: "Fortune" + frost_walker: "Frost Walker" + impaling: "Impaling" + knockback: "Knockback" + looting: "Looting" + loyalty: "Loyalty" + luck_of_the_sea: "Luck of the Sea" + lure: "Lure" + mending: "Mending" + multishot: "Multishot" + piercing: "Piercing" + power: "Power" + projectile_protection: "Projectile Protection" + protection: "Protection" + punch: "Punch" + quick_charge: "Quick Charge" + respiration: "Respiration" + riptide: "Riptide" + sharpness: "Sharpness" + silk_touch: "Silk Touch" + smite: "Smite" + soul_speed: "Soul Speed" + sweeping_edge: "Sweeping Edge" + swift_sneak: "Swift Sneak" + thorns: "Thorns" + unbreaking: "Unbreaking" + vanishing_curse: "Curse of Vanishing" + wind_burst: "Wind Burst" + + +prefix: "&8[&dDisenchanter&8] " \ No newline at end of file diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml new file mode 100644 index 0000000..8da2f91 --- /dev/null +++ b/target/classes/plugin.yml @@ -0,0 +1,17 @@ +name: RS-DISenchanter +version: 1.0.1 +main: com.rsscripting.rsdisenchanter.RSDISenchanter +api-version: '1.21' +author: Big Pappa, Atlas +description: Enchantment/Cursed Item Removal Tool + +commands: + disenchant: + description: Opens the Disenchanter + usage: /disenchant + permission: rsdisenchanter.use + +permissions: + rsdisenchanter.use: + description: Allows the player to use the Disenchanter + default: true \ No newline at end of file diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..dd5df9f --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=rs-disenchanter +groupId=com.rsscripting +version=1.0.1 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..f466db9 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,6 @@ +com\rsscripting\rsdisenchanter\RSDISenchanter.class +com\rsscripting\rsdisenchanter\language\LanguageManager.class +com\rsscripting\rsdisenchanter\enchantment\EnchantmentManager.class +com\rsscripting\rsdisenchanter\command\DisenchantCommand.class +com\rsscripting\rsdisenchanter\gui\DisenchanterGUI.class +com\rsscripting\rsdisenchanter\listener\DisenchanterListener.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..907fa6c --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,6 @@ +C:\Users\russe\IdeaProjects\RS-DISenchanter\src\main\java\com\rsscripting\rsdisenchanter\command\DisenchantCommand.java +C:\Users\russe\IdeaProjects\RS-DISenchanter\src\main\java\com\rsscripting\rsdisenchanter\enchantment\EnchantmentManager.java +C:\Users\russe\IdeaProjects\RS-DISenchanter\src\main\java\com\rsscripting\rsdisenchanter\gui\DisenchanterGUI.java +C:\Users\russe\IdeaProjects\RS-DISenchanter\src\main\java\com\rsscripting\rsdisenchanter\language\LanguageManager.java +C:\Users\russe\IdeaProjects\RS-DISenchanter\src\main\java\com\rsscripting\rsdisenchanter\listener\DisenchanterListener.java +C:\Users\russe\IdeaProjects\RS-DISenchanter\src\main\java\com\rsscripting\rsdisenchanter\RSDISenchanter.java diff --git a/target/original-rs-disenchanter-1.0.1.jar b/target/original-rs-disenchanter-1.0.1.jar new file mode 100644 index 0000000..3fd9d9f Binary files /dev/null and b/target/original-rs-disenchanter-1.0.1.jar differ