-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
FastUse Grim / NCP
AutoRole Module Removed bad notifications styles
Showing
39 changed files
with
280 additions
and
265 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
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
5 changes: 5 additions & 0 deletions
5
...in/java/net/ccbluex/liquidbounce/features/module/modules/combat/velocitys/VelocityMode.kt
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
89 changes: 89 additions & 0 deletions
89
src/main/java/net/ccbluex/liquidbounce/features/module/modules/player/AutoRole.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,89 @@ | ||
/* | ||
* ZAVZ Hacked Client | ||
*/ | ||
package net.ccbluex.liquidbounce.features.module.modules.player; | ||
|
||
import net.ccbluex.liquidbounce.FDPClient; | ||
import net.ccbluex.liquidbounce.config.impl.FriendsConfig; | ||
import net.ccbluex.liquidbounce.event.EventTarget; | ||
import net.ccbluex.liquidbounce.event.UpdateEvent; | ||
import net.ccbluex.liquidbounce.features.module.Module; | ||
import net.ccbluex.liquidbounce.features.module.ModuleCategory; | ||
import net.ccbluex.liquidbounce.features.module.ModuleInfo; | ||
import net.ccbluex.liquidbounce.utils.render.ColorUtils; | ||
import net.ccbluex.liquidbounce.value.BoolValue; | ||
import net.minecraft.scoreboard.ScorePlayerTeam; | ||
|
||
import java.util.Arrays; | ||
|
||
@ModuleInfo(name = "AutoRole", category = ModuleCategory.PLAYER) | ||
public class AutoRole extends Module { | ||
|
||
private final BoolValue formattingValue = new BoolValue("Formatting", true); | ||
|
||
private static final String[] STAFF_PREFIXES = { | ||
"[Moderador] ", | ||
"[MODERADOR] ", | ||
"[Mod] ", | ||
"[MOD] ", | ||
"[Administrador] ", | ||
"[ADMINISTRADOR] ", | ||
"[Admin] ", | ||
"[ADMIN] ", | ||
"[Coordenador] ", | ||
"[COORDENADOR] ", | ||
"[Coord] ", | ||
"[COORD] ", | ||
"[Gerente] ", | ||
"[GERENTE] ", | ||
"[CEO] ", | ||
"[Dono] ", | ||
"[DONO] ", | ||
"[DIRETOR] ", | ||
"[DEV] ", | ||
"[Dev] ", | ||
"Diretor ", | ||
"DIRETOR ", | ||
"Dev ", | ||
"DEV ", | ||
"Mod ", | ||
"MOD ", | ||
"[Master] ", | ||
"[MASTER] ", | ||
"[CEO] ", | ||
"[TRIAL] " | ||
}; | ||
|
||
private boolean isStaff(final String prefix) { | ||
return Arrays.asList(STAFF_PREFIXES).contains(ColorUtils.stripColor(prefix)); | ||
} | ||
|
||
@EventTarget | ||
public void handle(final UpdateEvent event) { | ||
final FriendsConfig friendManager = FDPClient.fileManager.getFriendsConfig(); | ||
|
||
String[] formatCodes = {"§k", "§l", "§m", "§n", "§o"}; | ||
int currentFormatIndex = 0; | ||
|
||
for (final ScorePlayerTeam team : mc.theWorld.getScoreboard().getTeams()) { | ||
if (this.isStaff(team.getColorPrefix())) { | ||
for (final String member : team.getMembershipCollection()) { | ||
if (!friendManager.isFriend(member)) { | ||
friendManager.addFriend(member); | ||
|
||
String colorPrefix = team.getColorPrefix(); | ||
if (formattingValue.get() && currentFormatIndex < formatCodes.length) { | ||
colorPrefix = formatCodes[currentFormatIndex] + colorPrefix; | ||
currentFormatIndex++; | ||
if (currentFormatIndex >= formatCodes.length) { | ||
currentFormatIndex = 0; | ||
} | ||
} | ||
|
||
chat("§7[§d!§7]§7 ADICIONADO: " + colorPrefix + member); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.
2077e25
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grim fastuse?