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

[Szukam] Tabelki do xcrTools :)


Rekomendowane odpowiedzi

Opublikowano

Jak wyżej, szukam DOBRYCH TABELEK, bo jak znalazłem to i tak nie zapisywało daje po 5 like za pierwszą najlepszą odpowiedź!
Mała pomoc:

  public boolean cUser;
  public boolean cReason;
  public boolean cTime;
  public boolean cAdmin;
  public int banID;
  public DataUser user;
  public String reason;
  public Long time;
  public DataUser admin;
  
  public DataBan(Datasource db)
  {
    super(db);
  }
  
  public DataBan(Datasource db, ResultSet rs)
    throws SQLException
  {
    super(db);
    this.banID = rs.getInt("banID");
    this.user = db.getUserByNick(rs.getString("nick"));
    this.reason = rs.getString("powod");
    this.time = Long.valueOf(rs.getLong("time"));
    this.admin = db.getUserByNick(rs.getString("admin"));
  }
  
  protected void setPrimary(int id)
  {
    this.banID = id;
  }
  
  public int getPrimary()
  {
    return this.banID;
  }
  
  public DataUser getUser()
  {
    return this.user;
  }
  
  public String getReason()
  {
    return this.reason;
  }
  
  public Long getTime()
  {
    return this.time;
  }
  
  public DataUser getAdmin()
  {
    return this.admin;
  }
  
  public void setUser(DataUser v)
  {
    this.user = v;this.cUser = true;
  }
  
  public void setReason(String v)
  {
    this.reason = v;this.cReason = true;
  }
  
  public void setTime(Long v)
  {
    this.time = v;this.cTime = true;
  }
  
  public void setAdmin(DataUser v)
  {
    this.admin = v;this.cAdmin = true;
  }
  private boolean cX;
  private boolean cY;
  private boolean cZ;
  private boolean cHomeX;
  private boolean cHomeY;
  private boolean cHomeZ;
  private boolean cNick;
  private boolean cWorld;
  private boolean cBan;
  private boolean cMute;
  private boolean cHomeWorld;
  private boolean cFly;
  private boolean cGod;
  private boolean cBanTime;
  private boolean cMuteTime;
  private boolean cGamemode;
  private int userID;
  private int x;
  private int y;
  private int z;
  private int homeX;
  private int homeY;
  private int homeZ;
  private String nick;
  private String world;
  private String mute;
  private String homeWorld;
  private byte fly;
  private byte god;
  private long muteTime;
  private GameMode gamemode;
  private String oldNick;
  
  public DataUser(Datasource db)
  {
    super(db);
  }
  
  public DataUser(Datasource db, ResultSet rs)
    throws SQLException
  {
    super(db);
    this.userID = rs.getInt("userID");
    this.x = rs.getInt("x");
    this.y = rs.getInt("y");
    this.z = rs.getInt("z");
    this.homeX = rs.getInt("homeX");
    this.homeY = rs.getInt("homeY");
    this.homeZ = rs.getInt("homeZ");
    this.nick = rs.getString("nick");
    this.world = rs.getString("world");
    this.mute = rs.getString("mute");
    this.homeWorld = rs.getString("homeWorld");
    this.fly = rs.getByte("fly");
    this.god = rs.getByte("god");
    this.muteTime = rs.getLong("muteTime");
    this.gamemode = GameMode.getByValue(rs.getByte("gamemode"));
  }
  
  protected void setPrimary(int id)
  {
    this.userID = id;
  }
  
  public int getPrimary()
  {
    return this.userID;
  }
  
  public int getX()
  {
    return this.x;
  }
  
  public int getY()
  {
    return this.y;
  }
  
  public int getZ()
  {
    return this.z;
  }
  
  public int getHomeX()
  {
    return this.homeX;
  }
  
  public int getHomeY()
  {
    return this.homeY;
  }
  
  public int getHomeZ()
  {
    return this.homeZ;
  }
  
  public String getNick()
  {
    return this.nick;
  }
  
  public String getWorld()
  {
    return this.world;
  }
  
  public String getMute()
  {
    return this.mute;
  }
  
  public String getHomeWorld()
  {
    return this.homeWorld;
  }
  
  public boolean getFly()
  {
    return this.fly > 0;
  }
  
  public boolean getGod()
  {
    return this.god > 0;
  }
  
  public long getMuteTime()
  {
    return this.muteTime;
  }
  
  public GameMode getGamemode()
  {
    return this.gamemode;
  }
  
  public void setX(int v)
  {
    this.x = v;this.cX = true;
  }
  
  public void setY(int v)
  {
    this.y = v;this.cY = true;
  }
  
  public void setZ(int v)
  {
    this.z = v;this.cZ = true;
  }
  
  public void setHomeX(int v)
  {
    this.homeX = v;this.cHomeX = true;
  }
  
  public void setHomeY(int v)
  {
    this.homeY = v;this.cHomeY = true;
  }
  
  public void setHomeZ(int v)
  {
    this.homeZ = v;this.cHomeZ = true;
  }
  
  public void setNick(String v)
  {
    this.nick = v;this.cNick = true;
  }
  
  public void setWorld(String v)
  {
    this.world = v;this.cWorld = true;
  }
  
  public void setMute(String v)
  {
    this.mute = v;this.cMute = true;
  }
  
  public void setHomeWorld(String v)
  {
    this.homeWorld = v;this.cHomeWorld = true;
  }
  
  public void setFly(boolean v)
  {
    this.fly = ((byte)(v ? 1 : 0));this.cFly = true;
  }
  
  public void setGod(boolean v)
  {
    this.god = ((byte)(v ? 1 : 0));this.cGod = true;
  }
  
  public void setMuteTime(long v)
  {
    this.muteTime = v;this.cMuteTime = true;
  }
  
  public void setGamemode(GameMode v)
  {
    this.gamemode = v;this.cGamemode = true;
  }
