- Баллы
- 173
- Имя в Minecraft
- Jampire
slowpokeперед последней '}' поставить break; и все![]()
Следуйте инструкциям в видео ниже, чтобы узнать, как установить наш сайт как веб-приложение на главный экран вашего устройства.
Примечание: Эта функция может быть недоступна в некоторых браузерах.
slowpokeперед последней '}' поставить break; и все![]()
Извини, лень было читать всю страницуslowpoke
2 страницы флуда ради:Есть уже такой плагин, точнее в 1 плагине.
Почти доделал список админов онлайн.
Плагин работает так:
У кого есть разрешение на OnlineGrove.Admin
Того выводит в список, который можно узнать командой /admins
String admins = "";
for (Player pl : Bukkit.getOnlinePlayers() {
if (pl.hasPermission("perm")) {
admins += pl.getName() + ", ";
}
}
admins = admins.substring(admins.length, admins.length-2);
sender.sendMessage(admins);
PlayerList
/papi ecloud download playerlist
Returns the player list matching the specified syntax
%playerlist_<type>,<subtype>,<include>,<output>,<subtype_value>%
Type:
all - Matches all players
online - Matches online players
offline - Matches offline players
Subtypes:
normal - Matches all players. Requires no <subtype_value>
perm - Matches all players that match the permission defined by <subtype_value>. Supports multiple permissions separated by + (perm.1+perm.2)
world - Matches all players in the world defined by <subtype_value>. Supports multiple worlds separated by + (world+world_nether)
nearby - Matches all players in a certain radius defined by <subtype_value>
Include:
yes - Include the player
no - Exclude the player
Output:
list - Returns a list of players separated by , . You can also change the separator with list-<separator>.*
amount - Returns amount of players matched
<integer> - Returns the player at the specified index
Examples:
%playerlist_all,normal,yes,list% # Tanguygab, cj89898, funnycube, clip, Frcsty, GabyTM, ItsMeGlare
%playerlist_online,perm,yes,amount,staff.admin% # 2
%playerlist_online,world,yes,2,buildingworld+spawnworld%` # cj89898, funnycube
%playerlist_online,nearby,yes,list,5% # Tanguygab, cj89898, clip
%playerlist_online,nearby,no,list,5% # Tanguygab, clip
%playerlist_online,nearby,no,list--,20% # Tanguygab-clip-Terfs
You can also use [placeholder] for papi placeholders in addition to the javascript {placeholder}
Note: Offline and All only support the Normal subtype.
Since , is used to separate the different parts of the placeholder, use \. instead if you want to display a ,.
В Essentials уже давно есть разделение игроков на группы в /list.Вот как можно сделать:
Код:PlayerList /papi ecloud download playerlist Returns the player list matching the specified syntax %playerlist_<type>,<subtype>,<include>,<output>,<subtype_value>% Type: all - Matches all players online - Matches online players offline - Matches offline players Subtypes: normal - Matches all players. Requires no <subtype_value> perm - Matches all players that match the permission defined by <subtype_value>. Supports multiple permissions separated by + (perm.1+perm.2) world - Matches all players in the world defined by <subtype_value>. Supports multiple worlds separated by + (world+world_nether) nearby - Matches all players in a certain radius defined by <subtype_value> Include: yes - Include the player no - Exclude the player Output: list - Returns a list of players separated by , . You can also change the separator with list-<separator>.* amount - Returns amount of players matched <integer> - Returns the player at the specified index Examples: %playerlist_all,normal,yes,list% # Tanguygab, cj89898, funnycube, clip, Frcsty, GabyTM, ItsMeGlare %playerlist_online,perm,yes,amount,staff.admin% # 2 %playerlist_online,world,yes,2,buildingworld+spawnworld%` # cj89898, funnycube %playerlist_online,nearby,yes,list,5% # Tanguygab, cj89898, clip %playerlist_online,nearby,no,list,5% # Tanguygab, clip %playerlist_online,nearby,no,list--,20% # Tanguygab-clip-Terfs You can also use [placeholder] for papi placeholders in addition to the javascript {placeholder} Note: Offline and All only support the Normal subtype. Since , is used to separate the different parts of the placeholder, use \. instead if you want to display a ,.
Так тут можно вывести на голограмму или в GUIВ Essentials уже давно есть разделение игроков на группы в /list.
Да пусть будет? Может, однажды один рандомный парниша случайно наткнется на эту тему в поисках решения своей проблемы.Вам делать нечего? Зачем подняли тему сто летней давности?