-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custom skull texture, reload config, optional parameters
- Loading branch information
Showing
14 changed files
with
556 additions
and
16 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
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
22 changes: 21 additions & 1 deletion
22
src/main/java/ru/rivendell/aestheticmenu/commands/impl/ReloadCommand.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 |
---|---|---|
@@ -1,4 +1,24 @@ | ||
package ru.rivendell.aestheticmenu.commands.impl; | ||
|
||
public class ReloadCommand { | ||
import org.bukkit.command.CommandSender; | ||
import org.jetbrains.annotations.NotNull; | ||
import ru.rivendell.aestheticmenu.AestheticMenu; | ||
import ru.rivendell.aestheticmenu.commands.Command; | ||
import ru.rivendell.aestheticmenu.config.configurations.messages.MessagesConfig; | ||
import ru.rivendell.aestheticmenu.gui.PlayerInventoriesBuffer; | ||
import ru.rivendell.aestheticmenu.gui.menu.MenuInventory; | ||
|
||
public class ReloadCommand extends Command { | ||
|
||
private AestheticMenu plugin; | ||
|
||
public ReloadCommand(String permission, MessagesConfig messagesConfig, AestheticMenu plugin) { | ||
super(permission, messagesConfig); | ||
this.plugin = plugin; | ||
} | ||
@Override | ||
public boolean onExecute(@NotNull CommandSender sender, org.bukkit.command.@NotNull Command command, @NotNull String s, @NotNull String[] args) { | ||
plugin.reload(); | ||
return true; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/ru/rivendell/aestheticmenu/config/configurations/gui/EnchantmentConfig.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,18 @@ | ||
package ru.rivendell.aestheticmenu.config.configurations.gui; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Setter | ||
public class EnchantmentConfig { | ||
|
||
@Getter private String enchant; | ||
private int level; | ||
|
||
public int getLevel() { | ||
if(level == 0) return 1; | ||
|
||
return level; | ||
} | ||
|
||
} |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
public enum RequirementType { | ||
|
||
ANY, | ||
ALL; | ||
ALL, | ||
NONE; | ||
|
||
} |
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.