Skip to content

Conversation

@Sterll
Copy link

@Sterll Sterll commented May 15, 2024

We can now disable the Group Algorithm.

import fr.ph1lou.werewolfapi.basekeys.ConfigBase;

@Configuration(config = @ConfigurationBasic(key = "werewolf.configurations.group_algo.name", loreKey = "werewolf.configurations.group_algo.description",
appearInMenu = false))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

une raison particulière pour ne pas le faire apparaitre dans le menu ?

Bukkit.broadcastMessage(game.translate(Prefix.ORANGE, "werewolf.announcement.day",
Formatter.number(event.getNumber())));
groupSizeChange();
if(game.getConfig().isConfigActive("werewolf.configurations.group_algo.name")){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

la clef doit être mise en constante dans la classe ConfigBase dans Werewolfapi

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai pull request sur l'api

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sterll mais du coup la constante que tu as créé tu l'utilise ms pas dans l'annotation ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est pck j'attendais que tu acceptais la pull request de l'api

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok tu vas le changer bientot ?

Bukkit.broadcastMessage(game.translate(Prefix.YELLOW, "werewolf.announcement.night",
Formatter.number(event.getNumber())));
groupSizeChange();
if(game.getConfig().isConfigActive("werewolf.configurations.group_algo.name")){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem utilisez la constante définie plus haut

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il ne faut pas commit ce fichier à supprimer

import fr.ph1lou.werewolfapi.annotations.ConfigurationBasic;
import fr.ph1lou.werewolfapi.basekeys.ConfigBase;

@Configuration(config = @ConfigurationBasic(key = "werewolf.configurations.group_algo.name", loreKey = "werewolf.configurations.group_algo.description",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dans key: utilisez une constante à définir dans ConfigBase dans werewolfapi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants