-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a crate interact event This is to have proper support for other plugins like Nexo, or ItemsAdder * Add nexo interact listener * add editor.yml * fix isCrateLocation method * add replacement command/feature for /crazycrates set * remove unneeded code * update invalid docs url * change crate to nullable * add {reason} placeholder to force exit * Switch to fully location based for nexo * check if hand is off_hand * spawn display entity above location * update default messages.yml * Add ability to remove crates when using /crazycrates editor * deprecate old way of removing crates * No longer need to sneak, or be in creative mode to remove crates. * always register our editor for normal blocks * Register more of our listeners * return if block is air * fix the last little odd bug * add trim example back to default files * reduce duplicate methods * return if the block clicked is furniture * update key checks * cancel key interactions * simplify interact handling with nexo/vanilla * update editor message * prevent re-adding to the crate editor * add/clean checks to prevent editor messes * remove from editor crate if they don't have the permission * remove dead imports * use Block.isEmpty() * prevent key check if itemstack is empty * add more if hand checks * add config option to pick custom items plugin * chore: remove import * add items adder support for furniture * add "none" option to the config.yml * add isFurniture method * use proper plugin check --------- Signed-off-by: Ryder Belserion <[email protected]>
- Loading branch information
1 parent
cc4e46c
commit 8bb0e1c
Showing
27 changed files
with
1,223 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
common/src/main/java/com/badbones69/crazycrates/common/config/impl/EditorKeys.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.badbones69.crazycrates.common.config.impl; | ||
|
||
import ch.jalu.configme.Comment; | ||
import ch.jalu.configme.SettingsHolder; | ||
import ch.jalu.configme.configurationdata.CommentsConfiguration; | ||
import ch.jalu.configme.properties.Property; | ||
import static ch.jalu.configme.properties.PropertyInitializer.newProperty; | ||
|
||
public class EditorKeys implements SettingsHolder { | ||
|
||
protected EditorKeys() {} | ||
|
||
@Override | ||
public void registerComments(CommentsConfiguration conf) { | ||
String[] header = { | ||
"Support: https://discord.gg/badbones-s-live-chat-182615261403283459", | ||
"Github: https://github.com/Crazy-Crew", | ||
"", | ||
"Issues: https://github.com/Crazy-Crew/CrazyCrates/issues", | ||
"Features: https://github.com/Crazy-Crew/CrazyCrates/issues", | ||
"", | ||
"List of all sounds: https://minecraft.wiki/w/Sounds.json#Java_Edition_values", | ||
}; | ||
|
||
String[] deprecation = { | ||
"", | ||
"Warning: This section is subject to change so it is considered deprecated.", | ||
"This is your warning before the change happens. Please read the latest changelogs", | ||
"" | ||
}; | ||
|
||
conf.setComment("editor", header); | ||
} | ||
|
||
@Comment("If this is set to true, when you are in /crazycrates editor... any existing crate locations will be overridden on right click.") | ||
public static final Property<Boolean> overwrite_old_crate_locations = newProperty("editor.overwrite-old-crate-locations", false); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Support: https://discord.gg/badbones-s-live-chat-182615261403283459 | ||
# Github: https://github.com/Crazy-Crew | ||
# | ||
# Issues: https://github.com/Crazy-Crew/CrazyCrates/issues | ||
# Features: https://github.com/Crazy-Crew/CrazyCrates/issues | ||
# | ||
# List of all sounds: https://minecraft.wiki/w/Sounds.json#Java_Edition_values | ||
editor: | ||
# If this is set to true, when you are in /crazycrates editor... any existing crate locations will be overridden on right click. | ||
overwrite-old-crate-locations: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.