Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] Plugin Auto-In


xNuman

Rekomendowane odpowiedzi

Opublikowano

Cześć,

 

Posiadam plugin Auto-In i gdy gracz PREMIUM się loguje to pisze np. [Auto-In] Zalogowano z konta Premium!

 

Wiecie może jak usunąć na początku to [Auto-In]? Bo lepiej by tak wyglądało.

W configu nie ma chyba tego!

Opublikowano

Jeżeli dobrze mi się wydaje (bo nie mam tego pluginu na kompie) to w configu:

 

Messages:
  AutoLogin:

AutoLogin: odpowiada za wiadomość przy tym.

Jeżeli nie, to podaj cały config tutaj.

Opublikowano

Nie ma tego w configu.

 

Config:

 

 

# Auto-In 3.0 by GoToFinal! Now with bungee and potatos!

# Issues/bugs, ideas, wiki, api on github: https://github.com/GotoFinal/AutoIn
# |
# You like this plugin? You can support me by donate: (USD) https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UAAQ6D5CU2F5L
# More donate links in PLN, GBP or EUR you can find here: http://www.spigotmc.org/resources/auto-in.578/
# You can find my other plugins here: http://www.spigotmc.org/resources/authors/gotofinal.31682/
# I also creating plugins "for request" ($), Skype: gotofinal, e-mail: [email protected]
# |
# If you want use this plugin with bungee vist wiki: https://github.com/GotoFinal/AutoIn/wiki/Bungee-Cord
# Don't change options if you don't understand them -> ask.
# Note: proxy = BungeeCord (or other supported proxy server), Server = Bukkit/Cauldron/Forge/Spigot server.
 
Sockets:  # If you want use this plugin with proxy server (BungeeCord) see: https://github.com/GotoFinal/AutoIn/wiki/Sockets
  - Required: true
    Port: 22644
    ServerName: serverOne
    Enabled: false
    Host: localhost
    TYPE: LISTENER
  - Port: 22644
    Enabled: false
    Host: localhost
    TYPE: HANDLER
 
# Options
 
Options:  # options that can be used by proxy and server plugin.
  ConfigurationVersion_DO_NOT_CHANGE_THIS: 4
  NettyThreads: 0 # 0 -> unlimited/as needed.
  UseChannels: false # DON'T USE THAT IF YOU CAN USE SOCKETS, Enable when you can't use sockets but you want use that on bungee server, it isn't good as sockets, but it should not explode. NOTE: You NEED MySQL for that, and this is slower and may by VERY buggy on first join.
  ReTryConnectSocketTime: 250 # Time in ms between trying connect LISTENER to HANLDER socket, on linux using smaller times can cause some weird problems.
  SaveData:  # where AutoIn should store exceptions, enabled login, whitelists, cache and other player settings.
    Type: SQLite
    MySQL: 
      Host: localhost
      Port: 3306
      User: root
      Pass: root
      Database: database
      Prefix: GT_
    SQLite: 
      File: AutoIn_PlayerOptions.db
 
