Skip to content

Commit

Permalink
boosts now in boosts.yml (still not functioning)
Browse files Browse the repository at this point in the history
  • Loading branch information
QarthO committed Dec 20, 2023
1 parent 05f35cd commit 04d4513
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/gg/quartzdev/qxpboosts/commands/CMDcreate.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package gg.quartzdev.qxpboosts.commands;

import org.bukkit.command.CommandSender;

public class CMDcreate extends qCMD {

public CMDcreate(String name, String label) {
super(name, label);
this.permissionGroup = "qxpboosts.admin";
this.permissionNode = "qxpboosts.command.create";
}

@Override
public boolean logic(CommandSender sender, String[] args) {
return false;
}
}
42 changes: 42 additions & 0 deletions src/main/resources/boosts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# qXP-Boosts Boosts config
# https://wiki.quartzdev.gg/mc/qxp-boosts/boosts.yml


#<boost-name>:
# multiplier: <boost-multiplier>
# active: <true/false>
# chance: <0-100>%
# xp-sources:
# - https://jd.papermc.io/paper/1.20/org/bukkit/entity/ExperienceOrb.SpawnReason.html
# - Can use 'ALL' instead of listing out each one
# mob-xp:
# - https://jd.papermc.io/paper/1.20/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html
# - You can also put except: <spawn-reason>

# Default boost (required)
# > This boost (when active) is used if a player has permission 'qxpboosts.player' but no other boosts
default:
multiplier: 1.25
chance: 100
active: true
xp:
- ALL
- except: EXP_BOTTLE
mob-xp:
- ALL
- except: SPAWNER
- except: EXP_BOTTLE

# Custom Boosts
# These are just examples, but feel free to add any custom boost you want
# > If you don't define all the options, the custom boost will use the defaults for that specific option
# > Example: Since the 'double' boost does not have 'xp-sources' defined, it will default to ALL
double:
multiplier: 2
active: false
triple:
multiplier: 3
chance: 100
active: false


0 comments on commit 04d4513

Please sign in to comment.