(Only do it you can do it for FREE) StaffChat Plugin

Status
This thread has been locked.

Plyflex

Feedback score
0
Posts
361
Reactions
216
Resources
0
Plugin: StaffChat
Commands: ./sc or ./staffchat
Permissions: staffchat.use (allows you to use ./staffchat or ./sc)
Plugin verison: 1.7 spigot
The color should be light blue when you type in ./sc (Should look like HCF staff chat)
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Annie

ApolloSMP
Supreme
Feedback score
20
Posts
682
Reactions
402
Resources
9

ChiraqsBest

Feedback score
0
Posts
73
Reactions
18
Resources
0
Code:
public class StaffChatEvent implements Listener{
       
        @EventHandler
        public void onStaffChatSpeak(AsyncPlayerChatEvent event) {
                Player p = event.getPlayer();
                //check if arraylist of staff contains said player if(StaffChatCmd.getStaffChat().contains(p)) {
                        //for-each through the online players for(Player pl : p.getServer().getOnlinePlayers()) {
                                if(pl.hasPermission("**") && //this was for staffalerts !ToggleAlertsCmd.getAlertStoppers().contains(pl)) {
                                        String staffChatPrefix = "whatever your heart desires";
                                        pl.sendMessage(staffChatPrefix+ //any colors you please + event.getMessage().trim());
                                        event.setCancelled(true);
                                }
                        }
                       
                }
        }

}

send this to any random dev and there ya go.
 

Blowns

Premium
Feedback score
1
Posts
1,014
Reactions
526
Resources
0
Code:
public class StaffChatEvent implements Listener{
      
        @EventHandler
        public void onStaffChatSpeak(AsyncPlayerChatEvent event) {
                Player p = event.getPlayer();
                //check if arraylist of staff contains said player if(StaffChatCmd.getStaffChat().contains(p)) {
                        //for-each through the online players for(Player pl : p.getServer().getOnlinePlayers()) {
                                if(pl.hasPermission("**") && //this was for staffalerts !ToggleAlertsCmd.getAlertStoppers().contains(pl)) {
                                        String staffChatPrefix = "whatever your heart desires";
                                        pl.sendMessage(staffChatPrefix+ //any colors you please + event.getMessage().trim());
                                        event.setCancelled(true);
                                }
                        }
                      
                }
        }

}

send this to any random dev and there ya go.
i tryed this but gotten errors with red squiglys over StaffChatCmd.getStaffChat() and ToggleAlertsCmd.getAlertStoppers() What am i copyeing wrong ??
 

ChiraqsBest

Feedback score
0
Posts
73
Reactions
18
Resources
0
i tryed this but gotten errors with red squiglys over StaffChatCmd.getStaffChat() and ToggleAlertsCmd.getAlertStoppers() What am i copyeing wrong ??
Damn, this is a rare issue that only comes about every 420 years! the steps to fix this are:
1. grab a box of cheerios
2. download jd-gui
3. skinny dip into your bathtub!

congratulations! You have successfully copypasta'd the code!
 

DamagedShadows

Supreme
Feedback score
0
Posts
943
Reactions
157
Resources
0
Plugin: StaffChat
Commands: ./sc or ./staffchat
Permissions: staffchat.use (allows you to use ./staffchat or ./sc)
Plugin verison: 1.7 spigot
The color should be light blue when you type in ./sc (Should look like HCF staff chat)

I have an idea for you.
- Google
Or
- Spigot

Look it up. Simple[DOUBLEPOST=1464422314][/DOUBLEPOST]https://www.spigotmc.org/resources/staffchat.2643/

https://www.spigotmc.org/resources/staff-chat.23299/

Found those in 2 seconds on spigot
 
Status
This thread has been locked.
Top