Skip to content

Commit

Permalink
Last minute changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kadotcom committed Feb 20, 2024
1 parent d3e1d66 commit 674e6a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
String cmdName = pdf.getKey();
Object cmdProperties = pdf.getValue();
String stringedProperties = cmdProperties.toString().replace("{","").replace("}","").replace("description=","").replace(", usage="," | ");
p.sendMessage(ChatColor.RED + "/" + cmdName + " | " + stringedProperties);
p.sendMessage(ChatColor.WHITE + "/" + cmdName + " | " + stringedProperties);
}
//p.sendMessage("§f[§cLifeStolen§f] This command is disabled as it's going under a rework that will be out either next Tested release, or in 5.0.");
}else if (plugin.getConfig().getBoolean("permissions.lshelp.bePermissionBased") && !p.hasPermission(plugin.getConfig().getString("permissions.lshelp.permission"))){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void onPlayerDeath(PlayerDeathEvent event) {
}else if (event.getEntityType() == EntityType.CREEPER || event.getEntityType() == EntityType.MINECART_TNT || event.getEntityType() == EntityType.PRIMED_TNT) {
dm = plugin.getConfig().getString("translation.deathMessages.explosion").replace("&", "§").replace("${player}", p.getName()).replace("${attacker}", event.getEntityType().name());
event.setDeathMessage(dm);
}else if(event.getEntityType() == EntityType.SKELETON || event.getEntityType() == EntityType.ARROW || event.getEntityType() == EntityType.SPECTRAL_ARROW){
}else if(event.getEntityType() == EntityType.SKELETON || event.getEntityType() == EntityType.ARROW || event.getEntityType() == EntityType.SPECTRAL_ARROW) {
dm = plugin.getConfig().getString("translation.deathMessages.shot").replace("&", "§").replace("${player}", p.getName()).replace("${attacker}", event.getEntityType().name());
event.setDeathMessage(dm);
}else{
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ translation:
deathMessages: # Messages that appears when a player dies.
generic: "${player} was slain by ${attacker}" # The message that appears when a player dies from a generic reason
explosion: "${player} was exploded by ${attacker}" # The message that appears when a player dies from a explosion
shot: "${player} was shot by ${attacker}" # --The message that appears when a player dies from someone shooting the player.
shot: "${player} was shot by ${attacker}" # The message that appears when a player dies from someone shooting the player.
errorMessages: # The message that appears when a player encounters an error when running a command.
noPermission: "You don't have permission to use this command." # The message that appears when a player doesn't have permission to use a command.
offlinePlayer: "Player wasn't found." # The message that appears when an offline player is mentioned in a command.

0 comments on commit 674e6a4

Please sign in to comment.