Помогите Права на время. PermissionEX

  • Автор темы Автор темы Kirill
  • Дата начала Дата начала

Kirill

Активный участник
Пользователь
Баллы
88
Как добавить игрока в группу на время в PermissionEx.
 
Почитайте вики по плагину на GitHub
Собсна, команда
pex user <user> group add <group> [world] [lifetime] в секундах
От лайка не откажусь)
 
А вот это, видимо, дать определённый перм группе на время: /pex group <group> timed add <permission> [lifetime] [world] И одному игроку: /pex user <user> timed add <permission> <lifetime in seconds> [world]
 
pex user <user> group add <group> [world] [lifetime]
Добавил себя на 10 секунд, прошло около часа... Забил!
Писал так:
pex user PogoD(мой ник) group add PD(группа гл.админа) world 10
 

Не то.
pex user <user> group add <group> [world] [lifetime]
Добавил себя на 10 секунд, прошло около часа... Забил!
Писал так:
pex user PogoD(мой ник) group add PD(группа гл.админа) world 10
Не обязательно писать


не пашет хоть так пиши хоть так.
 
кинь свой конфиг пожалуйста.
JavaScript:
#############################################################################
#                                                                           #
#                   Autorank 2 Advanced Config                              #
#                                                                           #
#   Please use the SimpleConfig unless you know what you are doing and      #
#   need functionality that the SimpleConfig doesn't provide.               #
#                                                                           #
#############################################################################

use advanced config: true
# all other advanced settings are ignored if this is set to false

afk integration: true
# If a compatible AFK plugin is found autorank will not count online time for AFK players
# This option is always on when using the SimpleConfig
# Currently supports: Essentials

leaderboard layout: '&r | &p - &d день(дней), &h час(ов) и &m минут(ы).'
leaderboard length: 10
# changes the appearance of the /ar leaderboard command
# &r : Ranking in the leaderboard
# &p : Player name
# &m : Minutes (with full days and full hours not counted)
# &h : Hours (with full days not counted)
# &d : Days
# &tm : Total amount of minutes
# &th : Total amount of hours

language: english
# Languages available: English, Dutch


ranks:
    user:
        requirements:
            time: 40h
        results:
            rank change: user; igrok
            command: 'eco give &p 10000'
            message: '&eПоздравляем! Вы теперь "Наш игрок".'
    igrok:
        requirements:
            time: 60h
        results:
            rank change: igrok; veteran
            command: 'eco give &p 500000'
            message: '&eПоздравляем! Вы теперь "Ветеран".'
           
# new requirements and results can be added by other plugins that hook into the Autorank API
# these are the ones that are included in the main plugin:
#
#   requirements:
#       time: 1d 1h 1m
#       exp: 20 (level)
#       money: 2000 (requires vault ! Player has to have at least this amount of money)
#       world: world_nether (player has to be in this world to get ranked)
#       gamemode: 1 (player has to have a certain gamemode, 0 = Survival mode, 1 = Creative mode, 2 = Adventure mode)
#       has item: id(:data) (checks the players inventory for the item)
#
#   results:
#       rank change: old-rank; new-rank
#       rank change: old-rank; new-rank; world (only works for permissions plugins that support this)
#       message: 'You got ranked up'
#       command: 'eco give &p 100' (executes a console command. &p will be replaced by the player name)

sql:
    enabled: false
    hostname: localhost:3306
    username: root
    password: ''
    database: minecraft
    table: autorank

#   
#    SQL not working yet
#
 
JavaScript:
#############################################################################
#                                                                           #
#                   Autorank 2 Advanced Config                              #
#                                                                           #
#   Please use the SimpleConfig unless you know what you are doing and      #
#   need functionality that the SimpleConfig doesn't provide.               #
#                                                                           #
#############################################################################

use advanced config: true
# all other advanced settings are ignored if this is set to false

afk integration: true
# If a compatible AFK plugin is found autorank will not count online time for AFK players
# This option is always on when using the SimpleConfig
# Currently supports: Essentials

leaderboard layout: '&r | &p - &d день(дней), &h час(ов) и &m минут(ы).'
leaderboard length: 10
# changes the appearance of the /ar leaderboard command
# &r : Ranking in the leaderboard
# &p : Player name
# &m : Minutes (with full days and full hours not counted)
# &h : Hours (with full days not counted)
# &d : Days
# &tm : Total amount of minutes
# &th : Total amount of hours

language: english
# Languages available: English, Dutch


ranks:
    user:
        requirements:
            time: 40h
        results:
            rank change: user; igrok
            command: 'eco give &p 10000'
            message: '&eПоздравляем! Вы теперь "Наш игрок".'
    igrok:
        requirements:
            time: 60h
        results:
            rank change: igrok; veteran
            command: 'eco give &p 500000'
            message: '&eПоздравляем! Вы теперь "Ветеран".'
         