# Both
 
  Both: 
 
    Dependencies: 
      ForceDisable:  # If you have one of that plugin, you can force AutoIn to don't use them even if they can be used. (change to true)
        ProtocolLib: false
        Skript: false
        AuthMe: false
        LogIt: false
        XAuth: false
        LoginSecurity: false
 
    Listeners: 
      GetFromModule: true # you can try disable that and manualy configure priority below if auto-login will stop work after update of auth pluhin. PS: tell me about that problem!
      PlayerLoginEvent: LOWEST
      PlayerJoinEvent: LOWEST
      PlayerQuitEvent: MONITOR
 
    Players: 
      AutoLogin: true # no more /login commands for premium users! Enable only on servers where you have auth plugin!
      NegateExceptions: false # if true, then all players are exception by default, they can use /ai IAmNowPremium to remove exception flag (NOTE: they will lose all data after login as premium if you have fixedUUIDs set to false)
      Registration: false # if true, then even premium players needs to register. PS: You can make registration optional, see wiki: https://github.com/GotoFinal/AutoIn/wiki/Registration
      AllowNewCrackedPlayers: true # A.K.A. SwitchMode, If you disable that, only old cracked players will be able to join. New cracked players will be kicked from server. Good if you want switch from offline-mode to online-mode without losing players!
      FixedUUID: false # if true, then everyone have UUID generated from nickname
      CrackedWhiteListEnabled: false # WhiteList that works only on cracked players, black-list works even if this is disabled.
 
      ForceLogin: 
        UseRegEx: false # Allow use RegEx in nicknames list, like 'Test\\d{1,3}'
        Nicknames:  # Nicknames from this list don't need use login or register command, use to supprot mods like buildcraft and others
          - SomeNicknameThatDoNotNeedUseLoginOrRegisterCommandEvenIfHeDoNotHavePremium
 
      Sessions: 
        Enabled: false # If enabled, plugin will remember premium players with their IP number, when servers will be down, premium players can be still auto-logged if IP will be valid.
        AsServerProtect: false # If true, then players with valid session can join even if mojang server are down and without using password. PS: You can enable this and ServerProtect, then registered players OR players with valid session can join.
        Expires: 1d # time in easy format, 1w = 1 week, 1d = 1 day, 1d5h12s -> 1 day, 5 hours, 12 seconds
        ExpiresOnRestart: true # If true sessions aren't saved on reload.
 
      Protections: 
        CrackedPlayersNicknames:  # If enabled, when new cracked player join to game he will get special protection "flag", that work like exception-player. so even if someone buy premium account with this same nickname, he will be still tract as cracked player.
          # If player will buy premium, he must disable protection using "IamNowPremium" command, or admin must disable it manually, using API or /setProtection command.
          Enabled: true
          AutoProtect: true # If disabled, player must use "ProtectMe" command, or protection must be enabled manually, using API or /setProtection command
 
 
 
    ServerProtect: 
      Enabled: true # If enabled and mojang server don't work, only registered players can join (So you must set "Registration" to true). If disabled, all players will be kicked.
 
    Cache: true # If enabled plugin will remember if username was premium. (It's saved to database/file) NOTE: Enable that if you have bigger server, like 100/200+ players online.
 
# Server
 
  Server:  # ignored by proxy plugin
 
    UpdateCacheOnPreJoin: false # It will try check if cache is updated before player join.
    UpdateCacheOnJoin: true # It will try check if cache is updated after player join.
 
 
# Proxy
 
  Proxy:  # ignored by server
    NeedLoginToUseCommands: true # Players needs to be logged in to use commands
    NotBlocked:  # Player can use this commands
      - /login
      - /register
      - /l
    ForcedServers:  # players from selected group can be send to other servers. This override Proxy/BungeeCord setting!
      PREMIUM: 
        Enabled: false
        Server: PremiumServer # works like "default_server" from bungee
        Force: false # works like "force_default_server" from bungee
        ForcedHosts:  # works like "forced_hosts" from bungee -> this override "Force" option
          eg: nul.goto.?...\\.. .final..IIlIlIIlIl@42e15c45
        Fallback: FallbackServer # like "fallback_server" from bungee
      CRACKED: 
        Enabled: false
        Server: CrackedServer # works like "default_server" from bungee
        Force: false # works like "force_default_server" from bungee
        Fallback: FallbackServer # like "fallback_server" from bungee
      EXCEPTION: 
        Enabled: false
        Server: PremiumServer # works like "default_server" from bungee
        Force: true # works like "force_default_server" from bungee
        Fallback: FallbackServer # like "fallback_server" from bungee
        Parent: CRACKED # This status will use this same settings as parent status, but you can override that settings by adding them here.
      ERROR: 
        Enabled: false
        Server: ErrorServer # works like "default_server" from bungee
        Force: false # works like "force_default_server" from bungee
        Fallback: FallbackServer # like "fallback_server" from bungee

 

Plik messages.yml:

 

 

# Messages configuration file of AutoIn plugin!

