Skip to content

Commit

Permalink
Fixed Typo in Rules - Removed Assistant & Developer from RoleCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
TehZombiJeus authored and TehZombiJeus committed Nov 7, 2021
1 parent e764efd commit 964fa10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class RoleCommand extends CommandModule {
private final DefinedQuery<Role> STAFF_ROLES = new DefinedQuery<Role>() {
@Override
protected Query<Role> newQuery() {
return bot.getRoles("Senior Supporter", "Assistant", "Developer", "\uD83D\uDCBB Coding Wizard");
return bot.getRoles("Senior Supporter");
}
};

Expand All @@ -44,56 +44,6 @@ protected Query<Role> newQuery() {
add("Review Squad");
}};

private final ArrayList<String> ASSISTANT_ROLES = new ArrayList<String>() {{
add("Ultra Permissions");
add("Ultra Customizer");
add("Ultra Punishments");
add("Ultra Regions");
add("Insane Shops");
add("Ultra Economy");
add("Ultra Scoreboards");
add("Keep Roles");
add("SpigotMC");
add("MC-Market");
add("Songoda");
add("Polymart");
add("Verified");
add("Songoda Verified");
add("Review Squad");
add("Junior Supporter");
add("Supporter");
add("Senior Supporter");
add("Retired");
add("Wiki Editor");
add("Staff");
}};

private final ArrayList<String> DEVELOPER_ROLES = new ArrayList<String>() {{
add("Ultra Permissions");
add("Ultra Customizer");
add("Ultra Punishments");
add("Ultra Regions");
add("Insane Shops");
add("Ultra Economy");
add("Ultra Scoreboards");
add("Keep Roles");
add("SpigotMC");
add("MC-Market");
add("Songoda");
add("Polymart");
add("Verified");
add("Songoda Verified");
add("Review Squad");
add("Junior Supporter");
add("Supporter");
add("Senior Supporter");
add("Retired");
add("Wiki Editor");
add("Staff");
add("Assistant");
add("Team Manager");
}};

public RoleCommand(TechDiscordBot bot) {
super(bot);
}
Expand Down Expand Up @@ -141,11 +91,11 @@ public void onCommand(TextChannel channel, Member m, SlashCommandEvent e) {
return;
}

if((m.getRoles().contains(TechDiscordBot.getGuild().getRoleById(854044253885956136L)) && !m.getRoles().contains(TechDiscordBot.getGuild().getRoleById(608113993038561325L)) && !SENIOR_SUPPORTER_ROLES.contains(role.getName())) || m.getRoles().contains(TechDiscordBot.getGuild().getRoleById(608113993038561325L)) && !ASSISTANT_ROLES.contains(role.getName())) {
if((m.getRoles().contains(TechDiscordBot.getGuild().getRoleById(854044253885956136L)) && !m.getRoles().contains(TechDiscordBot.getGuild().getRoleById(608113993038561325L)) && !SENIOR_SUPPORTER_ROLES.contains(role.getName()))) {
e.replyEmbeds(
new TechEmbedBuilder("Role Management")
.color(Color.orange)
.text("**Senior Supporter**: Verified, Plugins, Marketplaces, Review Squad & Keep Roles\n**Assistant**: Staff, Supporter Roles, Retired, Wiki Editor & Plugin Lab\n**Developer**: Assistant & Team Manager")
.text("**Senior Supporter**: Verified, Plugins, Marketplaces, Review Squad & Keep Roles")
.build()
).queue();
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ public String getDescription() {

public enum Role {

CODING_WIZARD("Coding Wizard", "311178859171282944", "It was Tech & now it's MATRIX!, The former head of the operations."),
CODING_WIZARD("Coding Wizard", "311178859171282944", "It was Tech & now it's MATRIX! The former head of the operations."),
ASSISTANT("Assistant", "608113993038561325", "This is the Developers Assistant! If the Developers are not online, he is in charge. Occasionally also helps with coding."),
STAFF("Staff", "608114002387533844", "They are here to help! Don't argue with Staff. If you think there is an issue, please contact <@&608113993038561325> or <@&311178859171282944>."),
PATREON("Patreon", "795101981051977788", "These are our incredible Patreon supporters who getting rewarded by us for their monthly support with various rewards, additions and exclusive stuff."),
DONATOR("Donator", "311179148691505152", "These are amazing people who have donated to Tech!"),
VERIFIED_CREATOR("Knows how to Code", "435183665719541761", "A role given to people who have well known coding projects."),
NITRO_BOOSTERS("Nitro Booster", "585559418008109075", "These people get are also **AMAZING** who are helping us to unlock great features for our Discord!"),
REVIEW_SQUAD("Review Squad", "457934035549683713", "These people are the **AMAZING** people in the community who have review all of their plugin's owned by Tech."),
NITRO_BOOSTERS("Nitro Booster", "585559418008109075", "These are **AMAZING** people who are helping us to unlock great features for our Discord!"),
REVIEW_SQUAD("Review Squad", "457934035549683713", "These are the **AMAZING** people in the community who have review all of their plugin's owned by Tech."),
VERIFIED("Verified", "416174015141642240", "This role is given to members who have successfully verified that they've purchased *as least* one of Tech's resources.");

private final String name;
Expand Down

0 comments on commit 964fa10

Please sign in to comment.