Skip to content

Commit

Permalink
Fixed SelectKitArgument showing for plugins without kits
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Oct 19, 2023
1 parent 62b3072 commit ad6ac30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ public PluginArgumentsRegistry(PluginMain plugin) {
new ArenaSelectorArgument(this);
new LeaderboardArgument(this);
new LeaveArgument(this);
new SelectKitArgument(this);
if(plugin.getConfigPreferences().getOption("KITS")) {
new SelectKitArgument(this);
}
new StatsArgument(this);

//register admin arguments
Expand Down
16 changes: 6 additions & 10 deletions MiniGamesBox Classic/src/main/resources/rewards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,25 @@
# Plugily Projects rewards configuration
#
# Placeholders list:
# %PLAYER% - Current player name
# %WAVE% - Current wave number
# %MAPNAME% - Name of map
# %ARENA-ID% - Arena Identifier
# %PLAYERAMOUNT% - Number of players in game
# https://wiki.plugily.xyz/minigame/placeholders
#
# Commands are executed by default BY CONSOLE, use "p:" to preform command by player
# Since 3.6.3 you can use chance to execute command adding "chance(NUMBER):" (ex chance(10):) at the beginning of command
# You can use chance to execute command adding "chance(NUMBER):" (ex chance(10):) at the beginning of command
#
# Commands examples:
# - p:say Hello everyone in %MAPNAME%! # Player will say "Hello everyone in <map name here>"
# - broadcast Game %ARENA-ID% has ended! # Will broadcast "Game <arena name here> has ended" message
# - p:say Hello everyone in %arena_name%! # Player will say "Hello everyone in <map name here>"
# - broadcast Game %arena_name% has ended! # Will broadcast "Game <arena name here> has ended" message
# - chance(1):p:say I was very lucky! # Player has 1% chance to say "I was very lucky!"
# - p:chance(99):spawn # Player has 99% chance to teleport to spawn
# ^ YOU CAN EVEN SWAP CHANCE WITH PLAYER!
# - chance(50):eco give %PLAYER% 10 # Console has 10% chance to give player 10$
# - chance(50):eco give %player% 10 # Console has 10% chance to give player 10$
#
# Performed rewards:
# game-end
#
# You can unlock full potential of rewards using our script engine! (since 4.0.0)
# Just add example reward:
# - script:player.sendMessage("oh, hi %PLAYER%"); # It will send "oh, hi <player name>" to player! 100% plain java!
# - script:player.sendMessage("oh, hi %player%"); # It will send "oh, hi <player name>" to player! 100% plain java!
# - script:server.broadcastMessage("hello everyone"); # Broadcasts "hello everyone" to whole server
# - script:player.getInventory().addItem(new org.bukkit.inventory.ItemStack(org.bukkit.Material.DIRT));
# ^ Gives player dirt item (you must always use direct package names for not provided objects)
Expand Down

0 comments on commit ad6ac30

Please sign in to comment.