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

MSklep - Inowacyjny plugin na sklep


ZnanyJakoOszust

Rekomendowane odpowiedzi

Opublikowano

Oooo Super! W końcu jakis dobry plugin na sklep, od teraz nie muszę korzystać z tych hostingowych sklepów. Dzięki i propsik dla Ciebie! 

"Życie jest okrutne. Dlaczego życie po życiu miałoby być lepsze?" ~ Davy Jones

Opublikowano

Dzięki tego było trzeba.

 

Oooo Super! W końcu jakis dobry plugin na sklep, od teraz nie muszę korzystać z tych hostingowych sklepów. Dzięki i propsik dla Ciebie! 

Nie ma za co, możecie pisać propozycję co moge dodać:))

Opublikowano

?

      final Player p = (Player)sender;
            openMenu(p);
            p.sendMessage("§8§m-------------------§7[§6ITEMSHOP§7]§8§m-------------------");
            p.sendMessage("§8» §c§lWAZNE! ");
            p.sendMessage("§8» §6Reklamacja Uslug: http://www.dotpay.pl/reklamacje ");
            p.sendMessage("§8» §6Regulamin Uslug: http://www.dotpay.pl/regulamin-serwisow-sms-premium/ ");
            p.sendMessage("§8§m-------------------§7[§6ITEMSHOP§7]§8§m-------------------");
        }
        return false;
    }

? xD

 

@TopicBOMiWarnaDadzą

Polecam plugin, parę poprawek i będzie na prawdę dobry.

Jak na razie chyba jedyny taki w Polsce, łatwy i przejrzysty.

784091427630431250239.png

Regulamin sygnatur

Opublikowano

@OldisPL 

?

      final Player p = (Player)sender;
            openMenu(p);
            p.sendMessage("§8§m-------------------§7[§6ITEMSHOP§7]§8§m-------------------");
            p.sendMessage("§8» §c§lWAZNE! ");
            p.sendMessage("§8» §6Reklamacja Uslug: http://www.dotpay.pl/reklamacje ");
            p.sendMessage("§8» §6Regulamin Uslug: http://www.dotpay.pl/regulamin-serwisow-sms-premium/ ");
            p.sendMessage("§8§m-------------------§7[§6ITEMSHOP§7]§8§m-------------------");
        }
        return false;
    }

? xD

 

@TopicBOMiWarnaDadzą

Polecam plugin, parę poprawek i będzie na prawdę dobry.

Jak na razie chyba jedyny taki w Polsce, łatwy i przejrzysty.

Poprawiłem wiadomośći dzięki :) + Jakie poprawki jak moge wiedzieć?

 

LINK : http://www.mediafire.com/download/819c9i6ifjp386b/Micro-Sklep%282%29.jar

 

SKAN : https://www.virustotal.com/en/file/cdadc7f9953a907e70db0f30af2d56bc26de46308a8e0e17b443810dd8e2668f/analysis/1474471361/

Opublikowano

Jak mam to połączyć aby wpływało do portfela na hostingu ?

Szukam osób, które chcą stworzyć ze mną serwer, więcej informacji na priv

Opublikowano

@1361622928-U485574.pngZnanyJakoOszust

 

A może dodał byś takie gui przed wybraniem rangi do kupienia z wyborem płatności czyli np będzie

 

1. Wybierz metode płatności: SMS , Przelew(PayPal) , PaySafeCard

2. Wybierz co chcesz kupic

3. Wpisz kod sms / kupony (w wyborze psc i sms) // w wyborze paypal przekierowuje do strony

Opublikowano

Nie da rady zrobić w pluginie psc :) Jedynie mogę zrobić ze jak wybierze itemek otworzy mu sie 3 metody PAYPAL / SMS / PSC Kliknie psc przekieruje go do strony do psc zeby zaplacic za coś naprzykład przy fimie PAYGO.PL / PAYPAL to przekieruje zeby dac donate włascicielowi jeśli własciciel dostanie hajs da mu sie ranga. czy cuś :) mogę sprubować :) to i tak dopiero jak będę w Norwegiii.

Opublikowano

Hym.