# Set message to empty string (""), to disable it.
# You can use JSON messages on bunnge.
# You can also use JSON in 1.8 spigot, but not in kick messages.
RandomMessage: ;)
Commands:
  NoPermissions: '&cNie masz uprawnien!'
  Other:
    Done:
      SimpleSet: '&aDone! You change value of &7{name}&a to &7{value}'
      SimpleGet: '&aDone! Value of &7{name}&a is &7{value}'
      IAmNowPremium: '&aDone! You are removed from protection list.'
      ProtectMe: '&aDone! You are added to protection list.'
      FeatureIsDisabled: '&cSorry, but this feature is disabled.'
      ReloadMsg: '&aDone! Messages reloaded!'
      Fix: '&aDone! Bug fixed!'
    UpdateCache:
      Start: '&7Started updating cache database... (it may take some time, you can
        see progress on console)'
      Done: '&aDone! &7Cache updated.'
  Help: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rsetException &8<&7nickname&8>&7\
    \ &8<&7true&8|&7false&8>&7&r\n    &8/&7AutoIn &rsetEnabledLogin &8<&7nickname&8>&7\
    \ &8<&7true&8|&7false&8>&7&r\n    &8/&7AutoIn &rsetProtection &8<&7nickname&8>&7\
    \ &8<&7true&8|&7false&8>&7&r\n    &8/&7AutoIn &rsetWhitelistStatus &8<&7nickname&8>&7\
    \ &8<&7white&8|&7black&8|&7remove&8>&7&r\n    &8/&7AutoIn &risException &8<&7nickname&8>&7&r\n\
    \    &8/&7AutoIn &risProtected &8<&7nickname&8>&7&r\n    &8/&7AutoIn &rhasEnabledLogin\
    \ &8<&7nickname&8>&7&r\n    &8/&7AutoIn &rgetWhitelistStatus &8<&7nickname&8>&7&r\n\
    \    &8/&7AutoIn &rgetPremiumStatus &8<&7nickname&8>&7&r\n    &8/&7AutoIn &rIAmNowPremium&r\n\
    \    &8/&7AutoIn &rProtectMe&r\n    &8/&7AutoIn &rReloadMsg&r"
  Usage:
    setException: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rsetException\
      \ &8<&7nickname&8>&7 &8<&7true&8|&7false&8>&7&r"
    setProtection: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rsetProtection\
      \ &8<&7nickname&8>&7 &8<&7true&8|&7false&8>&7&r"
    setEnabledLogin: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rsetEnabledLogin\
      \ &8<&7nickname&8>&7 &8<&7true&8|&7false&8>&7&r"
    setWhitelistStatus: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn\
      \ &rsetWhitelistStatus &8<&7nickname&8>&7 &8<&7white&8|&7black&8|&7remove&8>&7&r"
    getException: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &risException\
      \ &8<&7nickname&8>&7&r"
    getProtection: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &risProtected\
      \ &8<&7nickname&8>&7&r"
    getEnabledLogin: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rhasEnabledLogin\
      \ &8<&7nickname&8>&7&r"
    getWhitelistStatus: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn\
      \ &rgetWhitelistStatus &8<&7nickname&8>&7&r"
    getPremiumStatus: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rgetPremiumStatus\
      \ &8<&7nickname&8>&7&r"
    IAmNowPremium: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rIAmNowPremium&r"
    ProtectMe: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rProtectMe&r"
    ReloadMsg: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rReloadMsg&r"
    Fix: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rFix &8<&7NumOfFix&8>&7&r"
    UpdateCache: "You typed: &7{name}&r\n  Vaild syntax: \n    &8/&7AutoIn &rUpdateCache\
      \ &8<&7nickname&8>&7&r\n    &8/&7AutoIn &rUpdateCache &8<&7nickname&8>&7&8[&7,&8<&7nickname&8>&7&8[&7,&8<&7nickname&8>&7&8]&7...&8]&7&r\n\
      \    &8/&7AutoIn &rUpdateCache -all&r"
  Pattern:
    help: (help|h|hlp)
    setException: (set|s)(e(|xception))
    setProtection: (set|s)(p)(|(rot(|ect(|(ed|ion)))))
    setEnabledLogin: (set|s)(e(|nabled))(l(|ogin))
    setWhitelistStatus: (set|s)(w(|hite))(l(|ist))(|s(|tatus))
    getException: ((g(|et))|(i(|s)|h(|as)))(e(|xception))
    getProtection: ((g(|et))|(i(|s)|h(|as)))(p)(|(rot(|ect(|(ed|ion)))))
    getEnabledLogin: ((g(|et))|(i(|s)|h(|as)))(e(|nabled))(l(|ogin))
    getWhitelistStatus: (g(|et))(w(|hite))(l(|ist))(|s(|tatus))
    getPremiumStatus: (g(|et))(p(|remium))(|s(|tatus))
    IAmNowPremium: (i(a|')m(now|)p(remium|))
    ProtectMe: (prot(ect|))(m(|e))
    ReloadMsg: reloadmsg
    Fix: fix
    UpdateCache: (u(pdate|)c(ache|))
Kicks:
  PluginNotLoadedYet: '&aSerwer nie jest jeszcze wlaczony! &6Sprobuj ponownie za 5
    sekund!'
  NewCrackedPlayer: |-
    &4Sorry, we are online-mode now! Only old cracked players can join.
    &aPlease buy Minecraft if you want to play here!
  WhiteList: '&4You are not on cracked players whitelist!'
  ServersDown-NoCached: |-
    &4Mojang servers are down, we can't allow new players to join!
    &aPlease try again later <3!
Login:
  ForceRegister: '&6Wpisz /register <haslo> <haslo> aby sie zarejestrowac!'
  Auto:
    PremiumPlayer: '&6Zalogowano z konta Premium!'
    ErrorPlayer: '&6Nie mozemy sprawdzic, czy jestes Premium, ale masz to samo IP!'
  ErrorPlayerNoCached: '&6Nie mozemy sprawdzic, czy jestes Premium, zaloguj sie uzywajac:
    &9/login <haslo>'
  CrackedPlayer: ''
  FailedToVerifyUsername: Nick niezweryfikowany!
  AuthServersAreDown: Authentication servers are down. Please try again later, sorry!
  CrackedPlayer-ActiveSession: Your sessions is vaild, you don't need to login!
  NotAllowingNewCrackedPlayers: |-
    &cWe are online-mode now! Only old cracked players (like you) can join.
    &cPlease buy Minecraft if you want play on this server.
 
To jest ta linijka z messages.yml:
 
PremiumPlayer: '&6Zalogowano z konta Premium!'
 
Ale i tak na chacie pisze to [Auto-In] Zalogowano z konta Premium!
 
Pomozcie!
Opublikowano

A gdzie dokładniej? jaka klasa?

gdzieś w: com.gotofinal.autoin.Onion.class

 

Nie da się tego zmienić w konfiguracji, ale nikomu nie zabraniam użycia API pluginu i stworzeniu własnych wiadomości, a to czy AutoIn na serverze jest, czy nie, da się sprawdzić na dziesiątki sposobów.

1438614356923701010629.png

 

Opublikowano

Nie ma takiej paczki i klasy nie wiem czemu. ;(

XDDDD

 

gdzieś w: com.gotofinal.autoin.Onion.class

 

 

@topic

nie ma tego w configu, wiec tego nie zmienisz, chyba ze uzyjesz api pluginu

 

Nie da się tego zmienić w konfiguracji, ale nikomu nie zabraniam użycia API pluginu i stworzeniu własnych wiadomości, a to czy AutoIn na serverze jest, czy nie, da się sprawdzić na dziesiątki sposobów.

Opublikowano

Nie baw się w zmienianie bo to są prawa autorskie. A jak chcesz to usunąć to spróbuj przez plugin inny są takie.

Pomogłem ? Daj LAJK Motywuje!

Opublikowano

@1361622928-U485574.pngDeViLeKTV1337 Uzycie API to prawa autorskie? Hahahahahah zaraz spadne z krzesla.

 

Jezeli chodzi o API to tu jest moj kod i nie wiem czy tu ma być ten PremiumStatus czy IPlayersStorage (IPlayersStorage wgl nie wykrywa i nie działa a zaimportowalm plugin)

 

package pl.xdcraft.xdctools.listeners;


import java.util.logging.Logger;


import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;


import com.gmail.bartlomiejkmazur.autoin.api.AutoInAPI;
import com.gmail.bartlomiejkmazur.autoin.api.PremiumStatus;


public class AutoInMsg implements Listener{


public static final Logger log = Logger.getLogger("Minecraft");


@EventHandler
public void onJoin(PlayerJoinEvent event){
Player player = event.getPlayer();
PremiumStatus premiumstatus = AutoInAPI.getPremiumStatus();
if(premiumstatus.isPremium(player.getName()));
player.sendMessage(ChatColor.DARK_GRAY + "Zalogowano z premium!");
}


}
Opublikowano

Co wam wszystkim przeszkadza przedrostek [AutoIn]. @GotoFinal odwalił kawał dobrej roboty a wszyscy zawzięcie chcą zrobić ze maja autorskie auto logowanie. Jedynie co wam pozostaje to napisać własnego AutoIn-a lub uszanować prace autora.

Opublikowano

Po prostu powiedzcie mi jak zrobić API z wiadomością dla wersji 3.0.

Opublikowano

@"viklez" Akurat z tym ci raczej nikt nie pomoże a napewno ja bo szanuje czyjąś prace (jakby goto chciał aby dało rade to edytować zrobił by tego możliwość) 

Opublikowano

Raczej tego nie zmienisz, Auto-In to słaby plugin, jego autor jest nadzwyczajnie dziwny i nadpobudliwy.

Dalej czekam aż podasz mi ten "lepszy" plugin i niby czemu jest lepszy :D

 

Bo na razie potrafisz tylko paplać głupoty i pisać skrypty ;)

 

Czekam na inny plugin który działa niezależnie od servera, 1.7 R1/2/3/4 1.8 R1/2 BungeeCord, Cauldron 1.7.2, Cauldron 1.7.10

 

 

Co do tematu: w nowej wersji AutoIn prefix zostanie odblokowany.

1438614356923701010629.png

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...