# new requirements and results can be added by other plugins that hook into the Autorank API
# these are the ones that are included in the main plugin:
#
#   requirements:
#       time: 1d 1h 1m
#       exp: 20 (level)
#       money: 2000 (requires vault ! Player has to have at least this amount of money)
#       world: world_nether (player has to be in this world to get ranked)
#       gamemode: 1 (player has to have a certain gamemode, 0 = Survival mode, 1 = Creative mode, 2 = Adventure mode)
#       has item: id(:data) (checks the players inventory for the item)
#
#   results:
#       rank change: old-rank; new-rank
#       rank change: old-rank; new-rank; world (only works for permissions plugins that support this)
#       message: 'You got ranked up'
#       command: 'eco give &p 100' (executes a console command. &p will be replaced by the player name)

sql:
    enabled: false
    hostname: localhost:3306
    username: root
    password: ''
    database: minecraft
    table: autorank

# 
#    SQL not working yet
#


в том и прикол что тут постепенно идёт, а мне нужно по другому. Что бы я игрока записал в группу ток он бы через время стал в обычной группе.
Вот пример. Все становятся обычными игроками.
Код:
Vip:
        requirements:
            time: 60h
        results:
            rank change: default
            message: '&eВы теперь обычный игрок.'
Premium:
        requirements:
            time: 60h
        results:
            rank change: default
            message: '&eВы теперь обычный игрок.'

но я так пробовал, не выходит.
 
в том и прикол что тут постепенно идёт, а мне нужно по другому. Что бы я игрока записал в группу ток он бы через время стал в обычной группе.
Вот пример. Все становятся обычными игроками.
Код:
Vip:
        requirements:
            time: 60h
        results:
            rank change: default
            message: '&eВы теперь обычный игрок.'
Premium:
        requirements:
            time: 60h
        results:
            rank change: default
            message: '&eВы теперь обычный игрок.'

но я так пробовал, не выходит.
Ты хоть смотри: rank change: user(из какой); igrok(в какую). И названия групп:
JavaScript:
ranks:
    user ТУТ:
        requirements:
            time: 40h
        results:
            rank change: user; igrok
            command: 'eco give &p 10000'
            message: '&eПоздравляем! Вы теперь "Наш игрок".'
    igrok И ТУТ:
        requirements:
            time: 60h
 
Ты хоть смотри: rank change: user(из какой); igrok(в какую). И названия групп:
JavaScript:
ranks:
    user ТУТ:
        requirements:
            time: 40h
        results:
            rank change: user; igrok
            command: 'eco give &p 10000'
            message: '&eПоздравляем! Вы теперь "Наш игрок".'
    igrok И ТУТ:
        requirements:
            time: 60h
так? и вопрос, зачем у default requirements? Мне нужно что бы игрок был там на постоянной основе.
JavaScript:
ranks:
   Vip:
        requirements:
            time: 40h
        results:
            rank change: Vip; default
            command: 'eco give &p 10000'
            message: '&eПоздравляем! Вы теперь "Наш игрок".'
   default:
        requirements:
            time: 60h

поясню как мне нужно: есть игрок в группе default.
Он купил у меня допустим према. Как только я добавил его в PEx-e в группу Premium, то в плагине должно, допустим через 60 часов ,вернуть его обратно в группу default. Но что бы плагин не мог сам добавлять в какие то группы.
 
Сделай так. Добавь в пекс группу Money и там дай права авторанга. Купил вип, ты его сунул в Money и понеслась...
JavaScript:
ranks:
   Money:
        requirements:
            time: 2m Через две минуты
        results:
            rank change: Money; Vip он улетит в вип
            message: '&eВы приобрели Vip.'
   Vip:
        requirements:
            time: 40h через 40 часов
        results:
            rank change: Vip; default ОТКУДА КУДА
            command: 'eco give &p 10000' Это у меня приз за переход, тебе оно надо?
            message: '&eВы теперь обычный игрок.'
 
Сделай так. Добавь в пекс группу Money и там дай права авторанга. Купил вип, ты его сунул в Money и понеслась...
JavaScript:
ranks:
   Money:
        requirements:
            time: 2m Через две минуты
        results:
            rank change: Money; Vip он улетит в вип
            message: '&eВы приобрели Vip.'
   Vip:
        requirements:
            time: 40h через 40 часов
        results:
            rank change: Vip; default ОТКУДА КУДА
            command: 'eco give &p 10000' Это у меня приз за переход, тебе оно надо?
            message: '&eВы теперь обычный игрок.'


хм. попробуем. спасибо.
 
Назад
Верх Низ