Opublikowano

hyhy podpinam sie :D i poczekam razem z Toba na komentarze typu "Masz zezwolenie ?" "To jest nielegalne!" HALO POLICJA PRZYJEDZCIE NA MPCFORUM I MINKRAFTA

PS. moge Ci podeslac jakies ale one nie dzialaja

 

 

 

Opublikowano
 

hyhy podpinam sie  :D i poczekam razem z Toba na komentarze typu "Masz zezwolenie ?" "To jest nielegalne!" HALO POLICJA PRZYJEDZCIE NA MPCFORUM I MINKRAFTA

PS. moge Ci podeslac jakies ale one nie dzialaja

Nie, chce tylko działające a wiem że takie są.
Ps. Czekamy i czekamy, ps. odpowiedzi nie na temat czyli "To nielegalne" będę zgłaszał, może od razu zadzwonicie na policje i powiecie "HALO HALO Przyjechać na MPCFORUM tutaj ktoś się pyta o tabelki, aresztujcie go!" ...

Opublikowano


--

-- Struktura tabeli dla tabeli `bans`

--

 

CREATE TABLE IF NOT EXISTS `bans` (

  `banID` int(11) NOT NULL AUTO_INCREMENT,

  `nick` varchar(25) DEFAULT NULL,

  `powod` varchar(25) DEFAULT NULL,

  `admin` varchar(25) DEFAULT NULL,

  `time` int(11) DEFAULT NULL,

  PRIMARY KEY (`banID`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

 

-- --------------------------------------------------------

 

--

-- Struktura tabeli dla tabeli `users`

--

 

CREATE TABLE IF NOT EXISTS `users` (

  `userID` int(11) NOT NULL AUTO_INCREMENT,

  `nick` varchar(25) DEFAULT NULL,

  `world` varchar(25) DEFAULT NULL,

  `x` int(10) DEFAULT NULL,

  `y` int(10) DEFAULT NULL,

  `z` int(10) DEFAULT NULL,

  `homeX` int(10) DEFAULT NULL,

  `homeY` int(10) DEFAULT NULL,

  `homeZ` int(10) DEFAULT NULL,

  `mute` varchar(25) DEFAULT NULL,

  `homeWorld` varchar(25) DEFAULT NULL,

  `fly` int(10) DEFAULT NULL,

  `god` int(10) DEFAULT NULL,

  `muteTime` double DEFAULT NULL,

  `gamemode` int(10) DEFAULT NULL,

  PRIMARY KEY (`userID`)

) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...