✨ AdvancedMention (DISCONTINUED) icon

✨ AdvancedMention (DISCONTINUED) -----

Most Needed Chat Mention System! (Player/Everyone/Staff)



Update 1.0.3
update v1.0.3

* m entionPlayer without the '@' changes to @<playerName> now.
* Check the spoiler below to see details and what it offers.
* Any API ideas you have please put forward.

Code (Java):
package me.syxteen.advancedmention.listeners ;

import me.syxteen.advancedmention.API.amAPI ;
import org.bukkit.ChatColor ;
import org.bukkit.Sound ;
import org.bukkit.entity.Player ;
import org.bukkit.event.EventHandler ;
import org.bukkit.event.Listener ;
import org.bukkit.event.player.PlayerJoinEvent ;

public class APITest implements Listener {

    amAPI api ;

    @EventHandler
    public void onJoin (PlayerJoinEvent event ) {
        Player player = event. getPlayer ( ) ;

        /*/ Checking if the player hasn't played before.
         *  sends message(msg) to the player with @<playerName>
         */

        if ( !player. hasPlayedBefore ( ) ) {
            api. mentionPlayer (player, ChatColor. AQUA + "Welcome to the network!" ) ;
            /*/ sending a sound to player is simple (no need to get location)
             */

            api. sendPlayerSound (player, Sound. ENTITY_PLAYER_LEVELUP, 1, 1 ) ;
        }

        /*/ if the player has played, we send them this one
         *  sends message(msg) to the player with @<playerName>
         */

        api. mentionPlayer (player, ChatColor. GREEN + "Welcome back..." ) ;

        /*/ sending a sound to player is simple (no need to get location)
         */

        api. sendPlayerSound (player, Sound. BLOCK_NOTE_BELL, 1, 1 ) ;


        /*/ Dealing with everyoneMention is easy.
         *  broadcast to everyone the message.
         *  *not ideal to send this when the player joins but for this demo to see if it works*
         *
         *  will display @everyone in front of the message('msg')
         */

        api. mentionEveryone ( player. getName ( ) + "has joined the server!" ) ;
        /*/ sending a sound to everyone is simple (no need to get location aswell)
         */

        api. sendEveryoneSound (Sound. ENTITY_PLAYER_LEVELUP, 2, 2 ) ;
    }
}
 

* If your not a developer still useful to download this version, comes with some 1.15 support features.
----------, Jun 17, 2020
Resource Information
Author:
----------
Total Downloads: 4,648
First Release: Jun 15, 2020
Last Update: Sep 8, 2021
Category: ---------------
All-Time Rating:
7 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings