Sueta

DrawWEB Core

1.4.2

drawweb, core, dwebcore, drawweb core, siteban, siteunban, siterank, mysql, postgresql

·Plugin

This plugin is a plugin made for use with a webscript called DrawWEB.

Featured Video
Coming Soon.

  • Showing on the site whether the player is active on the server or not.
  • Granting, removing, and modifying credit on the site to the player.
  • Giving the player a rank on the site.
  • Banning/unbanning the player on the site.

  • /dcredit - Command to give credit to a player on a DrawWeb-based site.
  • /drank - Command to cast a player on a DrawWeb based site.
  • /dban - Command to ban the specified player from the site.
  • /dunban - Command to unban the specified player from the site.
  • /dwebcore help - Command to get help about the plugin.
  • /dwebcore reload - Command to refresh the configuration.
  • /dwebsender - Command to refresh the websender settings.

Example Commands:

  • /dcredit BartuAbiHD 100
  • /dcredit BartuAbiHD +50
  • /dcredit BartuAbiHD -15
  • /drank BartuAbiHD Admin red
  • /drank BartuAbiHD Admin #dc3545
  • /dban BartuAbiHD
  • /dunban BartuAbiHD

  • dwebcore.*
  • dwebcore.credit
  • dwebcore.rank
  • dwebcore.ban
  • dwebcore.unban
  • dwebcore.help
  • dwebcore.reload
  • dwebcore.websender

Example Configs:

Original config.yml:

######################################################################################################################################################################################
#                                                       ____                    __        _______ ____     ____                                                                      #
#                                                      |  _ \ _ __ __ ___      _\ \      / / ____| __ )   / ___|___  _ __ ___                                                        #
#                                                      | | | | '__/ _` \ \ /\ / /\ \ /\ / /|  _| |  _ \  | |   / _ \| '__/ _ \                                                       #
#                                                      | |_| | | | (_| |\ V  V /  \ V  V / | |___| |_) | | |__| (_) | | |  __/                                                       #
#                                                      |____/|_|  \__,_| \_/\_/    \_/\_/  |_____|____/   \____\___/|_|  \___|                                                       #
#                                                                                                                                                                                    #
######################################################################################################################################################################################

# Database Settings
database-type: 'MySQL' # Database type: You can select 'MySQL' or 'PostgreSQL'.
host: 'localhost' # Database server IP address or domain.
port: 3306 # Default for MySQL: 3306, default for PostgreSQL: 5432.
database: 'tutorial' # Database name.
username: 'root' # Database username.
password: 'password' # Database password.
table: 'player_data' # The name of the table in the database where users are located.

# Messages
perm-message: '&cYou do not have the necessary authorization to use this command!'[/B][/CENTER]
[B]rank-message: '&aYou gave the player named &e%player% &athe rank of &e%rank% &aon
  the website.'
banned-message: '&aYou have banned a player named &c%player% &afrom the website.'
unbanned-message: '&aYou have lifted the ban of a player named &c%player% &afrom the
  website.'
failed-to-ban-player-message: '&cFailed to ban the player. Please try again.'
failed-to-unban-player-message: '&cFailed to unban the player. Please try again.'
this-player-is-already-banned-message: '&cThis player is already banned.'
this-player-is-not-already-banned-message: '&cThis player is not already banned.'
no-player-found-with-the-name-message: '&cNo player found with the name %player%'
credit-updated_message: '&aSuccessfully updated %player%''s credit to %amount%.'
invalid-credit-amount-message: '&cInvalid credit amount. Please enter a valid number.'
credit-usage-header: '&cUsage: /dwebcredit <player> <amount>'
credit-usage-set: '&7Set: /dwebcredit %player% 50 (Sets credit to 50)'
credit-usage-add: '&7Add:   /dwebcredit %player% +10 (Adds 10 to current credit)'
credit-usage-remove: '&7Remove: /dwebcredit %player% -10 (Removes 10 from current
  credit)'
credit-data-corrupted: '&cThe player''s current credit data (''%data%'') is corrupt,
  operation failed.'
credit-set-to-zero: '&ePlayer''s credit was reduced below 0, balance set to 0.'
credit-update-db-error: '&cA database error occurred while updating the credit.'
credit-cannot-set-negative: '&cYou cannot set the credit to a negative value directly.
  Use ''-'' to remove credit.'
reload-success-message: '&aDrawWEB Core has been successfully reloaded!'[/B]
[CENTER][B]
# Database driver class name
# MySQL: 'com.mysql.cj.jdbc.Driver' or 'com.mysql.jdbc.Driver'
# PostgreSQL: 'org.postgresql.Driver'
mySQLDriverClassName: com.mysql.cj.jdbc.Driver
postgreSQLDriverClassName: org.postgresql.Driver

# Connection Options
ConnectionOptions: useSSL=false&autoReconnect=true&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

# Websender Settings
websender:
mode: false
socketPort: 9877
socketPassword: 123dweb
senderPrefix: '[DrawWeb-WebSender]'
wrongPassword: Incorrect password, please enter it carefully.
wrongData: Please check PHP variables.
succesfullyLogin: Login is successful.
consoleInfo: 'true'
commandPermission: dwebcore.websender
nothavePerm: You not have permission!
pluginReloaded: Websender reloaded!
pluginReloadedDisabled: 'Websender reloaded, but remains disabled (check config or console).'

