Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,500 resources
02
Days
07
Hours
44
Mins
12
Secs

BungeeUtils (BungeeCord API)

Status
This thread has been locked.

birthdates

Premium
Feedback score
1
Posts
87
Reactions
38
Resources
0
BUNGEEUTILS
FEATURES:
  • Simple and easy to use
  • Very common methods.
  • Easy API.
  • a WIP
HOW TO USE?:
  • First put the BungeeUtils.jar into your bungeecord plugins folder.
  • Then start up the server and you go the utils

NEED HELP?:

WHAT ARE THE METHODS?:
Also, These Server s and proxiedplayer p's are just variables it basically means that you need to insert a proxiedplayer or a server. so for example BungeeUtil.getServerName(player.getServer, false);

Imports:
net.md_5.bungee.api.connection.ProxiedPlayer
net.md_5.bungee.api.connection.Server
(for the BungeeUtil.)me.birthdates.bungeeutils
  • getServerName(Server s, booelan FirstLetterCaps)
  • Example: String name = BungeeUtil.getServerName(server, false);
  • Response: (Lets say the server name was hcf) "hcf" (if the FirstLetterCaps is true) "Hcf"
  • getRandomGlobalPlayer()
  • This one is simple, It just gets a random player on the network(as a proxiedplayer)
  • Example: ProxiedPlayer random = BungeeUtil.getRandomGlobalPlayer();

  • getRandomPlayer(Server s)
  • This one will just give you a random player from a server.
  • Example: ProxiedPlayer randomserverplayer = BungeeUtil.getRandomPlayer(server);

  • getDisplayName(ProxiedPlayer p)
  • Example: String displayname = ServerUti.getDisplayName(p);
  • This will just give you them their display name for example a nickname in essentials.

  • getServerPlayers(Server s)
  • Example: int players = BungeeUtil.getServerPlayers(hcf);

  • getGlobalPlayers()
  • Example: int globalplayers = BungeeUtil.getGlobalPlayers();
  • Response: It will give you all of the current online players on the bungee.

  • getPlayerPermissions(ProxiedPlayer p)
  • Example: List<String> perms = BungeeUtil.getPlayerPermissions(p);
  • Response: This will basically give you all of the permissions for a certain player in an arraylist(basically a list)

  • getServerMotd(Server s)
  • Example: String motd = BungeeUtil.getServerMotd(hcf);
  • Response: This will basically give the server's motd given (from the config).

  • getPlayerPing(ProxiedPlayer p)
  • Example: int ping = BungeeUtil.getPlayerPing(p);
  • Response: It will give you any players ping(only a proxiedplayer).
That's all I have if you have any suggestions please put it down in the comments.

TOS:
  • When you download BungeeUtils you agree to
  • Not redistributing any of its code.
FAQ:
  • What is the "Server s and ProxiedPlayer p???":
    These Server s and proxiedplayer p's are just variables it basically means that you need to insert a proxiedplayer or a server. so for example BungeeUtil.getServerName(player.getServer, false);
If you have any other questions, Comment it.

DOWNLOAD:
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

WristzPvP

Feedback score
1
Posts
138
Reactions
49
Resources
0
Looks good man!
 
Status
This thread has been locked.
Top