Skip to content

Commit

Permalink
Changed some console messages
Browse files Browse the repository at this point in the history
  • Loading branch information
itzCrih committed Dec 27, 2023
1 parent 6d82043 commit c470a33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Credits to Ytnoos and [CoralMC](https://www.coralmc.it/) (I am not part of the C
Links: [Polymart](https://polymart.org/resource/coralwinter.5194), [Contact me](https://t.me/itz_Crih)
## Features
- Snowfall (only working if ProtocolLib is installed)
- Shovel item customizable in configuration.
- Break the snow blocks with a diamond shovel and get a snowball
- Broken snow blocks will respawn after a few seconds.
- PvP only enabled if you have a snowball in your hand
- Santashovel command will give you a diamond shovel with custom display name and lore.
- Santashovel command will give you a custom shovel with custom display name and lore.
- Break & place blocks protection included! (you can disable it on the config tho)
## Terms of services
You will only have to comply with these terms if you use the code or fork the repo.
Expand All @@ -33,7 +34,6 @@ To install the plugin follow the steps below.
3. Start your server and have fun!
## Todo
- Advent Calendar (GUI)
- Custom Santa Shovel item configurable in settings

Suggest me something to add to this plugin! [Contact me](https://t.me/itz_Crih)
***
3 changes: 2 additions & 1 deletion src/main/java/it/itzcrih/coralwinter/utils/SantaShovel.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public ItemStack createSantaShovel() {
Material spadeType = Material.getMaterial(spadeTypeName);

if (spadeType == null) {
CoralWinter.getInstance().getLogger().severe("The material inserted in the configuration is incorrect!");
CoralWinter.getInstance().getLogger().severe("[!] Invalid material");
CoralWinter.getInstance().getServer().getConsoleSender().sendMessage("Since the material type inserted in the configuration is incorrect, we replaced that with a diamond shovel!");
spadeType = Material.DIAMOND_SPADE;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Diamond shovel settings
santashovel:
type: DIAMOND_SPADE # Insert a valid material
type: DIAMOND_SPADE # Please insert a valid material (STONE_SPADE, GOLD_SPADE, DIAMOND_SPADE, WOOD_SPADE, IRON_SPADE)
give_on_join: true
display-name: "&c&lPala natalizia"
lore:
Expand Down

0 comments on commit c470a33

Please sign in to comment.