Turkish config.yml:

######################################################################################################################################################################################
#                                                       ____                    __        _______ ____     ____                                                                      #
#                                                      |  _ \ _ __ __ ___      _\ \      / / ____| __ )   / ___|___  _ __ ___                                                        #
#                                                      | | | | '__/ _` \ \ /\ / /\ \ /\ / /|  _| |  _ \  | |   / _ \| '__/ _ \                                                       #
#                                                      | |_| | | | (_| |\ V  V /  \ V  V / | |___| |_) | | |__| (_) | | |  __/                                                       #
#                                                      |____/|_|  \__,_| \_/\_/    \_/\_/  |_____|____/   \____\___/|_|  \___|                                                       #
#                                                                                                                                                                                    #
######################################################################################################################################################################################

# Veritabanı Ayarları
database-type: 'MySQL' # Veritabanı türü: 'MySQL' veya 'PostgreSQL' seçebilirsiniz.
host: 'localhost' # Veritabanı sunucu IP adresi.
port: 3306 # MySQL için varsayılan: 3306, PostgreSQL için varsayılan: 5432.
database: 'tutorial' # Veritabanı adı.
username: 'root' # Veritabanı kullanıcı adı.
password: 'password' # Veritabanı şifresi.
table: 'player_data' # Veritabanında üyelerin bulunduğu tablonun ismi.

# Mesajlar
perm-message: '&cBu komutu kullanmak için gerekli yetkiye sahip değilsiniz!'
rank-message: '&e%player% &aadlı oyuncuya web sitesinde &e%rank% &arütbesi verdiniz.'
banned-message: '&c%player% &aadında bir oyuncuyu web sitesinden yasakladınız.'
unbanned-message: '&c%player% &aadlı oyuncunun web sitesindeki yasağını kaldırdınız.'
failed-to-ban-player-message: '&cOyuncu yasaklanamadı. Lütfen tekrar deneyin.'
failed-to-unban-player-message: '&cOyuncunun yasağı kaldırılamadı. Lütfen tekrar deneyin.'
this-player-is-already-banned-message: '&cBu oyuncu zaten yasaklı.'
this-player-is-not-already-banned-message: '&cBu oyuncu zaten yasaklı değil.'
no-player-found-with-the-name-message: '&a%player% &cisminde kayıtlı bir oyuncu bulunamadı.'
credit-updated_message: '&e%player% &aadlı oyuncunun kredisi başarıyla &e%amount% &aolarak güncellendi.'
invalid-credit-amount-message: '&cGeçersiz kredi tutarı. Lütfen geçerli bir sayı girin.'
credit-usage-header: '&cKullanım: /dwebcredit <oyuncu> <miktar>' credit-usage-set: '&7Ayarla: /dwebcredit %player% 50 (Krediyi 50 yapar)' credit-usage-add: '&7Ekle: /dwebcredit %player% +10 (Mevcut krediye 10 ekler)' credit-usage-remove: '&7Çıkar: /dwebcredit %player% -10 (Mevcut krediden 10 çıkarır)' credit-data-corrupted: '&cOyuncunun mevcut kredi verisi (''%data%'') bozuk, işlem yapılamıyor.' credit-set-to-zero: '&eOyuncunun kredisi 0''ın altına düşürüldü, bakiye 0 olarak ayarlandı.' credit-update-db-error: '&cKredi güncellenirken bir veritabanı hatası oluştu.' credit-cannot-set-negative: '&cKrediyi doğrudan eksi bir değere ayarlayamazsınız. Çıkarmak için ''-'' kullanın.'
reload-success-message: '&aDrawWEB Core başarıyla yeniden yüklendi!'

# Veritabanı sürücüsü sınıfı adı
# MySQL: 'com.mysql.cj.jdbc.Driver' veya 'com.mysql.jdbc.Driver'
# PostgreSQL: 'org.postgresql.Driver'
mySQLDriverClassName: com.mysql.cj.jdbc.Driver
postgreSQLDriverClassName: org.postgresql.Driver

# Bağlantı Seçenekleri
ConnectionOptions: useSSL=false&autoReconnect=true&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Europe/Istanbul

# Websender Ayarları
websender:
mode: false
socketPort: 9877
socketPassword: 123dweb
senderPrefix: '[DrawWeb-WebSender]'
wrongPassword: Şifre yanlış, lütfen dikkatlice girin.
wrongData: Lütfen PHP değişkenlerini kontrol edin.
succesfullyLogin: Giriş başarılı.
consoleInfo: 'true'
commandPermission: dwebcore.websender
nothavePerm: İzniniz yok!
pluginReloaded: Websender yeniden yüklendi!
pluginReloadedDisabled: 'Websender yeniden yüklendi, ancak devre dışı kalmaya devam ediyor (yapılandırmayı veya konsolu kontrol edin).'

Similar projects

Plugin →