Giter Site home page Giter Site logo

puyodead1 / randomdupe Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 105 KB

Addon for RandomPackage for duping books (Opened or Unopened)

License: GNU General Public License v3.0

Java 91.42% Shell 8.58%
randompackage random-package spigotmc spigot-mc spigot spigot-plugin dupe

randomdupe's Introduction

RandomDupe

Addon for RandomPackage for duping books (Opened or Unopened)

For 1.8.x or 1.12.x - Use Latest

Commands:

  • /dupe - main dupe command

Permissions:

  • randomdupe.dupe - permission for /dupe

Configuration File:

Click to expand
messages:
  not dupable: # Valid placeholders: {ENCHANT_NAME}, {RARITY_NAME}, {DUST_NAME}
    ENCHANT: "&c&l(!) {ENCHANT_NAME} &cenchant is not dupable!"
    RARITY: "&c&l(!) {RARITY_NAME} &crarity books are not dupable!"
    WHITE_SCROLL: "&c&l(!) White Scrolls &care not dupable!"
    BLACK_SCROLL: "&c&l(!) Black Scrolls &care not dupable!"
    TRANSMOG_SCROLL: "&c&l(!) Transmog Scrolls &care not dupable!"
    MAGIC_DUST: "&c&l(!) {DUST_NAME} &cis not dupable!"
  no permission: "&c&l(!) &cYou don't have permission!"
  item not dupable: "&c&l(!) {ITEM_TYPE} &cis not dupable!" # Valid placeholders: {ITEM_DISPLAYNAME} and {ITEM_TYPE}
  dupe success: "&a&l(!) {ITEM_DISPLAYNAME} &aduped successfully!" # Valid placeholders: {ITEM_DISPLAYNAME} and {ITEM_TYPE}
  cannot dupe air: "&c&l(!) &cYou can't dupe air!"
  identifier: "&eIdentifier for item &6&l{ITEM_DISPLAYNAME} &eis &6&l{IDENTIFIER}&e."
  no identifier: "&c&l(!) {ITEM_DISPLAYNAME} &cdoes not have an identifier!"
  
settings:
  stack size: 64
  allow duping:
    ENCHANT: true
    RARITY: true
    WHITE_SCROLL: false
    BLACK_SCROLL: false
    TRANSMOG_SCROLL: false
    MAGIC_DUST: false # blacklist certain dusts with the blacklist below
  
blacklist: # All names in this list must be UPPERCASE
  - "ENCHANT:RAGE" # Prevents duping the rage enchant book
  - "RARITY:ELITE" # Prevents duping the (unopened) elite enchantment book
  - "DUST:ELITE_REGULAR" # Prevents duping regular elite magic dust
https://discord.gg/tMzrSxQ

randomdupe's People

Contributors

puyodead1 avatar

Watchers

 avatar  avatar

randomdupe's Issues

This if statment may not be needed

// TODO: This if statment may not be needed
if (rarity != null || ce != null) {
if (!blacklist.contains(ce != null ? ce.getIdentifier() : rarity.getIdentifier())) {
is.setAmount(rdConfig.getInt("settings.stack size") - player.getItemInHand().getAmount());
player.getInventory().addItem(is);
} else {


This issue was generated by todo based on a TODO comment in 199cbe5. It's been assigned to @Puyodead1 because they committed the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.