public static int checkCode(String code, Service service)
  {
    try
    {
      URL url = new URL("http://microsms.pl/api/check.php?userid=" + Config.USER_ID + "&number=" + service.getSmsNumber() + "&code=" + code + "&serviceid=" + Config.SERVICE_ID);
      URLConnection urlConnection = url.openConnection();
      BufferedReader in = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
      StringBuilder string = new StringBuilder();
      String inputLine;
      while ((inputLine = in.readLine()) != null)
      {
        String inputLine;
        string.append(inputLine);
      }
      in.close();
      return string.toString().substring(0, 1).equals("1") ? 1 : 0;
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
    return -1;
  }

https://github.com/Dziksayu/MC-SHOP/blob/master/src/pro/lvlup/mcshop/CodeChecker.java#L18

 

Tylko podmieniony link.

configf.getCfg().addDefault("LvlUPSmsAccountID", Integer.valueOf(0));
configf.getCfg().addDefault("LvlUPSmsID", Integer.valueOf(0));
configf.getCfg().addDefault("LvlUPboughtServiceDesc", "Usluga zakupiona przez Sklep na serwerze.");
configf.getCfg().addDefault("MicrosmsServiceID", Integer.valueOf(0));
configf.getCfg().addDefault("MicroSmsAccountID", Integer.valueOf(0));

LVLUP? Ciekawe.

public class Yamler
{
  public static HashMap<String, FileConfiguration> data = new HashMap();
  private File f;
  
  public Yamler(File f)
  {
    this.f = f;
    if (!data.containsKey(f.getAbsolutePath())) {
      data.put(f.getAbsolutePath(), YamlConfiguration.loadConfiguration(f));
    }
  }
  
  public FileConfiguration getCfg()
  {
    return (FileConfiguration)data.get(this.f.getAbsolutePath());
  }
  
  public void save()
  {
    try
    {
      ((FileConfiguration)data.get(this.f.getAbsolutePath())).save(this.f);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }
  
  public Set<String> getSection(String section)
  {
    return getCfg().getKeys(false);
  }
  
  public void reload()
  {
    data.remove(this.f.getAbsolutePath());
    data.put(this.f.getAbsolutePath(), YamlConfiguration.loadConfiguration(this.f));
  }
}

https://github.com/Dziksayu/MC-SHOP/blob/master/src/pro/lvlup/mcshop/yamler/Yamler.java

import org.bukkit.Material;

public class Service
{
  private int smsNumber;
  private String name;
  private String displayName;
  private String cost;
  private String days;
  private Material mat;
  private String smsText;
  private String komenda;
  private String idUslugi;
  
  public Service(String nazwa, String displayname, String text, int smsNumber, String koszt, String dni, Material mat, String komenda, String idUslugi)
  {
    this.displayName = displayname;
    this.smsNumber = smsNumber;
    this.name = nazwa;
    this.cost = koszt;
    this.days = dni;
    this.mat = mat;
    this.smsText = text;
    this.komenda = komenda;
    this.idUslugi = idUslugi;
  }
  
  public String getSmsText()
  {
    return this.smsText;
  }
  
  public String getServiceID()
  {
    return this.idUslugi;
  }
  
  public String getCommandToRun()
  {
    return this.komenda;
  }
  
  public String getDisplayName()
  {
    return this.displayName;
  }
  
  public Material getMat()
  {
    return this.mat;
  }
  
  public Service() {}
  
  public int getSmsNumber()
  {
    return this.smsNumber;
  }
  
  public String getName()
  {
    return this.name;
  }
  
  public String getCost()
  {
    return this.cost;
  }
  
  public String getDays()
  {
    return this.days;
  }
}

https://github.com/Dziksayu/MC-SHOP/blob/master/src/pro/lvlup/mcshop/basic/Service.java

 

Podobne.

import java.util.concurrent.CopyOnWriteArrayList;

public class ServiceData
{
  private static volatile CopyOnWriteArrayList<Service> services = new CopyOnWriteArrayList();
  
  public static Service[] getAllServices()
  {
    return (Service[])services.toArray(new Service[services.size()]);
  }
  
  public static void addService(Service service)
  {
    services.addIfAbsent(service);
  }
  
  public static void removeService(Service service)
  {
    services.remove(service);
  }
  
  public static Service getService(String name)
  {
    for (Service service : services) {
      if (service.getName().equalsIgnoreCase(name)) {
        return service;
      }
    }
    return null;
  }
}

https://github.com/Dziksayu/MC-SHOP/blob/master/src/pro/lvlup/mcshop/basic/ServiceData.java

public class IOUtils
{
  public static String getContent(String s)
  {
    String body = null;
    try
    {
      URL url = new URL(s);
      URLConnection con = url.openConnection();
      InputStream in = con.getInputStream();
      String encoding = con.getContentEncoding();
      encoding = encoding == null ? "UTF-8" : encoding;
      body = toString(in, encoding);
    }
    catch (TimeoutException e)
    {
      e.printStackTrace();
    }
    catch (Exception e2)
    {
      e2.printStackTrace();
    }
    return body;
  }
  
  public static String toString(InputStream in, String en)
    throws Exception
  {
    ByteArrayOutputStream b = new ByteArrayOutputStream();
    byte[] buf = new byte[63];
    int length = 0;
    while ((length = in.read(buf)) != -1) {
      b.write(buf, 0, length);
    }
    return new String(b.toByteArray(), en);
  }
}

https://github.com/dzikoysk/FunnyGuilds/blob/master/src/main/java/net/dzikoysk/funnyguilds/util/IOUtils.java#L31

uslugi:
  Vip:
    nazwaWys: '&6Vip'
    cena: 4,92 zl
    waznosc: Na Jedna Edycje
    tresc: MSMS.TWOJANAZWA
    sms: 7455
    material: DIAMOND_BLOCK
  Svip:
    nazwaWys: '&3SVip'
    cena: 7,38 zl
    waznosc: Na Jedna Edycje
    tresc: MSMS.TWOJANAZWA
    sms: 7636
    material: GOLD_BLOCK
  Elita:
    nazwaWys: '&4Elita'
    cena: 11,07 zl
    waznosc: Jedna Edycja
    tresc: MSMS.TWOJANAZWA
    sms: 7936
    material: EMERALD
  Legenda:
    nazwaWys: '&8Legenda!'
    cena: 17,02 zl
    waznosc: Cala Edycja
    tresc: MSMS.TWOJANAZWA
    sms: 91455
    material: BEACON
  Unban:
    nazwaWys: '&4Unban'
    cena: 3,69 zl
    waznosc: Cala Edycja
    tresc: MSMS.TWOJANAZWA
    sms: 7355
    material: ANVIL

https://github.com/Dziksayu/MC-SHOP/blob/master/src/uslugi.yml

 

Seems legit.

 

Ogółem kod to jest jedna wielka zlepka, i totalny plagiat pluginu MC-SHOP, autorstwa Dziksayu.

Żenada.

Zapraszam cie na ts3 :) Skąd wiesz że nie pisałem z typem :)? Plugin miał wogólę inną nazwe kiedyś :) Zapraszam na ts3 zawołam ci dzika <3

 

 

@MagisterMagi, /Sklep :)

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...