├── BukkitGUI
├── BertWare.pfx
├── dll
│ ├── FontCombo.dll
│ ├── JSONAPI.dll
│ ├── Substrate.dll
│ ├── YamlUtility.dll
│ ├── YamlUtility.pdb
│ ├── Jayrock.Json.dll
│ ├── JsonExSerializer.dll
│ ├── Net.Bertware.Get.dll
│ ├── Net.Bertware.Get.pdb
│ ├── Interop.NATUPNPLib.dll
│ ├── Net.Bertware.Controls.dll
│ ├── Net.Bertware.Controls.pdb
│ ├── ICSharpCode.SharpZipLib.dll
│ ├── Net.Bertware.Utilities.WMI.dll
│ ├── Net.Bertware.Utilities.WMI.pdb
│ ├── Net.Bertware.Utilities.NetVersionDetector.dll
│ ├── Net.Bertware.Utilities.NetVersionDetector.pdb
│ ├── Net.Bertware.Get.xml
│ └── Net.Bertware.Controls.xml
├── img
│ ├── GUI icon.ico
│ ├── GUI icon.png
│ ├── GUI icon 16.ico
│ ├── GUI icon 32.ico
│ ├── GUI icon 64.ico
│ ├── bukkit_logo.png
│ ├── player_face.png
│ ├── spigot_logo.png
│ ├── ad_ServerMiner.gif
│ ├── menu_icons
│ │ ├── add.png
│ │ ├── www.png
│ │ ├── book.png
│ │ ├── clock.png
│ │ ├── copy.png
│ │ ├── edit.png
│ │ ├── email.png
│ │ ├── error.png
│ │ ├── group.png
│ │ ├── save.png
│ │ ├── stop.png
│ │ ├── table.png
│ │ ├── accept.png
│ │ ├── arrow_go.png
│ │ ├── arrow_up.png
│ │ ├── cancel.png
│ │ ├── plugin.ico
│ │ ├── plugin.png
│ │ ├── settings.png
│ │ ├── table_go.png
│ │ ├── update.png
│ │ ├── user_ban.png
│ │ ├── warning.ico
│ │ ├── wrench.png
│ │ ├── Scheduler.ico
│ │ ├── arrow_down.png
│ │ ├── bin_closed.png
│ │ ├── bullet_red.png
│ │ ├── chart_bar.png
│ │ ├── clock_add.png
│ │ ├── clock_edit.png
│ │ ├── permission.ico
│ │ ├── plugin_add.png
│ │ ├── plugin_go.png
│ │ ├── table_add.png
│ │ ├── table_gear.png
│ │ ├── user_kick.png
│ │ ├── arrow_refresh.png
│ │ ├── bullet_delete.png
│ │ ├── bullet_disk.png
│ │ ├── bullet_error.png
│ │ ├── bullet_green.png
│ │ ├── bullet_orange.png
│ │ ├── clock_delete.png
│ │ ├── clock_error.png
│ │ ├── control_play.png
│ │ ├── control_stop.png
│ │ ├── eraser-small.png
│ │ ├── exclamation.png
│ │ ├── information.png
│ │ ├── plugin_delete.png
│ │ ├── plugin_edit.png
│ │ ├── plugin_error.ico
│ │ ├── plugin_error.png
│ │ ├── plugin_link.png
│ │ ├── table_delete.png
│ │ ├── database-export.png
│ │ ├── database-import.png
│ │ ├── document-export.png
│ │ ├── document-import.png
│ │ ├── drive-download.ico
│ │ ├── drive-download.png
│ │ ├── plugin_disabled.png
│ │ ├── Drive-Backup-icon.ico
│ │ ├── Drive-Backup-icon.png
│ │ ├── flattr-badge-large.png
│ │ ├── folder-horizontal.png
│ │ └── paypal-donate-button.png
│ └── vanilla_logo.png
├── sound
│ ├── connect.wav
│ ├── severe.wav
│ ├── warning.wav
│ └── disconnect.wav
├── My Project
│ ├── Settings.settings
│ ├── Application.myapp
│ ├── AssemblyInfo.vb
│ ├── Application.Designer.vb
│ ├── app.manifest
│ └── Settings.Designer.vb
├── forms
│ ├── FeedBackDialog.vb
│ ├── OutputBrowser.vb
│ ├── ServerSettingDialog.vb
│ ├── ServerStopDialog.vb
│ ├── LicenseAcceptDialog.vb
│ ├── InstalledPluginDialog.vb
│ ├── ServerStopDialog.Designer.vb
│ ├── ServerSettingDialog.Designer.vb
│ ├── BackupDialog.vb
│ ├── FileDownloader.Designer.vb
│ ├── LicenseAcceptDialog.Designer.vb
│ ├── FeedBackDialog.Designer.vb
│ ├── LanguageInstaller.Designer.vb
│ ├── ErrorDiagnose.vb
│ ├── BukgetPluginDialog.vb
│ ├── OutputBrowser.Designer.vb
│ ├── LanguageInstaller.vb
│ ├── FeedBackDialog.resx
│ ├── FileDownloader.resx
│ ├── PortForwarder.resx
│ ├── ServerStopDialog.resx
│ ├── LicenseAcceptDialog.resx
│ └── ServerSettingDialog.resx
├── app.config
├── threadsafe_pass_args.vb
├── MCInterop
│ ├── tools_Various.vb
│ ├── base_Player.vb
│ ├── base_RemoteServerBase.vb
│ └── base_StartArgs.vb
├── Utilities
│ ├── AdvancedOptions.vb
│ ├── LicenseManager.vb
│ ├── EventArgs.vb
│ └── compression.vb
├── SoundNotificator.vb
└── Core
│ └── config.vb
├── Language_generator
├── Bertware.Controls.dll
├── My Project
│ ├── Settings.settings
│ ├── Application.myapp
│ ├── Application.Designer.vb
│ ├── AssemblyInfo.vb
│ ├── Settings.Designer.vb
│ └── Resources.Designer.vb
├── Form1.Designer.vb
└── Language_generator.vbproj
├── .gitattributes
├── README.md
├── .gitignore
└── BukkitGUI.sln
/BukkitGUI/BertWare.pfx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/BertWare.pfx
--------------------------------------------------------------------------------
/BukkitGUI/dll/FontCombo.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/FontCombo.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/JSONAPI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/JSONAPI.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/Substrate.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Substrate.dll
--------------------------------------------------------------------------------
/BukkitGUI/img/GUI icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/GUI icon.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/GUI icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/GUI icon.png
--------------------------------------------------------------------------------
/BukkitGUI/sound/connect.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/sound/connect.wav
--------------------------------------------------------------------------------
/BukkitGUI/sound/severe.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/sound/severe.wav
--------------------------------------------------------------------------------
/BukkitGUI/sound/warning.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/sound/warning.wav
--------------------------------------------------------------------------------
/BukkitGUI/dll/YamlUtility.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/YamlUtility.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/YamlUtility.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/YamlUtility.pdb
--------------------------------------------------------------------------------
/BukkitGUI/img/GUI icon 16.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/GUI icon 16.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/GUI icon 32.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/GUI icon 32.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/GUI icon 64.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/GUI icon 64.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/bukkit_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/bukkit_logo.png
--------------------------------------------------------------------------------
/BukkitGUI/img/player_face.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/player_face.png
--------------------------------------------------------------------------------
/BukkitGUI/img/spigot_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/spigot_logo.png
--------------------------------------------------------------------------------
/BukkitGUI/dll/Jayrock.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Jayrock.Json.dll
--------------------------------------------------------------------------------
/BukkitGUI/img/ad_ServerMiner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/ad_ServerMiner.gif
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/add.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/www.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/www.png
--------------------------------------------------------------------------------
/BukkitGUI/img/vanilla_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/vanilla_logo.png
--------------------------------------------------------------------------------
/BukkitGUI/sound/disconnect.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/sound/disconnect.wav
--------------------------------------------------------------------------------
/BukkitGUI/dll/JsonExSerializer.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/JsonExSerializer.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Get.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Net.Bertware.Get.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Get.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Net.Bertware.Get.pdb
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/book.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/book.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/clock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/clock.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/copy.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/edit.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/email.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/error.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/group.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/group.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/save.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/stop.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/table.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/table.png
--------------------------------------------------------------------------------
/BukkitGUI/dll/Interop.NATUPNPLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Interop.NATUPNPLib.dll
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/accept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/accept.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/arrow_go.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/arrow_go.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/arrow_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/arrow_up.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/cancel.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/settings.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/table_go.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/table_go.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/update.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/update.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/user_ban.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/user_ban.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/warning.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/warning.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/wrench.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/wrench.png
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Controls.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Net.Bertware.Controls.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Controls.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Net.Bertware.Controls.pdb
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/Scheduler.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/Scheduler.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/arrow_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/arrow_down.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/bin_closed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/bin_closed.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/bullet_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/bullet_red.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/chart_bar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/chart_bar.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/clock_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/clock_add.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/clock_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/clock_edit.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/permission.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/permission.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin_add.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin_go.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin_go.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/table_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/table_add.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/table_gear.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/table_gear.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/user_kick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/user_kick.png
--------------------------------------------------------------------------------
/BukkitGUI/dll/ICSharpCode.SharpZipLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/ICSharpCode.SharpZipLib.dll
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/arrow_refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/arrow_refresh.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/bullet_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/bullet_delete.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/bullet_disk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/bullet_disk.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/bullet_error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/bullet_error.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/bullet_green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/bullet_green.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/bullet_orange.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/bullet_orange.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/clock_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/clock_delete.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/clock_error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/clock_error.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/control_play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/control_play.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/control_stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/control_stop.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/eraser-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/eraser-small.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/exclamation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/exclamation.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/information.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin_delete.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin_edit.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin_error.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin_error.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin_error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin_error.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin_link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin_link.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/table_delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/table_delete.png
--------------------------------------------------------------------------------
/Language_generator/Bertware.Controls.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/Language_generator/Bertware.Controls.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Utilities.WMI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Net.Bertware.Utilities.WMI.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Utilities.WMI.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Net.Bertware.Utilities.WMI.pdb
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/database-export.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/database-export.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/database-import.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/database-import.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/document-export.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/document-export.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/document-import.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/document-import.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/drive-download.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/drive-download.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/drive-download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/drive-download.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/plugin_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/plugin_disabled.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/Drive-Backup-icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/Drive-Backup-icon.ico
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/Drive-Backup-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/Drive-Backup-icon.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/flattr-badge-large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/flattr-badge-large.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/folder-horizontal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/folder-horizontal.png
--------------------------------------------------------------------------------
/BukkitGUI/img/menu_icons/paypal-donate-button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/img/menu_icons/paypal-donate-button.png
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Utilities.NetVersionDetector.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Net.Bertware.Utilities.NetVersionDetector.dll
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Utilities.NetVersionDetector.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bertware/bukkitgui/HEAD/BukkitGUI/dll/Net.Bertware.Utilities.NetVersionDetector.pdb
--------------------------------------------------------------------------------
/Language_generator/My Project/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BukkitGUI/My Project/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/BukkitGUI/My Project/Application.myapp:
--------------------------------------------------------------------------------
1 |
2 |
3 | true
4 | SplashScreen
5 | false
6 | 1
7 | true
8 | 0
9 | false
10 |
--------------------------------------------------------------------------------
/Language_generator/My Project/Application.myapp:
--------------------------------------------------------------------------------
1 |
2 |
3 | true
4 | LangGen
5 | false
6 | 0
7 | true
8 | 0
9 | false
10 |
--------------------------------------------------------------------------------
/BukkitGUI/My Project/AssemblyInfo.vb:
--------------------------------------------------------------------------------
1 | Imports System.Reflection
2 | Imports System.Resources
3 | Imports System.Runtime.InteropServices
4 |
5 | ' General Information about an assembly is controlled through the following
6 | ' set of attributes. Change these attribute values to modify the information
7 | ' associated with an assembly.
8 |
9 | ' Review the values of the assembly attributes
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 'The following GUID is for the ID of the typelib if this project is exposed to COM
21 |
22 |
23 | ' Version information for an assembly consists of the following four values:
24 | '
25 | ' Major Version
26 | ' Minor Version
27 | ' Build Number
28 | ' Revision
29 | '
30 | ' You can specify all the values or you can default the Build and Revision Numbers
31 | ' by using the '*' as shown below:
32 | '
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/FeedBackDialog.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 |
17 | Public Class FeedBackDialog
18 | Private Sub BtnSend_Click() Handles BtnSend.Click
19 | Dim sender As String = TxtMail.Text
20 | If TxtMail.Text = "" Or TxtMail.Text.Contains("@") = False Or TxtMail.Text.Contains(".") = False Then _
21 | sender = "no-reply@bertware.net"
22 | If TxtMessage.Text.Trim.Length < 2 Then _
23 | MessageBox.Show(lr("You cannot send empty messages!"), lr("Can't send"), MessageBoxButtons.OK,
24 | MessageBoxIcon.Error) : Me.Close() : Exit Sub
25 | Contact(sender, "BukkitGUI v" & My.Application.Info.Version.ToString & " Feedback",
26 | TxtMessage.Text)
27 | Me.Close()
28 | End Sub
29 | End Class
--------------------------------------------------------------------------------
/BukkitGUI/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/OutputBrowser.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.Controls
16 |
17 | Public Class OutputBrowser
18 | Dim txtreference As AdvancedRichTextBox
19 |
20 | Public Sub New(ByRef textbox As AdvancedRichTextBox)
21 | InitializeComponent()
22 | SetTextbox(textbox.Rtf)
23 | txtreference = textbox
24 | End Sub
25 |
26 | Public Sub SetTextbox(ByVal rtf As String)
27 | Me.TxtOutput.Rtf = rtf
28 | Me.TxtOutput.ContextMenuStrip = RightClickMenu
29 | Me.TxtOutput.Refresh()
30 | End Sub
31 |
32 | Private Sub BtnCopy_Click(sender As Object, e As EventArgs) Handles BtnCopy.Click
33 | My.Computer.Clipboard.SetText(TxtOutput.SelectedRtf)
34 | End Sub
35 |
36 | Private Sub BtnClose_Click(sender As Object, e As EventArgs) Handles BtnClose.Click
37 | Me.Close()
38 | End Sub
39 |
40 | Private Sub BtnRefresh_Click(sender As Object, e As EventArgs) Handles BtnRefresh.Click
41 | SetTextbox(txtreference.Rtf)
42 | End Sub
43 | End Class
--------------------------------------------------------------------------------
/BukkitGUI/My Project/Application.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.296
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
15 | Namespace My
16 |
17 | 'NOTE: This file is auto-generated; do not modify it directly. To make changes,
18 | ' or if you encounter build errors in this file, go to the Project Designer
19 | ' (go to Project Properties or double-click the My Project node in
20 | ' Solution Explorer), and make changes on the Application tab.
21 | '
22 | Partial Friend Class MyApplication
23 |
24 | _
25 | Public Sub New()
26 | MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
27 | Me.IsSingleInstance = false
28 | Me.EnableVisualStyles = true
29 | Me.SaveMySettingsOnExit = false
30 | Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterAllFormsClose
31 | End Sub
32 |
33 | _
34 | Protected Overrides Sub OnCreateMainForm()
35 | Me.MainForm = Global.Net.Bertware.BukkitGUI.SplashScreen
36 | End Sub
37 | End Class
38 | End Namespace
39 |
--------------------------------------------------------------------------------
/Language_generator/My Project/Application.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.269
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
15 | Namespace My
16 |
17 | 'NOTE: This file is auto-generated; do not modify it directly. To make changes,
18 | ' or if you encounter build errors in this file, go to the Project Designer
19 | ' (go to Project Properties or double-click the My Project node in
20 | ' Solution Explorer), and make changes on the Application tab.
21 | '
22 | Partial Friend Class MyApplication
23 |
24 | _
25 | Public Sub New()
26 | MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
27 | Me.IsSingleInstance = false
28 | Me.EnableVisualStyles = true
29 | Me.SaveMySettingsOnExit = false
30 | Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
31 | End Sub
32 |
33 | _
34 | Protected Overrides Sub OnCreateMainForm()
35 | Me.MainForm = Global.Language_generator.LangGen
36 | End Sub
37 | End Class
38 | End Namespace
39 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/ServerSettingDialog.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Public Class ServerSettingDialog
16 | Public setting As String, value As String
17 |
18 | Public Property NameReadOnly As Boolean
19 | Get
20 | Return TxtSetting.ReadOnly
21 | End Get
22 | Set(value As Boolean)
23 | TxtSetting.ReadOnly = value
24 | End Set
25 | End Property
26 |
27 | Private Sub BtnOk_Click(sender As Object, e As EventArgs) Handles BtnOk.Click
28 | setting = TxtSetting.Text
29 | value = TxtValue.Text
30 | Me.DialogResult = DialogResult.OK
31 | Me.Close()
32 | End Sub
33 |
34 | Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
35 | TxtSetting.Text = setting
36 | TxtValue.Text = value
37 | TxtValue.Focus()
38 | End Sub
39 |
40 | Private Sub TxtValue_KeyUp(sender As Object, e As KeyEventArgs) Handles TxtValue.KeyUp
41 | If e.KeyCode = Keys.Enter Then
42 | e.Handled = True
43 | setting = TxtSetting.Text
44 | value = TxtValue.Text
45 | Me.DialogResult = DialogResult.OK
46 | Me.Close()
47 | End If
48 | End Sub
49 | End Class
--------------------------------------------------------------------------------
/BukkitGUI/forms/ServerStopDialog.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports System.Threading
16 | Imports Net.Bertware.BukkitGUI.Core
17 | Imports Net.Bertware.BukkitGUI.MCInterop
18 |
19 | Public Class ServerStopDialog
20 | Private Sub ServerStopDialog_Load(sender As Object, e As EventArgs) Handles MyBase.Load
21 | If running = True Then StopServer() Else Me.Close() : Exit Sub
22 | AddHandler ServerStopped, AddressOf SafeFormClose
23 | End Sub
24 |
25 | Private Sub SafeFormClose()
26 | Try
27 | If Me.InvokeRequired Then
28 | Dim d As New ContextCallback(AddressOf SafeFormClose)
29 | Me.Invoke(d, New Object())
30 | Else
31 | Me.Close()
32 | End If
33 | Catch ex As Exception
34 | Log(livebug.loggingLevel.Warning, "ServerStopDialog", "Error in SafeFormClose!", ex.Message)
35 | End Try
36 | End Sub
37 |
38 | Private Sub BtnKill_Click(sender As Object, e As EventArgs) Handles BtnKill.Click
39 | Try
40 | host.Kill()
41 | Catch ex As Exception
42 | MessageBox.Show("Couldn't kill server", "Failed", MessageBoxButtons.OK, MessageBoxIcon.Error)
43 | End Try
44 | End Sub
45 | End Class
--------------------------------------------------------------------------------
/BukkitGUI/threadsafe_pass_args.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 |
16 |
17 | 'This file contains classes to pass items to a sub that executes thread safe
18 | 'As these routines can only accept one item, multiple parameters are bundled here
19 | '
20 | Imports Net.Bertware.BukkitGUI.MCInterop
21 |
22 |
23 | Public Class thds_pass_servermessage
24 | Public shorttext As String
25 | Public fulltext As String
26 | Public color As Color
27 |
28 | Public Sub New()
29 | shorttext = ""
30 | fulltext = ""
31 | color = Color.Black
32 | End Sub
33 |
34 | Public Sub New(text As String)
35 | shorttext = text.Split(Environment.NewLine)(0)
36 | fulltext = text
37 | color = Color.Black
38 | End Sub
39 |
40 | Public Sub New(text As String, color As Color)
41 | shorttext = text.Split(Environment.NewLine)(0)
42 | fulltext = text
43 | Me.color = color
44 | End Sub
45 | End Class
46 |
47 | Public Class thds_pass_lookup
48 | Public text As String, type As serverOutputHandler.MessageType
49 |
50 | Public Sub New()
51 | End Sub
52 |
53 | Public Sub New(text As String, type As MessageType)
54 | Me.text = text
55 | Me.type = type
56 | End Sub
57 | End Class
--------------------------------------------------------------------------------
/BukkitGUI/forms/LicenseAcceptDialog.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 |
17 | Public Class LicenseAcceptDialog
18 | Public License_url As String
19 | Public License_name As String
20 |
21 | Public Sub New(name As String, url As String)
22 | InitializeComponent()
23 | Me.License_name = name
24 | Me.License_url = url
25 | End Sub
26 |
27 | Private Sub LicenseAcceptDialog_Load(sender As Object, e As EventArgs) Handles MyBase.Load
28 | Me.Text = lr("Accept") & " " & License_name
29 | ChkAccept.Text = lr("I have read and accept the") & " " & License_name
30 | WebLicense.Navigate(License_url)
31 | End Sub
32 |
33 | Private Sub ChkAccept_CheckedChanged(sender As Object, e As EventArgs) _
34 | Handles ChkAccept.CheckedChanged
35 | If ChkAccept.Checked Then btnOk.Enabled = True
36 | End Sub
37 |
38 | Private Sub btnOk_Click(sender As Object, e As EventArgs) Handles btnOk.Click
39 | Me.DialogResult = DialogResult.OK
40 | Me.Close()
41 | End Sub
42 |
43 | Private Sub BtnCancel_Click(sender As Object, e As EventArgs) Handles BtnCancel.Click
44 | Me.DialogResult = DialogResult.Cancel
45 | Me.Close()
46 | End Sub
47 | End Class
48 |
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Get.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Net.Bertware.Get
7 |
8 |
9 |
10 |
11 |
12 | User agent:
13 | Bertware x.y/application_name application_version [DEBUG]/hash/mail
14 | Hash is set to 0 for debug, and is used to detect fake distributions (evt. banning them from the server)
15 |
16 |
17 |
18 |
19 |
20 | Check which from 2 versions is newer. returns -1 if old version is newer, 0 if equal, 1 if new version is newer
21 |
22 | the old version, x.x, x.x.x or x.x.x.x format
23 | the new version, x.x, x.x.x or x.x.x.x format
24 | -1 if old version is newer, 0 if equal, 1 if new version is newer
25 | This function can handle version numbers with parts up to 65535
26 |
27 |
28 |
29 | Returns the cached ResourceManager instance used by this class.
30 |
31 |
32 |
33 |
34 | Overrides the current thread's CurrentUICulture property for all
35 | resource lookups using this strongly typed resource class.
36 |
37 |
38 |
39 |
40 | A strongly-typed resource class, for looking up localized strings, etc.
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/BukkitGUI/MCInterop/tools_Various.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Namespace MCInterop
16 | Module VanillaTools
17 | Const SERVER_FILE As String = "https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar"
18 |
19 | Public Function Download(target As String) As DialogResult
20 | Dim fd As New FileDownloader(SERVER_FILE, target, "Downloading latest Vanilla version")
21 | Return fd.ShowDialog()
22 | End Function
23 | End Module
24 |
25 | Module SpigotTools
26 | Const SERVER_FILE As String =
27 | "http://ci.md-5.net/job/Spigot/lastStableBuild/artifact/Spigot-Server/target/spigot.jar"
28 |
29 | Const SERVER_FILE_DEV As String =
30 | "http://ci.md-5.net/job/Spigot/lastSuccessfulBuild/artifact/Spigot-Server/target/spigot.jar"
31 |
32 | Public Function Download(target As String) As DialogResult
33 | Dim fd As New FileDownloader(SERVER_FILE, target, "Downloading latest stable Spigot version")
34 | Return fd.ShowDialog()
35 | End Function
36 |
37 | Public Function DownloadDev(target As String) As DialogResult
38 | Dim fd As New FileDownloader(SERVER_FILE_DEV, target, "Downloading latest Spigot version")
39 | Return fd.ShowDialog()
40 | End Function
41 | End Module
42 | End Namespace
--------------------------------------------------------------------------------
/Language_generator/My Project/AssemblyInfo.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports System
16 | Imports System.Reflection
17 | Imports System.Runtime.InteropServices
18 |
19 | ' General Information about an assembly is controlled through the following
20 | ' set of attributes. Change these attribute values to modify the information
21 | ' associated with an assembly.
22 |
23 | ' Review the values of the assembly attributes
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | 'The following GUID is for the ID of the typelib if this project is exposed to COM
35 |
36 |
37 | ' Version information for an assembly consists of the following four values:
38 | '
39 | ' Major Version
40 | ' Minor Version
41 | ' Build Number
42 | ' Revision
43 | '
44 | ' You can specify all the values or you can default the Build and Revision Numbers
45 | ' by using the '*' as shown below:
46 | '
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/BukkitGUI/Utilities/AdvancedOptions.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports System.Xml
16 | Imports Net.Bertware.BukkitGUI.Core
17 |
18 |
19 | Namespace Utilities
20 | '
21 | ' This module adds options that are only editable in the config.xml
22 | '
23 | '
24 | Module AdvancedOptions
25 | Public SpamFilter As List(Of String)
26 | Public MinotarSize As Byte = 32
27 | Public MinotarSource As String = "http://minotar.net"
28 |
29 | Public Sub AdvancedOptions_Load()
30 | Try
31 | SpamFilter = New List(Of String)
32 | read("spamfilter", "", "advanced") 'make sure one element is created
33 | Dim nlist As XmlNodeList = FxmlHandle.GetElementsByName("spamfilter")
34 | For Each element As XmlElement In nlist
35 | 'if innertext is nothing or "", don't add!
36 | If _
37 | element.InnerText IsNot Nothing AndAlso element.InnerText IsNot Nothing AndAlso
38 | element.InnerText <> "" AndAlso element.InnerText.Trim <> "" Then _
39 | SpamFilter.Add(element.InnerText)
40 | Next
41 |
42 | Dim tmp As Integer = 0
43 | If Integer.TryParse(read("minotar_size", "32", "advanced"), tmp) Then
44 | If tmp > 128 Then MinotarSize = 128 Else MinotarSize = tmp
45 | Else
46 | MinotarSize = 32
47 | End If
48 |
49 | MinotarSource = read("minotar_source", "http://minotar.net", "advanced")
50 |
51 | Catch ex As Exception
52 | End Try
53 | End Sub
54 | End Module
55 | End Namespace
--------------------------------------------------------------------------------
/BukkitGUI/My Project/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | This project has been abandoned. Pull requests will be reviewed and accepted, but no active development is happening anymore.
2 | This project was continued in C#. You can find it here: https://github.com/Bertware/bukkitgui2/ .
3 |
4 | ---------
5 |
6 | ## bukkitgui
7 | The bukkit GUI project - shortened BukkitGUI - is intended to provide server owners with a easy to use, powerful GUI. Except from clearly displaying server information, it also adds some powerful functions, like a task planner, error logger and solver, plugin manager,...
8 |
9 | ### Features
10 | * Coloured output, colours definable in settings
11 | * Detailed player list with context menu, quickly apply an action to a player
12 | * Advanced options to launch bukkit, update bukkit, auto update check for bukkit
13 | * Automate your server with the task manager
14 | * Highly precise memory and CPU measurement
15 | * Low on resources, performance can be adjusted in settings
16 | * Error logging, searching for the cause of errors, and if possible, solving of errors
17 | * Tray icon (with support to minimize to tray) and balloon tips
18 | * Sound when something happen can be activated
19 | * Rarely/Never breaks on Minecraft/bukkit update
20 | * Backups (multiple backup definitions possible)
21 | * Install, update, manage plugins from within the GUI
22 | * port forwarding
23 |
24 | ### Use
25 | Please see the project page at dev.bukkit.org for information, including video tutorials, on how to set-up and use this software.
26 | https://dev.bukkit.org/projects/bukkitgui?gameCategorySlug=bukkit-plugins&projectID=32715
27 |
28 | #### Remote Server Support
29 | The GUI can also show output and send commands to remote servers. The recommended way to use a remote server is by using JSONAPI. In order for this to work, the JSONAPI plugin should be installed on your server.
30 |
31 | If you want to start RemoteToolkit using the GUI, do the following: -Set the server type to bukkit -Select the remote toolkit jar file -Enter the following custom switch: "user:pass" without the ""
32 |
33 | #### Downloads
34 | Recommended builds can be downloaded from Bukkitdev. If enabled, the GUI will check for updates and download those from bukkitdev after you agreed with the download.
35 |
36 | ### To-Do
37 | * Portforwarding (work in progress)
38 |
39 | ### Known Issues
40 |
41 | Sometimes tasks run twice
42 |
43 | ### compatibility
44 | #### operating systems
45 | Windows XP and higher. If it doesn't work, make shure if you have .net framework 3.5.
46 | Linux and Mac aren't supported.
47 |
48 | #### minecraft servers
49 | The following minecraft servers are supported:
50 |
51 | * Bukkit build 800 and higher (lower isn't tested)
52 | * RemoteToolKit
53 | * Vanilla
54 | * Tekkit
55 | * MCPC (set server type to vanilla,generic java, or to bukkit with disabled "retrieve current version on server start")
56 | * CraftBukkit
57 | * Spigot
58 | * Spout
59 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/InstalledPluginDialog.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 | Imports Net.Bertware.BukkitGUI.MCInterop
17 |
18 | Public Class InstalledPluginDialog
19 | Public plugin As plugindescriptor
20 |
21 | Public Sub New(mainspace As String)
22 | Me.InitializeComponent()
23 | If plugin IsNot Nothing Then Me.plugin = plugin.ToSafeObject
24 | End Sub
25 |
26 | Public Sub New(plugin As plugindescriptor)
27 | Me.InitializeComponent()
28 | If plugin IsNot Nothing Then Me.plugin = plugin.ToSafeObject
29 | End Sub
30 |
31 | Private Sub InstalledPluginDialog_Load(sender As Object, e As EventArgs) Handles MyBase.Load
32 | If plugin Is Nothing Then Exit Sub
33 |
34 | lblName.Text = lr("Name:") & " " & plugin.name
35 | Me.Text = lr("Plugin details:") & " " & plugin.name
36 | LblAuthors.Text = lr("Author(s):") & " " & Serialize(plugin.authors)
37 | LblPath.Text = lr("Path:") & " " & plugin_dir & "/" & plugin.filename
38 | lblVersion.Text = lr("Version:") & " " & plugin.version
39 | lblSoftdepend.Text = lr("Softdepend:") & " " & Serialize(plugin.softdepend)
40 | lblNamespace.Text = lr("Main namespace:") & " " & plugin.main
41 |
42 | For Each Command As pluginCommand In plugin.commands
43 | Dim _
44 | lvi As _
45 | New ListViewItem(
46 | {Command.name, Command.description, Command.usage, Serialize(Command.aliases)})
47 | ALVCommands.Items.Add(lvi)
48 | Next
49 |
50 | For Each permission As pluginPermission In plugin.permissions
51 | Dim lvi As New ListViewItem({permission.name, permission.description})
52 | ALVPermissions.Items.Add(lvi)
53 | If permission.children IsNot Nothing AndAlso permission.children.Count > 0 Then
54 | For Each child As pluginPermissionChild In permission.children
55 | Dim clvi As New ListViewItem({child.name, "child"})
56 | clvi.IndentCount = 4
57 | ALVPermissions.Items.Add(clvi)
58 | Next
59 | End If
60 | Next
61 | End Sub
62 |
63 | Private Sub btnLatestVersion_Click(sender As Object, e As EventArgs) Handles btnLatestVersion.Click
64 | If plugin IsNot Nothing Then ShowPluginDialogByNamespace(plugin.main)
65 | End Sub
66 | End Class
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.sln.docstates
8 | *.pfx
9 | # Build results
10 |
11 | [Dd]ebug/
12 | [Rr]elease/
13 | x64/
14 | build/
15 | [Bb]in/
16 | [Oo]bj/
17 |
18 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
19 | !packages/*/build/
20 |
21 | # MSTest test Results
22 | [Tt]est[Rr]esult*/
23 | [Bb]uild[Ll]og.*
24 |
25 | *_i.c
26 | *_p.c
27 | *.ilk
28 | *.meta
29 | *.obj
30 | *.pch
31 | *.pdb
32 | *.pgc
33 | *.pgd
34 | *.rsp
35 | *.sbr
36 | *.tlb
37 | *.tli
38 | *.tlh
39 | *.tmp
40 | *.tmp_proj
41 | *.log
42 | *.vspscc
43 | *.vssscc
44 | .builds
45 | *.pidb
46 | *.log
47 | *.scc
48 |
49 | # Visual C++ cache files
50 | ipch/
51 | *.aps
52 | *.ncb
53 | *.opensdf
54 | *.sdf
55 | *.cachefile
56 |
57 | # Visual Studio profiler
58 | *.psess
59 | *.vsp
60 | *.vspx
61 |
62 | # Guidance Automation Toolkit
63 | *.gpState
64 |
65 | # ReSharper is a .NET coding add-in
66 | _ReSharper*/
67 | *.[Rr]e[Ss]harper
68 |
69 | # TeamCity is a build add-in
70 | _TeamCity*
71 |
72 | # DotCover is a Code Coverage Tool
73 | *.dotCover
74 |
75 | # NCrunch
76 | *.ncrunch*
77 | .*crunch*.local.xml
78 |
79 | # Installshield output folder
80 | [Ee]xpress/
81 |
82 | # DocProject is a documentation generator add-in
83 | DocProject/buildhelp/
84 | DocProject/Help/*.HxT
85 | DocProject/Help/*.HxC
86 | DocProject/Help/*.hhc
87 | DocProject/Help/*.hhk
88 | DocProject/Help/*.hhp
89 | DocProject/Help/Html2
90 | DocProject/Help/html
91 |
92 | # Click-Once directory
93 | publish/
94 |
95 | # Publish Web Output
96 | *.Publish.xml
97 |
98 | # NuGet Packages Directory
99 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line
100 | #packages/
101 |
102 | # Windows Azure Build Output
103 | csx
104 | *.build.csdef
105 |
106 | # Windows Store app package directory
107 | AppPackages/
108 |
109 | # Others
110 | sql/
111 | *.Cache
112 | ClientBin/
113 | [Ss]tyle[Cc]op.*
114 | ~$*
115 | *~
116 | *.dbmdl
117 | *.[Pp]ublish.xml
118 | *.pfx
119 | *.publishsettings
120 |
121 | # RIA/Silverlight projects
122 | Generated_Code/
123 |
124 | # Backup & report files from converting an old project file to a newer
125 | # Visual Studio version. Backup files are not needed, because we have git ;-)
126 | _UpgradeReport_Files/
127 | Backup*/
128 | UpgradeLog*.XML
129 | UpgradeLog*.htm
130 |
131 | # SQL Server files
132 | App_Data/*.mdf
133 | App_Data/*.ldf
134 |
135 |
136 | #LightSwitch generated files
137 | GeneratedArtifacts/
138 | _Pvt_Extensions/
139 | ModelManifest.xml
140 |
141 | # =========================
142 | # Windows detritus
143 | # =========================
144 |
145 | # Windows image file caches
146 | Thumbs.db
147 | ehthumbs.db
148 |
149 | # Folder config file
150 | Desktop.ini
151 |
152 | # Recycle Bin used on file shares
153 | $RECYCLE.BIN/
154 |
155 | # Mac desktop service store files
156 | .DS_Store
157 | .svn*
--------------------------------------------------------------------------------
/BukkitGUI/My Project/Settings.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.296
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
15 | Namespace My
16 |
17 | _
20 | Partial Friend NotInheritable Class MySettings
21 | Inherits Global.System.Configuration.ApplicationSettingsBase
22 |
23 | Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
24 |
25 | #Region "My.Settings Auto-Save Functionality"
26 | #If _MyType = "WindowsForms" Then
27 | Private Shared addedHandler As Boolean
28 |
29 | Private Shared addedHandlerLockObject As New Object
30 |
31 | _
32 | Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
33 | If My.Application.SaveMySettingsOnExit Then
34 | My.Settings.Save()
35 | End If
36 | End Sub
37 | #End If
38 | #End Region
39 |
40 | Public Shared ReadOnly Property [Default]() As MySettings
41 | Get
42 |
43 | #If _MyType = "WindowsForms" Then
44 | If Not addedHandler Then
45 | SyncLock addedHandlerLockObject
46 | If Not addedHandler Then
47 | AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48 | addedHandler = True
49 | End If
50 | End SyncLock
51 | End If
52 | #End If
53 | Return defaultInstance
54 | End Get
55 | End Property
56 | End Class
57 | End Namespace
58 |
59 | Namespace My
60 |
61 | _
64 | Friend Module MySettingsProperty
65 |
66 | _
67 | Friend ReadOnly Property Settings() As Global.Net.Bertware.BukkitGUI.My.MySettings
68 | Get
69 | Return Global.Net.Bertware.BukkitGUI.My.MySettings.Default
70 | End Get
71 | End Property
72 | End Module
73 | End Namespace
74 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/ServerStopDialog.Designer.vb:
--------------------------------------------------------------------------------
1 | Imports Net.Bertware.BukkitGUI.Core
2 | Imports Net.Bertware.Controls
3 |
4 | _
5 | Partial Class ServerStopDialog
6 | Inherits System.Windows.Forms.Form
7 |
8 | 'Form overrides dispose to clean up the component list.
9 | _
10 | Protected Overrides Sub Dispose(ByVal disposing As Boolean)
11 | Try
12 | If disposing AndAlso components IsNot Nothing Then
13 | components.Dispose()
14 | End If
15 | Finally
16 | MyBase.Dispose(disposing)
17 | End Try
18 | End Sub
19 |
20 | 'Required by the Windows Form Designer
21 | Private components As System.ComponentModel.IContainer
22 |
23 | 'NOTE: The following procedure is required by the Windows Form Designer
24 | 'It can be modified using the Windows Form Designer.
25 | 'Do not modify it using the code editor.
26 | _
27 | Private Sub InitializeComponent()
28 | Me.ProgressBar = New Net.Bertware.Controls.VistaProgressBar()
29 | Me.BtnKill = New System.Windows.Forms.Button()
30 | Me.SuspendLayout()
31 | '
32 | 'ProgressBar
33 | '
34 | Me.ProgressBar.BackColor = System.Drawing.Color.Transparent
35 | Me.ProgressBar.BarColorMethod = Net.Bertware.Controls.VistaProgressBar.BarColorsWhen.None
36 | Me.ProgressBar.DisplayText = lr("")
37 | Me.ProgressBar.EndColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
38 | Me.ProgressBar.Location = New System.Drawing.Point(12, 12)
39 | Me.ProgressBar.MarqueeSpeed = 10
40 | Me.ProgressBar.Name = "ProgressBar"
41 | Me.ProgressBar.ProgressBarStyle = Net.Bertware.Controls.VistaProgressBar.BarStyle.Marquee
42 | Me.ProgressBar.ShowPercentage = Net.Bertware.Controls.VistaProgressBar.TextShowFormats.None
43 | Me.ProgressBar.Size = New System.Drawing.Size(272, 15)
44 | Me.ProgressBar.StartColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
45 | Me.ProgressBar.TabIndex = 0
46 | '
47 | 'BtnKill
48 | '
49 | Me.BtnKill.Location = New System.Drawing.Point(12, 34)
50 | Me.BtnKill.Name = "BtnKill"
51 | Me.BtnKill.Size = New System.Drawing.Size(272, 23)
52 | Me.BtnKill.TabIndex = 1
53 | Me.BtnKill.Text = lr("&Kill")
54 | Me.BtnKill.UseVisualStyleBackColor = True
55 | '
56 | 'ServerStopDialog
57 | '
58 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
59 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
60 | Me.ClientSize = New System.Drawing.Size(296, 65)
61 | Me.ControlBox = False
62 | Me.Controls.Add(Me.BtnKill)
63 | Me.Controls.Add(Me.ProgressBar)
64 | Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
65 | Me.Name = "ServerStopDialog"
66 | Me.ShowIcon = False
67 | Me.ShowInTaskbar = False
68 | Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
69 | Me.Text = lr("Waiting for server to stop")
70 | Me.ResumeLayout(False)
71 |
72 | End Sub
73 | Friend WithEvents ProgressBar As Net.Bertware.Controls.VistaProgressBar
74 | Friend WithEvents BtnKill As System.Windows.Forms.Button
75 | End Class
76 |
77 |
78 |
--------------------------------------------------------------------------------
/BukkitGUI/MCInterop/base_Player.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | 'Player class, for players on the minecraft server.
16 | 'ported from beta
17 | Namespace MCInterop
18 | Public Class Player
19 | Public name As String,
20 | IP As String,
21 | time As Date,
22 | WhiteList As Boolean,
23 | OP As Boolean,
24 | location As String,
25 | avatar As Image
26 |
27 | Public Sub New()
28 | name = ""
29 | IP = ""
30 | time = Date.Now
31 | WhiteList = False
32 | OP = False
33 |
34 | location = "unknown"
35 | End Sub
36 |
37 | Public Sub New(playername As String)
38 | name = playername
39 | IP = ""
40 | time = Date.Now
41 | WhiteList = False
42 | OP = False
43 |
44 | location = "unknown"
45 | End Sub
46 |
47 | Public Sub New(playername As String, PlayerIp As String)
48 | name = playername
49 | IP = PlayerIp
50 | time = Date.Now
51 | WhiteList = False
52 | OP = False
53 |
54 | location = "unknown"
55 | End Sub
56 |
57 | Public Shared Function FromSimplePlayer(player As SimplePlayer) As Player
58 | Dim p As New Player
59 | p.name = player.name
60 | p.IP = player.IP
61 | p.time = player.time
62 | p.WhiteList = False
63 | p.OP = False
64 | p.location = "unknown"
65 |
66 | Return p
67 | End Function
68 |
69 | Public Function MeFromSimplePlayer(player As SimplePlayer) As Player
70 | Me.name = player.name
71 | Me.IP = player.IP
72 | Me.time = player.time
73 | Me.WhiteList = False
74 | Me.OP = False
75 | Me.location = "unknown"
76 |
77 | Return Me
78 | End Function
79 | End Class
80 |
81 | Public Class SimplePlayer
82 | Public name As String, IP As String, time As Date
83 |
84 | Public Sub New()
85 | name = ""
86 | IP = ""
87 | time = Date.Now
88 | End Sub
89 |
90 | Public Sub New(playername As String)
91 | name = playername
92 | IP = ""
93 | time = Date.Now
94 | End Sub
95 |
96 | Public Sub New(playername As String, PlayerIp As String)
97 | name = playername
98 | IP = PlayerIp
99 | time = Date.Now
100 | End Sub
101 |
102 | Public Shared Function FromPlayer(player As Player) As SimplePlayer
103 | Dim p As New SimplePlayer
104 | p.name = player.name
105 | p.IP = player.IP
106 | p.time = player.time
107 | Return p
108 | End Function
109 | End Class
110 | End Namespace
--------------------------------------------------------------------------------
/BukkitGUI/Utilities/LicenseManager.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 |
17 |
18 | Namespace Utilities
19 | Module LicenseManager
20 | Const EULA_URL As String = "http://legal.bertware.net/bukkitgui/eula.html"
21 | Const PRIVACY_URL As String = "http://legal.bertware.net/bukkitgui/privacy.html"
22 |
23 |
24 | '''
25 | ''' Initialize the config file
26 | '''
27 | ''' True on success
28 | ''' Must be done before anything else
29 | Public Function init() As Boolean
30 | If readAsBool("license_eula_accept", False, "") = False Then _
31 | ShowEULA(True) : writeAsBool("license_eula_accept", True, "")
32 | If readAsBool("license_privacy_accept", False, "") = False Then _
33 | ShowPrivacy(True) : writeAsBool("license_privacy_accept", True, "")
34 | Return True
35 | End Function
36 |
37 | Private Function ShowEULA(MustAccept As Boolean) As Boolean
38 | Dim lad As New LicenseAcceptDialog("End User License Agreement", EULA_URL)
39 | While lad.DialogResult <> DialogResult.OK
40 | lad = New LicenseAcceptDialog("End User License Agreement", EULA_URL)
41 | lad.ShowDialog()
42 | If lad.DialogResult = DialogResult.OK Then Exit While
43 | If _
44 | MessageBox.Show(lr("You have to accept in order to use the application. Do you want to exit?"),
45 | lr("Exit?"), MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes _
46 | Then
47 | Log(loggingLevel.Fine, "LicenseManager", "User doesn't accept EULA. Exiting program")
48 | Process.GetCurrentProcess.Kill()
49 | End If
50 | End While
51 | Return True
52 | End Function
53 |
54 | Private Function ShowPrivacy(MustAccept As Boolean) As Boolean
55 | Dim lad As New LicenseAcceptDialog("Privacy Policy", PRIVACY_URL)
56 | While lad.DialogResult <> DialogResult.OK
57 | lad = New LicenseAcceptDialog("Privacy Policy", PRIVACY_URL)
58 | lad.ShowDialog()
59 | If lad.DialogResult = DialogResult.OK Then Exit While
60 | If _
61 | MessageBox.Show(lr("You have to accept in order to use the application. Do you want to exit?"),
62 | lr("Exit?"), MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes _
63 | Then
64 | Log(loggingLevel.Fine, "LicenseManager",
65 | "User doesn't accept privacy policy. Exiting program")
66 | Process.GetCurrentProcess.Kill()
67 | End If
68 | End While
69 | Return True
70 | End Function
71 | End Module
72 | End Namespace
--------------------------------------------------------------------------------
/Language_generator/Form1.Designer.vb:
--------------------------------------------------------------------------------
1 | _
2 | Partial Class LangGen
3 | Inherits System.Windows.Forms.Form
4 |
5 | 'Form overrides dispose to clean up the component list.
6 | _
7 | Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8 | Try
9 | If disposing AndAlso components IsNot Nothing Then
10 | components.Dispose()
11 | End If
12 | Finally
13 | MyBase.Dispose(disposing)
14 | End Try
15 | End Sub
16 |
17 | 'Required by the Windows Form Designer
18 | Private components As System.ComponentModel.IContainer
19 |
20 | 'NOTE: The following procedure is required by the Windows Form Designer
21 | 'It can be modified using the Windows Form Designer.
22 | 'Do not modify it using the code editor.
23 | _
24 | Private Sub InitializeComponent()
25 | Me.components = New System.ComponentModel.Container()
26 | Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(LangGen))
27 | Me.BtnGo = New System.Windows.Forms.Button()
28 | Me.VPBar = New Bertware.Controls.VistaProgressBar()
29 | Me.TxtLog = New Bertware.Controls.AdvancedRichTextBox(Me.components)
30 | Me.SuspendLayout()
31 | '
32 | 'BtnGo
33 | '
34 | Me.BtnGo.Location = New System.Drawing.Point(703, 12)
35 | Me.BtnGo.Name = "BtnGo"
36 | Me.BtnGo.Size = New System.Drawing.Size(103, 23)
37 | Me.BtnGo.TabIndex = 1
38 | Me.BtnGo.Text = "Open and Go"
39 | Me.BtnGo.UseVisualStyleBackColor = True
40 | '
41 | 'VPBar
42 | '
43 | Me.VPBar.BackColor = System.Drawing.Color.Transparent
44 | Me.VPBar.DisplayText = ""
45 | Me.VPBar.EndColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
46 | Me.VPBar.Location = New System.Drawing.Point(12, 20)
47 | Me.VPBar.Name = "VPBar"
48 | Me.VPBar.ShowPercentage = Bertware.Controls.VistaProgressBar.TextShowFormats.None
49 | Me.VPBar.Size = New System.Drawing.Size(685, 15)
50 | Me.VPBar.StartColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
51 | Me.VPBar.TabIndex = 2
52 | '
53 | 'TxtLog
54 | '
55 | Me.TxtLog.Location = New System.Drawing.Point(12, 41)
56 | Me.TxtLog.Name = "TxtLog"
57 | Me.TxtLog.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical
58 | Me.TxtLog.Size = New System.Drawing.Size(794, 435)
59 | Me.TxtLog.TabIndex = 3
60 | Me.TxtLog.Text = ""
61 | '
62 | 'LangGen
63 | '
64 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
65 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
66 | Me.ClientSize = New System.Drawing.Size(818, 488)
67 | Me.Controls.Add(Me.TxtLog)
68 | Me.Controls.Add(Me.VPBar)
69 | Me.Controls.Add(Me.BtnGo)
70 | Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
71 | Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
72 | Me.Name = "LangGen"
73 | Me.Text = "Language generator for bukkitGUI"
74 | Me.ResumeLayout(False)
75 |
76 | End Sub
77 | Friend WithEvents BtnGo As System.Windows.Forms.Button
78 | Friend WithEvents VPBar As Bertware.Controls.VistaProgressBar
79 | Friend WithEvents TxtLog As Bertware.Controls.AdvancedRichTextBox
80 | End Class
81 |
--------------------------------------------------------------------------------
/Language_generator/My Project/Settings.Designer.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | '------------------------------------------------------------------------------
16 | '
17 | ' This code was generated by a tool.
18 | ' Runtime Version:4.0.30319.269
19 | '
20 | ' Changes to this file may cause incorrect behavior and will be lost if
21 | ' the code is regenerated.
22 | '
23 | '------------------------------------------------------------------------------
24 |
25 | Option Strict On
26 | Option Explicit On
27 |
28 |
29 | Namespace My
30 |
31 | _
34 | Partial Friend NotInheritable Class MySettings
35 | Inherits Global.System.Configuration.ApplicationSettingsBase
36 |
37 | Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
38 |
39 | #Region "My.Settings Auto-Save Functionality"
40 | #If _MyType = "WindowsForms" Then
41 | Private Shared addedHandler As Boolean
42 |
43 | Private Shared addedHandlerLockObject As New Object
44 |
45 | _
46 | Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
47 | If My.Application.SaveMySettingsOnExit Then
48 | My.Settings.Save()
49 | End If
50 | End Sub
51 | #End If
52 | #End Region
53 |
54 | Public Shared ReadOnly Property [Default]() As MySettings
55 | Get
56 |
57 | #If _MyType = "WindowsForms" Then
58 | If Not addedHandler Then
59 | SyncLock addedHandlerLockObject
60 | If Not addedHandler Then
61 | AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
62 | addedHandler = True
63 | End If
64 | End SyncLock
65 | End If
66 | #End If
67 | Return defaultInstance
68 | End Get
69 | End Property
70 | End Class
71 | End Namespace
72 |
73 | Namespace My
74 |
75 | _
78 | Friend Module MySettingsProperty
79 |
80 | _
81 | Friend ReadOnly Property Settings() As Global.Language_generator.My.MySettings
82 | Get
83 | Return Global.Language_generator.My.MySettings.Default
84 | End Get
85 | End Property
86 | End Module
87 | End Namespace
88 |
--------------------------------------------------------------------------------
/BukkitGUI/SoundNotificator.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 | Imports Net.Bertware.BukkitGUI.MCInterop
17 | Imports Net.Bertware.BukkitGUI.Utilities
18 |
19 | Module SoundNotificator
20 | Private _onPlayerJoin As Boolean, _onplayerDisconnect As Boolean, _onWarning As Boolean, _onsevere As Boolean
21 |
22 | Public Property onPlayerJoin As Boolean
23 | Get
24 | Return _onPlayerJoin
25 | End Get
26 | Set(value As Boolean)
27 | writeAsBool("join", value, "sound")
28 | _onPlayerJoin = value
29 | End Set
30 | End Property
31 |
32 | Public Property onPlayerDisconnect As Boolean
33 | Get
34 | Return _onplayerDisconnect
35 | End Get
36 | Set(value As Boolean)
37 | writeAsBool("disconnect", value, "sound")
38 | _onplayerDisconnect = value
39 | End Set
40 | End Property
41 |
42 | Public Property onWarning As Boolean
43 | Get
44 | Return _onWarning
45 | End Get
46 | Set(value As Boolean)
47 | writeAsBool("warning", value, "sound")
48 | _onWarning = value
49 | End Set
50 | End Property
51 |
52 | Public Property onSevere As Boolean
53 | Get
54 | Return _onsevere
55 | End Get
56 | Set(value As Boolean)
57 | writeAsBool("severe", value, "sound")
58 | _onsevere = value
59 | End Set
60 | End Property
61 |
62 | Public Sub init()
63 | _onPlayerJoin = readAsBool("join", False, "sound")
64 | _onplayerDisconnect = readAsBool("disconnect", False, "sound")
65 | _onWarning = readAsBool("warning", False, "sound")
66 | _onsevere = readAsBool("severe", False, "sound")
67 |
68 | AddHandler serverOutputHandler.PlayerJoin, AddressOf hnd_PlayerJoin
69 | AddHandler serverOutputHandler.PlayerDisconnect, AddressOf hnd_PlayerDisconnect
70 | AddHandler serverOutputHandler.WarningReceived, AddressOf hnd_WarningReceived
71 | AddHandler serverOutputHandler.SevereReceived, AddressOf hnd_SeverReceived
72 | End Sub
73 |
74 | Private Sub hnd_PlayerJoin(e As PlayerJoinEventArgs)
75 | If e.reason = PlayerDisconnectEventArgs.playerleavereason.listupdate Then Exit Sub
76 | If onPlayerJoin Then
77 | My.Computer.Audio.Play(My.Resources.sound_connect, AudioPlayMode.Background)
78 | End If
79 | End Sub
80 |
81 | Private Sub hnd_PlayerDisconnect(e As PlayerDisconnectEventArgs)
82 | If e.reason = PlayerDisconnectEventArgs.playerleavereason.listupdate Then Exit Sub
83 | If onPlayerDisconnect Then
84 | My.Computer.Audio.Play(My.Resources.sound_disconnect, AudioPlayMode.Background)
85 | End If
86 | End Sub
87 |
88 | Private Sub hnd_WarningReceived(e As ErrorReceivedEventArgs)
89 | If onWarning Then
90 | My.Computer.Audio.Play(My.Resources.sound_warning, AudioPlayMode.Background)
91 | End If
92 | End Sub
93 |
94 | Private Sub hnd_SeverReceived(e As ErrorReceivedEventArgs)
95 | If onSevere Then
96 | My.Computer.Audio.Play(My.Resources.sound_severe, AudioPlayMode.Background)
97 | End If
98 | End Sub
99 | End Module
--------------------------------------------------------------------------------
/Language_generator/My Project/Resources.Designer.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | '------------------------------------------------------------------------------
16 | '
17 | ' This code was generated by a tool.
18 | ' Runtime Version:4.0.30319.269
19 | '
20 | ' Changes to this file may cause incorrect behavior and will be lost if
21 | ' the code is regenerated.
22 | '
23 | '------------------------------------------------------------------------------
24 |
25 | Option Strict On
26 | Option Explicit On
27 |
28 | Imports System
29 |
30 | Namespace My.Resources
31 |
32 | 'This class was auto-generated by the StronglyTypedResourceBuilder
33 | 'class via a tool like ResGen or Visual Studio.
34 | 'To add or remove a member, edit your .ResX file then rerun ResGen
35 | 'with the /str option, or rebuild your VS project.
36 | '''
37 | ''' A strongly-typed resource class, for looking up localized strings, etc.
38 | '''
39 | _
43 | Friend Module Resources
44 |
45 | Private resourceMan As Global.System.Resources.ResourceManager
46 |
47 | Private resourceCulture As Global.System.Globalization.CultureInfo
48 |
49 | '''
50 | ''' Returns the cached ResourceManager instance used by this class.
51 | '''
52 | _
53 | Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
54 | Get
55 | If Object.ReferenceEquals(resourceMan, Nothing) Then
56 | Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Language_generator.Resources", GetType(Resources).Assembly)
57 | resourceMan = temp
58 | End If
59 | Return resourceMan
60 | End Get
61 | End Property
62 |
63 | '''
64 | ''' Overrides the current thread's CurrentUICulture property for all
65 | ''' resource lookups using this strongly typed resource class.
66 | '''
67 | _
68 | Friend Property Culture() As Global.System.Globalization.CultureInfo
69 | Get
70 | Return resourceCulture
71 | End Get
72 | Set
73 | resourceCulture = value
74 | End Set
75 | End Property
76 |
77 | Friend ReadOnly Property Bertware_Controls() As Byte()
78 | Get
79 | Dim obj As Object = ResourceManager.GetObject("Bertware_Controls", resourceCulture)
80 | Return CType(obj,Byte())
81 | End Get
82 | End Property
83 | End Module
84 | End Namespace
85 |
--------------------------------------------------------------------------------
/BukkitGUI.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "BukkitGUI", "BukkitGUI\BukkitGUI.vbproj", "{8C47C28E-A298-4148-B490-83D845248CAF}"
5 | EndProject
6 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Language_generator", "Language_generator\Language_generator.vbproj", "{E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}"
7 | EndProject
8 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "build translator", "build translator\build translator.vbproj", "{1027D60A-8343-40A3-8BF6-7F98C6C769AA}"
9 | EndProject
10 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5E7F654E-B45A-4F91-A939-447CA2A610FA}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Debug|Mixed Platforms = Debug|Mixed Platforms
16 | Debug|x86 = Debug|x86
17 | Release|Any CPU = Release|Any CPU
18 | Release|Mixed Platforms = Release|Mixed Platforms
19 | Release|x86 = Release|x86
20 | EndGlobalSection
21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
22 | {8C47C28E-A298-4148-B490-83D845248CAF}.Debug|Any CPU.ActiveCfg = Debug|x86
23 | {8C47C28E-A298-4148-B490-83D845248CAF}.Debug|Any CPU.Build.0 = Debug|x86
24 | {8C47C28E-A298-4148-B490-83D845248CAF}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
25 | {8C47C28E-A298-4148-B490-83D845248CAF}.Debug|Mixed Platforms.Build.0 = Debug|x86
26 | {8C47C28E-A298-4148-B490-83D845248CAF}.Debug|x86.ActiveCfg = Debug|x86
27 | {8C47C28E-A298-4148-B490-83D845248CAF}.Debug|x86.Build.0 = Debug|x86
28 | {8C47C28E-A298-4148-B490-83D845248CAF}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {8C47C28E-A298-4148-B490-83D845248CAF}.Release|Any CPU.Build.0 = Release|Any CPU
30 | {8C47C28E-A298-4148-B490-83D845248CAF}.Release|Mixed Platforms.ActiveCfg = Release|x86
31 | {8C47C28E-A298-4148-B490-83D845248CAF}.Release|Mixed Platforms.Build.0 = Release|x86
32 | {8C47C28E-A298-4148-B490-83D845248CAF}.Release|x86.ActiveCfg = Release|x86
33 | {8C47C28E-A298-4148-B490-83D845248CAF}.Release|x86.Build.0 = Release|x86
34 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Debug|Any CPU.Build.0 = Debug|Any CPU
36 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
37 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
38 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Debug|x86.ActiveCfg = Debug|Any CPU
39 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Release|Any CPU.ActiveCfg = Release|Any CPU
40 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Release|Any CPU.Build.0 = Release|Any CPU
41 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
42 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Release|Mixed Platforms.Build.0 = Release|Any CPU
43 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}.Release|x86.ActiveCfg = Release|Any CPU
44 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Debug|Any CPU.ActiveCfg = Debug|x86
45 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
46 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Debug|Mixed Platforms.Build.0 = Debug|x86
47 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Debug|x86.ActiveCfg = Debug|x86
48 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Debug|x86.Build.0 = Debug|x86
49 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Release|Any CPU.ActiveCfg = Release|x86
50 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Release|Any CPU.Build.0 = Release|x86
51 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Release|Mixed Platforms.ActiveCfg = Release|x86
52 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Release|Mixed Platforms.Build.0 = Release|x86
53 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Release|x86.ActiveCfg = Release|x86
54 | {1027D60A-8343-40A3-8BF6-7F98C6C769AA}.Release|x86.Build.0 = Release|x86
55 | EndGlobalSection
56 | GlobalSection(SolutionProperties) = preSolution
57 | HideSolutionNode = FALSE
58 | EndGlobalSection
59 | GlobalSection(TestCaseManagementSettings) = postSolution
60 | CategoryFile = BukkitGUI.vsmdi
61 | EndGlobalSection
62 | EndGlobal
63 |
--------------------------------------------------------------------------------
/BukkitGUI/MCInterop/base_RemoteServerBase.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 |
16 |
17 | Namespace MCInterop
18 | '
19 | ' Base class for built-in remote server support. Each remote server class should inherit this, and use these
20 | ' properties to allow integration with server.vb
21 | '
22 | '
23 | Public MustInherit Class RemoteServerBase
24 | Private _instream As RemoteServerCache 'input stream for the server
25 | Private _outstream As RemoteServerCache 'output stream for the server
26 | Private _cred As RemoteCredentials
27 |
28 |
29 | '''
30 | ''' Input stream, commands etc. should be written to this stream
31 | '''
32 | '''
33 | '''
34 | '''
35 | Public ReadOnly Property StandardIn As RemoteServerCache
36 | Get
37 | Return _instream
38 | End Get
39 | End Property
40 |
41 |
42 | '''
43 | ''' Output stream, console output should be read from this stream
44 | '''
45 | '''
46 | '''
47 | '''
48 | Public ReadOnly Property StandardOut As RemoteServerCache
49 | Get
50 | Return _outstream
51 | End Get
52 | End Property
53 |
54 | Public Property Credentials As RemoteCredentials
55 | Get
56 | Return _cred
57 | End Get
58 | Set(value As RemoteCredentials)
59 | _cred = value
60 | End Set
61 | End Property
62 |
63 | Public Sub New()
64 | _instream = New RemoteServerCache
65 | _outstream = New RemoteServerCache
66 | End Sub
67 |
68 |
69 | '''
70 | ''' This routine must be overridden with the start routine of the server, and will be called in the server module in
71 | ''' order to start the server.
72 | '''
73 | ''' No variables are passed, everything must be set before launch of this routine
74 | Public Overridable Sub Run()
75 | _instream = New RemoteServerCache
76 | _outstream = New RemoteServerCache
77 | End Sub
78 |
79 | Public Overridable Sub Close()
80 | _instream = Nothing
81 | _outstream = Nothing
82 | StopServer()
83 | End Sub
84 | End Class
85 |
86 | Public Class RemoteCredentials
87 | Public Host As String, port As UInt16, login As String, password As String, salt As String
88 | End Class
89 |
90 | Public Class RemoteServerCache
91 | Public received As New List(Of String)
92 |
93 | Public Sub write(text As String)
94 | received.Add(text)
95 | End Sub
96 |
97 | Public Function read() As String
98 | If received Is Nothing OrElse received.Count = 0 Then Return Nothing : Exit Function
99 | Dim res As String = received(0)
100 | received.RemoveAt(0)
101 | Return res
102 | End Function
103 |
104 | Public Sub discard()
105 | received.Clear()
106 | End Sub
107 |
108 | Public ReadOnly Property EOS As Boolean
109 | Get
110 | Return received.Count = 0
111 | End Get
112 | End Property
113 | End Class
114 | End Namespace
--------------------------------------------------------------------------------
/BukkitGUI/forms/ServerSettingDialog.Designer.vb:
--------------------------------------------------------------------------------
1 | Imports Net.Bertware.BukkitGUI.Core
2 |
3 | _
4 | Partial Class ServerSettingDialog
5 | Inherits System.Windows.Forms.Form
6 |
7 | 'Form overrides dispose to clean up the component list.
8 | _
9 | Protected Overrides Sub Dispose(ByVal disposing As Boolean)
10 | Try
11 | If disposing AndAlso components IsNot Nothing Then
12 | components.Dispose()
13 | End If
14 | Finally
15 | MyBase.Dispose(disposing)
16 | End Try
17 | End Sub
18 |
19 | 'Required by the Windows Form Designer
20 | Private components As System.ComponentModel.IContainer
21 |
22 | 'NOTE: The following procedure is required by the Windows Form Designer
23 | 'It can be modified using the Windows Form Designer.
24 | 'Do not modify it using the code editor.
25 | _
26 | Private Sub InitializeComponent()
27 | Me.Label2 = New System.Windows.Forms.Label()
28 | Me.Label1 = New System.Windows.Forms.Label()
29 | Me.TxtValue = New System.Windows.Forms.TextBox()
30 | Me.TxtSetting = New System.Windows.Forms.TextBox()
31 | Me.BtnOk = New System.Windows.Forms.Button()
32 | Me.SuspendLayout()
33 | '
34 | 'Label2
35 | '
36 | Me.Label2.AutoSize = True
37 | Me.Label2.Location = New System.Drawing.Point(12, 35)
38 | Me.Label2.Name = "Label2"
39 | Me.Label2.Size = New System.Drawing.Size(36, 13)
40 | Me.Label2.TabIndex = 5
41 | Me.Label2.Text = lr("value:")
42 | '
43 | 'Label1
44 | '
45 | Me.Label1.AutoSize = True
46 | Me.Label1.Location = New System.Drawing.Point(12, 9)
47 | Me.Label1.Name = "Label1"
48 | Me.Label1.Size = New System.Drawing.Size(43, 13)
49 | Me.Label1.TabIndex = 3
50 | Me.Label1.Text = lr("Setting:")
51 | '
52 | 'TxtValue
53 | '
54 | Me.TxtValue.Location = New System.Drawing.Point(61, 32)
55 | Me.TxtValue.Name = "TxtValue"
56 | Me.TxtValue.Size = New System.Drawing.Size(211, 20)
57 | Me.TxtValue.TabIndex = 8
58 | '
59 | 'TxtSetting
60 | '
61 | Me.TxtSetting.Location = New System.Drawing.Point(61, 6)
62 | Me.TxtSetting.Name = "TxtSetting"
63 | Me.TxtSetting.ReadOnly = True
64 | Me.TxtSetting.Size = New System.Drawing.Size(211, 20)
65 | Me.TxtSetting.TabIndex = 9
66 | '
67 | 'BtnOk
68 | '
69 | Me.BtnOk.Location = New System.Drawing.Point(197, 58)
70 | Me.BtnOk.Name = "BtnOk"
71 | Me.BtnOk.Size = New System.Drawing.Size(75, 23)
72 | Me.BtnOk.TabIndex = 10
73 | Me.BtnOk.Text = lr("Ok")
74 | Me.BtnOk.UseVisualStyleBackColor = True
75 | '
76 | 'ServerSettingDialog
77 | '
78 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
79 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
80 | Me.ClientSize = New System.Drawing.Size(284, 93)
81 | Me.Controls.Add(Me.BtnOk)
82 | Me.Controls.Add(Me.TxtSetting)
83 | Me.Controls.Add(Me.TxtValue)
84 | Me.Controls.Add(Me.Label2)
85 | Me.Controls.Add(Me.Label1)
86 | Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
87 | Me.MaximizeBox = False
88 | Me.MinimizeBox = False
89 | Me.Name = "ServerSettingDialog"
90 | Me.ShowIcon = False
91 | Me.ShowInTaskbar = False
92 | Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
93 | Me.Text = lr("Server settings...")
94 | Me.ResumeLayout(False)
95 | Me.PerformLayout()
96 |
97 | End Sub
98 | Friend WithEvents Label2 As System.Windows.Forms.Label
99 | Friend WithEvents Label1 As System.Windows.Forms.Label
100 | Friend WithEvents TxtValue As System.Windows.Forms.TextBox
101 | Friend WithEvents TxtSetting As System.Windows.Forms.TextBox
102 | Friend WithEvents BtnOk As System.Windows.Forms.Button
103 | End Class
104 |
105 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/BackupDialog.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 | Imports Net.Bertware.BukkitGUI.Utilities
17 |
18 | Public Class BackupDialog
19 | Dim bs As BackupSetting
20 |
21 | Public ReadOnly Property backup As BackupSetting
22 | Get
23 | Return bs
24 | End Get
25 | End Property
26 |
27 | Public Sub New()
28 | InitializeComponent()
29 | End Sub
30 |
31 | Public Sub New(backup As BackupSetting)
32 | InitializeComponent()
33 | bs = backup
34 | End Sub
35 |
36 | Private Sub BackupDialog_Load(sender As Object, e As EventArgs) Handles MyBase.Load
37 | If bs IsNot Nothing Then
38 | If bs.name IsNot Nothing Then TxtName.Text = bs.name
39 | If bs.folders IsNot Nothing AndAlso bs.folders.Count > 0 Then _
40 | TxtFolders.Text = Serialize(bs.folders, ";")
41 | If bs.destination IsNot Nothing Then TxtDestination.Text = bs.destination
42 | ChkCompression.Checked = bs.compression
43 | End If
44 | End Sub
45 |
46 | Private Sub BtnCancel_Click(sender As Object, e As EventArgs) Handles BtnCancel.Click
47 | Me.DialogResult = DialogResult.Cancel
48 | Me.Close()
49 | End Sub
50 |
51 | Private Sub BtnOk_Click(sender As Object, e As EventArgs) Handles BtnOk.Click
52 | bs = New BackupSetting
53 | bs.name = TxtName.Text
54 | bs.folders = New List(Of String)
55 | For Each Dir As String In TxtFolders.Text.Split(";")
56 | bs.folders.Add(Dir)
57 | Next
58 | bs.destination = TxtDestination.Text
59 | bs.compression = ChkCompression.Checked
60 | Me.DialogResult = DialogResult.OK
61 | Me.Close()
62 | End Sub
63 |
64 | Private Sub BtnBrowseSourceFolders_Click(sender As Object, e As EventArgs) _
65 | Handles BtnBrowseSourceFolders.Click
66 | Dim fb As New FolderBrowserDialog
67 | fb.Description = lr("Select folders to backup")
68 | If fb.ShowDialog() <> DialogResult.OK Then Exit Sub
69 | If TxtFolders.Text = "" Then TxtFolders.Text = fb.SelectedPath Else TxtFolders.Text += ";" & fb.SelectedPath
70 | End Sub
71 |
72 | Private Sub BtnBrowseDestination_Click(sender As Object, e As EventArgs) _
73 | Handles BtnBrowseDestination.Click
74 | Dim fb As New FolderBrowserDialog
75 | fb.Description = lr("Select folder to store backup")
76 | If fb.ShowDialog() <> DialogResult.OK Then Exit Sub
77 | TxtDestination.Text = fb.SelectedPath
78 | End Sub
79 |
80 | Private Sub settings_validate() _
81 | Handles TxtName.LostFocus, TxtDestination.LostFocus, TxtFolders.LostFocus, TxtName.TextChanged,
82 | TxtDestination.TextChanged, TxtFolders.TextChanged
83 | BtnOk.Enabled = False
84 | If TxtName.Text = "" Then ErrProv.SetError(TxtName, lr("The name must be at least 1 character long")) : Exit Sub
85 | For Each character In TxtName.Text.ToCharArray
86 | If Not (Char.IsLetterOrDigit(character) Or character = Char.Parse("_") Or character = Char.Parse("-")) Then _
87 | ErrProv.SetError(TxtName, lr("You can only use the following characters: a-z ; 1-9 ; _ ; -")) : Exit Sub
88 | Next
89 | ErrProv.SetError(TxtName, "")
90 | If TxtFolders.Text = "" Then _
91 | ErrProv.SetError(TxtFolders, lr("You need to specify at least 1 directory")) : Exit Sub Else _
92 | ErrProv.SetError(TxtFolders, "")
93 | If TxtDestination.Text = "" Then _
94 | ErrProv.SetError(TxtDestination, lr("You need to specify the destination directory")) : Exit Sub Else _
95 | ErrProv.SetError(TxtDestination, "")
96 |
97 | BtnOk.Enabled = True
98 | End Sub
99 | End Class
--------------------------------------------------------------------------------
/BukkitGUI/forms/FileDownloader.Designer.vb:
--------------------------------------------------------------------------------
1 | Imports Net.Bertware.BukkitGUI.Core
2 |
3 | _
4 | Partial Class FileDownloader
5 | Inherits System.Windows.Forms.Form
6 |
7 | 'Form overrides dispose to clean up the component list.
8 | _
9 | Protected Overrides Sub Dispose(ByVal disposing As Boolean)
10 | Try
11 | If disposing AndAlso components IsNot Nothing Then
12 | components.Dispose()
13 | End If
14 | Finally
15 | MyBase.Dispose(disposing)
16 | End Try
17 | End Sub
18 |
19 | 'Required by the Windows Form Designer
20 | Private components As System.ComponentModel.IContainer
21 |
22 | 'NOTE: The following procedure is required by the Windows Form Designer
23 | 'It can be modified using the Windows Form Designer.
24 | 'Do not modify it using the code editor.
25 | _
26 | Private Sub InitializeComponent()
27 | Me.LblStatus = New System.Windows.Forms.Label()
28 | Me.VPBProgress = New Net.Bertware.Controls.VistaProgressBar()
29 | Me.LblAction = New System.Windows.Forms.Label()
30 | Me.BtnCancel = New System.Windows.Forms.Button()
31 | Me.SuspendLayout()
32 | '
33 | 'LblStatus
34 | '
35 | Me.LblStatus.AutoSize = True
36 | Me.LblStatus.Location = New System.Drawing.Point(13, 33)
37 | Me.LblStatus.Name = "LblStatus"
38 | Me.LblStatus.Size = New System.Drawing.Size(40, 13)
39 | Me.LblStatus.TabIndex = 0
40 | Me.LblStatus.Text = lr("Status:")
41 | '
42 | 'VPBProgress
43 | '
44 | Me.VPBProgress.BackColor = System.Drawing.Color.Transparent
45 | Me.VPBProgress.DisplayText = ""
46 | Me.VPBProgress.EndColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
47 | Me.VPBProgress.Location = New System.Drawing.Point(16, 49)
48 | Me.VPBProgress.Name = "VPBProgress"
49 | Me.VPBProgress.ShowPercentage = Net.Bertware.Controls.VistaProgressBar.TextShowFormats.None
50 | Me.VPBProgress.Size = New System.Drawing.Size(327, 15)
51 | Me.VPBProgress.StartColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer))
52 | Me.VPBProgress.TabIndex = 1
53 | '
54 | 'LblAction
55 | '
56 | Me.LblAction.AutoSize = True
57 | Me.LblAction.Location = New System.Drawing.Point(12, 9)
58 | Me.LblAction.Name = "LblAction"
59 | Me.LblAction.Size = New System.Drawing.Size(78, 13)
60 | Me.LblAction.TabIndex = 2
61 | Me.LblAction.Text = lr("Downloading...")
62 | '
63 | 'BtnCancel
64 | '
65 | Me.BtnCancel.Location = New System.Drawing.Point(349, 41)
66 | Me.BtnCancel.Name = "BtnCancel"
67 | Me.BtnCancel.Size = New System.Drawing.Size(75, 23)
68 | Me.BtnCancel.TabIndex = 3
69 | Me.BtnCancel.Text = lr("Cancel")
70 | Me.BtnCancel.UseVisualStyleBackColor = True
71 | '
72 | 'FileDownloader
73 | '
74 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
75 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
76 | Me.ClientSize = New System.Drawing.Size(436, 77)
77 | Me.ControlBox = False
78 | Me.Controls.Add(Me.BtnCancel)
79 | Me.Controls.Add(Me.LblAction)
80 | Me.Controls.Add(Me.VPBProgress)
81 | Me.Controls.Add(Me.LblStatus)
82 | Me.Cursor = System.Windows.Forms.Cursors.AppStarting
83 | Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
84 | Me.MaximizeBox = False
85 | Me.MinimizeBox = False
86 | Me.Name = "FileDownloader"
87 | Me.ShowIcon = False
88 | Me.ShowInTaskbar = False
89 | Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
90 | Me.Text = lr("File Download")
91 | Me.ResumeLayout(False)
92 | Me.PerformLayout()
93 |
94 | End Sub
95 | Friend WithEvents LblStatus As System.Windows.Forms.Label
96 | Friend WithEvents VPBProgress As Net.Bertware.Controls.VistaProgressBar
97 | Friend WithEvents LblAction As System.Windows.Forms.Label
98 | Friend WithEvents BtnCancel As System.Windows.Forms.Button
99 | End Class
100 |
--------------------------------------------------------------------------------
/BukkitGUI/MCInterop/base_StartArgs.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 | Imports Net.Bertware.BukkitGUI.Utilities
17 |
18 | Namespace MCInterop
19 | Public Class execStartArgs
20 | Public executable As String
21 | Public arguments As String
22 |
23 | Public Sub New(executable As String, arguments As String)
24 | Me.executable = executable
25 | Me.arguments = arguments
26 | End Sub
27 | End Class
28 |
29 | Public Class javaStartArgs
30 | Public executable As String = ""
31 | Public jar As String = ""
32 | Public switches As String = ""
33 | Public args As String = ""
34 | Public custom_arg As String = ""
35 | Public custom_switch As String = ""
36 |
37 | Public Sub New()
38 | Me.executable = ""
39 | Me.args = ""
40 | Me.jar = ""
41 | Me.switches = ""
42 | Me.custom_arg = ""
43 | Me.custom_switch = ""
44 | End Sub
45 |
46 | Public Sub New(executable As String, flags As String, jar As String, switches As String)
47 | Me.executable = executable
48 | Me.args = flags
49 | Me.jar = jar
50 | Me.switches = switches
51 | Me.custom_arg = ""
52 | Me.custom_switch = ""
53 | End Sub
54 |
55 |
56 | '''
57 | ''' Creates a new JavaStartArgs instance
58 | '''
59 | ''' the java version to use, as javaAPI.Javaversion
60 | ''' the minimum amount of RAM for the VM (-xms)
61 | ''' the maximum amount of RAM for the VM (-xmx)
62 | ''' the location of the jar file to be ran
63 | ''' Custom arguments that should be added (optional)
64 | ''' The server type. Baded upon this type required switches will be added. (Optional)
65 | '''
66 | Public Sub New(jre As javaAPI.javaVersion, minram As UInt32, maxram As UInt32, jar As String,
67 | Optional ByVal CustomArgs As String = "", Optional ByVal CustomSwitches As String = "",
68 | Optional ByVal server As McInteropType = McInteropType.bukkit)
69 | If minram < 16 Then minram = 16
70 | If maxram < 16 Then maxram = 16
71 |
72 | Me.executable = GetExec(jre)
73 | Me.args = "-Xms" & minram & "M -Xmx" & maxram & "M "
74 | Me.jar = jar
75 | Me.custom_arg = CustomArgs
76 | Me.custom_switch = CustomSwitches
77 |
78 | Select Case server
79 | Case McInteropType.bukkit
80 | Me.switches = "-nojline"
81 | Me.args += " -Duser.language=en "
82 | If readAsBool("utf_8_compatibility", False, "output") Then _
83 | Me.args += " -Dfile.encoding=utf-8 "
84 |
85 | Case McInteropType.vanilla
86 | Me.switches = "nogui"
87 | Case McInteropType.spigot
88 | Me.switches = "-nojline"
89 | Me.args += " -Duser.language=en -XX:MaxPermSize=128M"
90 | If readAsBool("utf_8_compatibility", False, "output") Then _
91 | Me.args += " -Dfile.encoding=utf-8 "
92 |
93 |
94 | End Select
95 | End Sub
96 |
97 |
98 | '''
99 | ''' Compile all the variables into one argument, needed to start the process
100 | '''
101 | ''' The argument needed to start the process, as string
102 | ''' The argument needed to start the process, as string
103 | '''
104 | Public ReadOnly Property buildArgs() As String
105 | Get
106 | Return _
107 | (args & " " & custom_arg & " " & "-jar """ & jar & """ " & Me.switches & " " & custom_switch).
108 | Replace(" ", " ").Replace(" ", " ").Trim
109 | End Get
110 | End Property
111 | End Class
112 | End Namespace
--------------------------------------------------------------------------------
/BukkitGUI/forms/LicenseAcceptDialog.Designer.vb:
--------------------------------------------------------------------------------
1 | Imports Net.Bertware.BukkitGUI.Core
2 |
3 | _
4 | Partial Class LicenseAcceptDialog
5 | Inherits System.Windows.Forms.Form
6 |
7 | 'Form overrides dispose to clean up the component list.
8 | _
9 | Protected Overrides Sub Dispose(ByVal disposing As Boolean)
10 | Try
11 | If disposing AndAlso components IsNot Nothing Then
12 | components.Dispose()
13 | End If
14 | Finally
15 | MyBase.Dispose(disposing)
16 | End Try
17 | End Sub
18 |
19 | 'Required by the Windows Form Designer
20 | Private components As System.ComponentModel.IContainer
21 |
22 | 'NOTE: The following procedure is required by the Windows Form Designer
23 | 'It can be modified using the Windows Form Designer.
24 | 'Do not modify it using the code editor.
25 | _
26 | Private Sub InitializeComponent()
27 | Me.ChkAccept = New System.Windows.Forms.CheckBox()
28 | Me.btnOk = New System.Windows.Forms.Button()
29 | Me.WebLicense = New System.Windows.Forms.WebBrowser()
30 | Me.BtnCancel = New System.Windows.Forms.Button()
31 | Me.SuspendLayout()
32 | '
33 | 'ChkAccept
34 | '
35 | Me.ChkAccept.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
36 | Me.ChkAccept.AutoSize = True
37 | Me.ChkAccept.Location = New System.Drawing.Point(13, 533)
38 | Me.ChkAccept.Name = "ChkAccept"
39 | Me.ChkAccept.Size = New System.Drawing.Size(155, 17)
40 | Me.ChkAccept.TabIndex = 1
41 | Me.ChkAccept.Text = lr("I have read and accept the")
42 | Me.ChkAccept.UseVisualStyleBackColor = True
43 | '
44 | 'btnOk
45 | '
46 | Me.btnOk.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
47 | Me.btnOk.Enabled = False
48 | Me.btnOk.Location = New System.Drawing.Point(416, 533)
49 | Me.btnOk.Name = "btnOk"
50 | Me.btnOk.Size = New System.Drawing.Size(75, 23)
51 | Me.btnOk.TabIndex = 2
52 | Me.btnOk.Text = lr("OK")
53 | Me.btnOk.UseVisualStyleBackColor = True
54 | '
55 | 'WebLicense
56 | '
57 | Me.WebLicense.AllowNavigation = False
58 | Me.WebLicense.AllowWebBrowserDrop = False
59 | Me.WebLicense.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
60 | Or System.Windows.Forms.AnchorStyles.Left) _
61 | Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
62 | Me.WebLicense.IsWebBrowserContextMenuEnabled = False
63 | Me.WebLicense.Location = New System.Drawing.Point(12, 12)
64 | Me.WebLicense.MinimumSize = New System.Drawing.Size(20, 20)
65 | Me.WebLicense.Name = "WebLicense"
66 | Me.WebLicense.Size = New System.Drawing.Size(560, 515)
67 | Me.WebLicense.TabIndex = 3
68 | Me.WebLicense.WebBrowserShortcutsEnabled = False
69 | '
70 | 'BtnCancel
71 | '
72 | Me.BtnCancel.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
73 | Me.BtnCancel.Enabled = False
74 | Me.BtnCancel.Location = New System.Drawing.Point(497, 533)
75 | Me.BtnCancel.Name = "BtnCancel"
76 | Me.BtnCancel.Size = New System.Drawing.Size(75, 23)
77 | Me.BtnCancel.TabIndex = 4
78 | Me.BtnCancel.Text = lr("Cancel")
79 | Me.BtnCancel.UseVisualStyleBackColor = True
80 | '
81 | 'LicenseAcceptDialog
82 | '
83 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
84 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
85 | Me.ClientSize = New System.Drawing.Size(584, 562)
86 | Me.ControlBox = False
87 | Me.Controls.Add(Me.BtnCancel)
88 | Me.Controls.Add(Me.WebLicense)
89 | Me.Controls.Add(Me.btnOk)
90 | Me.Controls.Add(Me.ChkAccept)
91 | Me.Name = "LicenseAcceptDialog"
92 | Me.ShowIcon = False
93 | Me.ShowInTaskbar = False
94 | Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
95 | Me.Text = lr("Accept license...")
96 | Me.ResumeLayout(False)
97 | Me.PerformLayout()
98 |
99 | End Sub
100 | Friend WithEvents ChkAccept As System.Windows.Forms.CheckBox
101 | Friend WithEvents btnOk As System.Windows.Forms.Button
102 | Friend WithEvents WebLicense As System.Windows.Forms.WebBrowser
103 | Friend WithEvents BtnCancel As System.Windows.Forms.Button
104 | End Class
105 |
--------------------------------------------------------------------------------
/BukkitGUI/Core/config.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | 'The config for the GUI
16 | 'Most functions are already provided by fxml
17 | 'Used to read/write to config
18 | Imports System.Xml
19 | Imports Microsoft.VisualBasic.FileIO
20 |
21 | Namespace Core
22 | '
23 | ' Read/Write settings to config.xml
24 | '
25 | '
26 | Module config
27 | Dim cfile As fxml
28 |
29 | Const CURR_VER As String = "1.2" 'Minimal version for the config xml file
30 | Private config_XML As String = ConfigPath & "/config.xml"
31 |
32 | Public ReadOnly Property FxmlHandle As fxml
33 | Get
34 | Return cfile
35 | End Get
36 | End Property
37 |
38 |
39 | '''
40 | ''' Initialize the config file
41 | '''
42 | ''' True on success
43 | ''' Must be done before anything else
44 | Public Function init() As Boolean
45 | config_XML = ConfigPath & "/config.xml"
46 |
47 | If Not FileSystem.FileExists(config_XML) Then _
48 | Create_file(config_XML, "")
49 | If File_Empty(config_XML) Then _
50 | Create_file(config_XML, "")
51 |
52 | cfile = New fxml(config_XML, "config") 'initialize file
53 |
54 | Select Case cfile.Verify_version("config", CURR_VER) 'check version
55 | Case False
56 | Create_file(config_XML, "") _
57 | 'config content will be added automaticly during use.
58 | End Select
59 | Log(loggingLevel.Fine, "Config", "Config initialized")
60 |
61 | Return True
62 | End Function
63 |
64 |
65 | '''
66 | ''' Read a string from the config.
67 | '''
68 | ''' The element to read from
69 | ''' The value that will be written and returned if the element doesn't exist
70 | ''' The parent node for the setting
71 | ''' The value as string
72 | '''
73 | Public Function read(element As String, Optional ByVal defaultvalue As String = "",
74 | Optional ByVal parent As String = "") As String
75 | Return cfile.read(element, defaultvalue, parent)
76 | End Function
77 |
78 | Public Function readAsBool(element As String, Optional ByVal defaultvalue As Boolean = False,
79 | Optional ByVal parent As String = "") As Boolean
80 | If read(element, defaultvalue.ToString.ToLower, parent).ToLower = "true" Then Return True Else _
81 | Return False
82 | End Function
83 |
84 | Public Function readAttribute(element As String, attribute As String,
85 | Optional ByVal defaultvalue As String = "",
86 | Optional ByVal parent As String = "") As String
87 | Return cfile.readAttribute(element, attribute, defaultvalue, parent)
88 | End Function
89 |
90 |
91 | '''
92 | ''' Write a string to the config.
93 | '''
94 | ''' The element to write to
95 | ''' The value that will be written
96 | ''' The parent node for the setting
97 | ''' The written XML element
98 | '''
99 | Public Function write(element As String, value As String, Optional ByVal parent As String = "",
100 | Optional ByVal attributes As List(Of CXMLAttribute) = Nothing) As XmlElement
101 | Return cfile.write(element, value, parent, attributes)
102 | End Function
103 |
104 | Public Function writeAsBool(element As String, value As Boolean, Optional parent As String = "") _
105 | As XmlElement
106 | Return write(element, value.ToString.ToLower, parent)
107 | End Function
108 |
109 | Public Function writeAttribute(element As String, attribute As String, value As String,
110 | Optional ByVal parent As String = "") As Boolean
111 | Return cfile.writeAttribute(element, attribute, value, parent)
112 | End Function
113 | End Module
114 | End Namespace
--------------------------------------------------------------------------------
/BukkitGUI/Utilities/EventArgs.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.MCInterop
16 |
17 | Namespace Utilities
18 | Public Class PlayerJoinEventArgs
19 | Public Enum playerjoinreason
20 | listupdate
21 | join
22 | End Enum
23 |
24 | Public Sub New(reason As playerjoinreason, message As String, Optional ByVal PlayerJoin As PlayerJoin = Nothing)
25 | Me.reason = reason
26 | Me.message = message
27 | Me.PlayerJoin = PlayerJoin
28 | End Sub
29 |
30 |
31 | '''
32 | ''' The reason for this join event
33 | '''
34 | '''
35 | Public reason As playerjoinreason
36 |
37 |
38 | '''
39 | ''' The message that triggered this event
40 | '''
41 | '''
42 | Public message As String
43 |
44 |
45 | '''
46 | ''' The PlayerJoin object about this join
47 | '''
48 | '''
49 | Public PlayerJoin As PlayerJoin
50 | End Class
51 |
52 | Public Class PlayerDisconnectEventArgs
53 | Public Enum playerleavereason
54 | listupdate
55 | leave
56 | kick
57 | ban
58 | End Enum
59 |
60 | Public Sub New(player As SimplePlayer, reason As playerleavereason, message As String,
61 | Optional ByVal details As Object = Nothing)
62 | Me.player = player
63 | Me.reason = reason
64 | Me.message = message
65 | Me.details = details
66 | End Sub
67 |
68 |
69 | '''
70 | ''' The simpleplayer object about the disconnected player
71 | '''
72 | '''
73 | Public player As SimplePlayer
74 |
75 |
76 | '''
77 | ''' The disconnect reason, leave, kick, ban, or list update
78 | '''
79 | '''
80 | Public reason As playerleavereason
81 |
82 |
83 | '''
84 | ''' The message that raised this event
85 | '''
86 | '''
87 | Public message As String
88 |
89 |
90 | '''
91 | ''' More details, can be playerleave, playerban, playerkick
92 | '''
93 | '''
94 | Public details As Object
95 | End Class
96 |
97 | Public Class ListUpdateEventArgs
98 | '''
99 | ''' List with added players
100 | '''
101 | '''
102 | Public Added_players As List(Of String)
103 |
104 |
105 | '''
106 | ''' List with removed players
107 | '''
108 | '''
109 | Public Removed_players As List(Of String)
110 |
111 | Public Sub New()
112 | Added_players = New List(Of String)
113 | Removed_players = New List(Of String)
114 | End Sub
115 |
116 | Public Sub New(added_players As List(Of String), removed_players As List(Of String))
117 | Me.Added_players = added_players
118 | Me.Removed_players = removed_players
119 | End Sub
120 | End Class
121 |
122 | Public Class ErrorReceivedEventArgs 'for both severe and warning
123 |
124 | '''
125 | ''' The message that raised this event
126 | '''
127 | '''
128 | Public message As String
129 |
130 |
131 | '''
132 | ''' the output type, warning or severe
133 | '''
134 | '''
135 | Public type As MessageType
136 |
137 | Public Sub New(message As String, type As MessageType)
138 | Me.message = message
139 | Me.type = type
140 | End Sub
141 | End Class
142 |
143 | Public Class StackTraceReceivedEventArgs
144 | '''
145 | ''' The message that raised this event
146 | '''
147 | '''
148 | Public message As String
149 |
150 | Public Sub New(message As String)
151 | Me.message = message
152 | End Sub
153 | End Class
154 | End Namespace
--------------------------------------------------------------------------------
/BukkitGUI/forms/FeedBackDialog.Designer.vb:
--------------------------------------------------------------------------------
1 | Imports Net.Bertware.BukkitGUI.Core
2 | _
3 | Partial Class FeedBackDialog
4 | Inherits System.Windows.Forms.Form
5 |
6 | 'Form overrides dispose to clean up the component list.
7 | _
8 | Protected Overrides Sub Dispose(ByVal disposing As Boolean)
9 | Try
10 | If disposing AndAlso components IsNot Nothing Then
11 | components.Dispose()
12 | End If
13 | Finally
14 | MyBase.Dispose(disposing)
15 | End Try
16 | End Sub
17 |
18 | 'Required by the Windows Form Designer
19 | Private components As System.ComponentModel.IContainer
20 |
21 | 'NOTE: The following procedure is required by the Windows Form Designer
22 | 'It can be modified using the Windows Form Designer.
23 | 'Do not modify it using the code editor.
24 | _
25 | Private Sub InitializeComponent()
26 | Me.TxtMail = New System.Windows.Forms.TextBox()
27 | Me.TxtMessage = New System.Windows.Forms.TextBox()
28 | Me.Label1 = New System.Windows.Forms.Label()
29 | Me.Label2 = New System.Windows.Forms.Label()
30 | Me.BtnSend = New System.Windows.Forms.Button()
31 | Me.Label3 = New System.Windows.Forms.Label()
32 | Me.SuspendLayout()
33 | '
34 | 'TxtMail
35 | '
36 | Me.TxtMail.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
37 | Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
38 | Me.TxtMail.Location = New System.Drawing.Point(102, 6)
39 | Me.TxtMail.Name = "TxtMail"
40 | Me.TxtMail.Size = New System.Drawing.Size(340, 20)
41 | Me.TxtMail.TabIndex = 0
42 | '
43 | 'TxtMessage
44 | '
45 | Me.TxtMessage.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
46 | Or System.Windows.Forms.AnchorStyles.Left) _
47 | Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
48 | Me.TxtMessage.Location = New System.Drawing.Point(12, 46)
49 | Me.TxtMessage.Multiline = True
50 | Me.TxtMessage.Name = "TxtMessage"
51 | Me.TxtMessage.Size = New System.Drawing.Size(430, 251)
52 | Me.TxtMessage.TabIndex = 1
53 | '
54 | 'Label1
55 | '
56 | Me.Label1.AutoSize = True
57 | Me.Label1.Location = New System.Drawing.Point(12, 9)
58 | Me.Label1.Name = "Label1"
59 | Me.Label1.Size = New System.Drawing.Size(84, 13)
60 | Me.Label1.TabIndex = 2
61 | Me.Label1.Text = lr("E-mail (optional):")
62 | '
63 | 'Label2
64 | '
65 | Me.Label2.AutoSize = True
66 | Me.Label2.Location = New System.Drawing.Point(12, 30)
67 | Me.Label2.Name = "Label2"
68 | Me.Label2.Size = New System.Drawing.Size(53, 13)
69 | Me.Label2.TabIndex = 3
70 | Me.Label2.Text = lr("Message:")
71 | '
72 | 'BtnSend
73 | '
74 | Me.BtnSend.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
75 | Me.BtnSend.Location = New System.Drawing.Point(367, 303)
76 | Me.BtnSend.Name = "BtnSend"
77 | Me.BtnSend.Size = New System.Drawing.Size(75, 23)
78 | Me.BtnSend.TabIndex = 4
79 | Me.BtnSend.Text = lr("Send!")
80 | Me.BtnSend.UseVisualStyleBackColor = True
81 | '
82 | 'Label3
83 | '
84 | Me.Label3.AutoSize = True
85 | Me.Label3.Location = New System.Drawing.Point(15, 312)
86 | Me.Label3.Name = "Label3"
87 | Me.Label3.Size = New System.Drawing.Size(186, 13)
88 | Me.Label3.TabIndex = 5
89 | Me.Label3.Text = lr("Please write your feedback in English.")
90 | '
91 | 'FeedBackDialog
92 | '
93 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
94 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
95 | Me.ClientSize = New System.Drawing.Size(454, 336)
96 | Me.Controls.Add(Me.Label3)
97 | Me.Controls.Add(Me.BtnSend)
98 | Me.Controls.Add(Me.Label2)
99 | Me.Controls.Add(Me.Label1)
100 | Me.Controls.Add(Me.TxtMessage)
101 | Me.Controls.Add(Me.TxtMail)
102 | Me.MaximizeBox = False
103 | Me.MinimizeBox = False
104 | Me.Name = "FeedBackDialog"
105 | Me.ShowIcon = False
106 | Me.ShowInTaskbar = False
107 | Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
108 | Me.Text = lr("Send Feedback")
109 | Me.ResumeLayout(False)
110 | Me.PerformLayout()
111 |
112 | End Sub
113 | Friend WithEvents TxtMail As System.Windows.Forms.TextBox
114 | Friend WithEvents TxtMessage As System.Windows.Forms.TextBox
115 | Friend WithEvents Label1 As System.Windows.Forms.Label
116 | Friend WithEvents Label2 As System.Windows.Forms.Label
117 | Friend WithEvents BtnSend As System.Windows.Forms.Button
118 | Friend WithEvents Label3 As System.Windows.Forms.Label
119 | End Class
120 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/LanguageInstaller.Designer.vb:
--------------------------------------------------------------------------------
1 | Imports Net.Bertware.BukkitGUI.Core
2 |
3 | Namespace forms
4 |
5 | _
6 | Partial Class LanguageInstaller
7 | Inherits System.Windows.Forms.Form
8 |
9 | 'Form overrides dispose to clean up the component list.
10 | _
11 | Protected Overrides Sub Dispose(ByVal disposing As Boolean)
12 | Try
13 | If disposing AndAlso components IsNot Nothing Then
14 | components.Dispose()
15 | End If
16 | Finally
17 | MyBase.Dispose(disposing)
18 | End Try
19 | End Sub
20 |
21 | 'Required by the Windows Form Designer
22 | Private components As System.ComponentModel.IContainer
23 |
24 | 'NOTE: The following procedure is required by the Windows Form Designer
25 | 'It can be modified using the Windows Form Designer.
26 | 'Do not modify it using the code editor.
27 | _
28 | Private Sub InitializeComponent()
29 | Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(LanguageInstaller))
30 | Me.BtnInstall = New System.Windows.Forms.Button()
31 | Me.BtnCancel = New System.Windows.Forms.Button()
32 | Me.ALVLanguages = New Net.Bertware.Controls.AdvancedListView()
33 | Me.ColLanguage = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
34 | Me.ColVersion = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
35 | Me.ColTranslator = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
36 | Me.ColComment = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
37 | Me.SuspendLayout()
38 | '
39 | 'BtnInstall
40 | '
41 | Me.BtnInstall.Location = New System.Drawing.Point(536, 346)
42 | Me.BtnInstall.Name = "BtnInstall"
43 | Me.BtnInstall.Size = New System.Drawing.Size(75, 23)
44 | Me.BtnInstall.TabIndex = 1
45 | Me.BtnInstall.Text = lr("Install")
46 | Me.BtnInstall.UseVisualStyleBackColor = True
47 | '
48 | 'BtnCancel
49 | '
50 | Me.BtnCancel.Location = New System.Drawing.Point(455, 346)
51 | Me.BtnCancel.Name = "BtnCancel"
52 | Me.BtnCancel.Size = New System.Drawing.Size(75, 23)
53 | Me.BtnCancel.TabIndex = 2
54 | Me.BtnCancel.Text = lr("Cancel")
55 | Me.BtnCancel.UseVisualStyleBackColor = True
56 | '
57 | 'ALVLanguages
58 | '
59 | Me.ALVLanguages.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColLanguage, Me.ColVersion, Me.ColTranslator, Me.ColComment})
60 | Me.ALVLanguages.FullRowSelect = True
61 | Me.ALVLanguages.Location = New System.Drawing.Point(12, 12)
62 | Me.ALVLanguages.Name = "ALVLanguages"
63 | Me.ALVLanguages.Size = New System.Drawing.Size(599, 328)
64 | Me.ALVLanguages.TabIndex = 3
65 | Me.ALVLanguages.UseCompatibleStateImageBehavior = False
66 | Me.ALVLanguages.View = System.Windows.Forms.View.Details
67 | '
68 | 'ColLanguage
69 | '
70 | Me.ColLanguage.Text = lr("Language")
71 | Me.ColLanguage.Width = 134
72 | '
73 | 'ColVersion
74 | '
75 | Me.ColVersion.Text = lr("GUI Version")
76 | Me.ColVersion.Width = 108
77 | '
78 | 'ColTranslator
79 | '
80 | Me.ColTranslator.Text = lr("Translator")
81 | Me.ColTranslator.Width = 123
82 | '
83 | 'ColComment
84 | '
85 | Me.ColComment.Text = lr("Comment")
86 | Me.ColComment.Width = 140
87 | '
88 | 'LanguageInstaller
89 | '
90 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
91 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
92 | Me.ClientSize = New System.Drawing.Size(623, 381)
93 | Me.Controls.Add(Me.ALVLanguages)
94 | Me.Controls.Add(Me.BtnCancel)
95 | Me.Controls.Add(Me.BtnInstall)
96 | Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
97 | Me.Name = "LanguageInstaller"
98 | Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
99 | Me.Text = lr("Install languages....")
100 | Me.ResumeLayout(False)
101 |
102 | End Sub
103 | Friend WithEvents BtnInstall As System.Windows.Forms.Button
104 | Friend WithEvents BtnCancel As System.Windows.Forms.Button
105 | Friend WithEvents ALVLanguages As Net.Bertware.Controls.AdvancedListView
106 | Friend WithEvents ColLanguage As System.Windows.Forms.ColumnHeader
107 | Friend WithEvents ColVersion As System.Windows.Forms.ColumnHeader
108 | Friend WithEvents ColTranslator As System.Windows.Forms.ColumnHeader
109 | Friend WithEvents ColComment As System.Windows.Forms.ColumnHeader
110 | End Class
111 | End Namespace
--------------------------------------------------------------------------------
/BukkitGUI/forms/ErrorDiagnose.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 | Imports Net.Bertware.BukkitGUI.MCInterop
17 | Imports Net.Bertware.BukkitGUI.Utilities
18 |
19 | Public Class ErrorDiagnose
20 | Private type As serverOutputHandler.MessageType, time As String, cause As ErrorCause
21 |
22 | Public Sub New(type As MessageType, time As String, cause As ErrorCause)
23 | Me.type = type
24 | Me.time = time
25 | Me.cause = cause
26 | InitializeComponent()
27 | End Sub
28 |
29 | Private Sub ErrorDiagnose_Load(sender As Object, e As EventArgs) Handles MyBase.Load
30 | Try
31 | If cause IsNot Nothing AndAlso cause.description IsNot Nothing Then LblCause.Text += " " & cause.description
32 | If cause IsNot Nothing AndAlso cause.text IsNot Nothing Then lblText.Text += " " & cause.text
33 | If time IsNot Nothing Then lblTime.Text += " " & time
34 | lblWarningType.Text += " " & type.ToString
35 |
36 | Select Case cause.type
37 | Case ErrorCause.ErrorCauseType.plugin
38 | If CType(cause, ErrorCause_Plugin).plugin Is Nothing Then Exit Sub
39 | Dim lvi As New ListViewItem({"Update plugin:" & CType(cause, ErrorCause_Plugin).plugin.name})
40 | lvi.Tag = "plugin:update:" & CType(cause, ErrorCause_Plugin).plugin.name
41 | LVsolutions.Items.Add(lvi)
42 | lvi = New ListViewItem({"Remove plugin:" & CType(cause, ErrorCause_Plugin).plugin.name})
43 | lvi.Tag = "plugin:remove:" & CType(cause, ErrorCause_Plugin).plugin.name
44 | LVsolutions.Items.Add(lvi)
45 | Case ErrorCause.ErrorCauseType.setting
46 | Dim _
47 | lvi As _
48 | New ListViewItem(
49 | {"Change value for setting " & CType(cause, ErrorCause_setting).setting & " to " &
50 | CType(cause, ErrorCause_setting).Fixvalue})
51 | lvi.Tag = "setting:set:" & CType(cause, ErrorCause_setting).setting & ":" &
52 | CType(cause, ErrorCause_setting).Fixvalue
53 | LVsolutions.Items.Add(lvi)
54 | Case ErrorCause.ErrorCauseType.other
55 | Dim lvi As New ListViewItem({"This problem can't be solved by the error solver."})
56 | lvi.Tag = "unknown:unknown"
57 | LVsolutions.Items.Add(lvi)
58 | End Select
59 |
60 | Catch ex As Exception
61 | Log(livebug.loggingLevel.Severe, "ErrorDiagnose",
62 | "Severe Exception while loading error analyzer dialog", ex.Message)
63 | End Try
64 | End Sub
65 |
66 | Private Sub BtnApply_Click(sender As Object, e As EventArgs) Handles BtnApply.Click
67 | Try
68 | If LVsolutions.SelectedItems Is Nothing OrElse LVsolutions.SelectedItems.Count < 1 Then Exit Sub
69 | Dim solution As String = LVsolutions.SelectedItems(0).Tag
70 | If solution.StartsWith("plugin:update") Then
71 | Dim pld As plugindescriptor = GetInstalledPluginByName(solution.Split(":")(2).Trim(":"))
72 | If pld IsNot Nothing Then
73 | Dim d As New PluginUpdater(pld)
74 | d.UpdateOnLoad = True
75 | d.ShowDialog()
76 | Else
77 | MessageBox.Show(lr("Couldn't find plugin!"), lr("Failed"), MessageBoxButtons.OK,
78 | MessageBoxIcon.Error)
79 | End If
80 |
81 | ElseIf solution.StartsWith("plugin:remove") Then
82 | Dim pld As plugindescriptor = GetInstalledPluginByName(solution.Split(":")(2).Trim(":"))
83 | If pld IsNot Nothing Then RemoveInstalledplugin(pld) Else _
84 | MessageBox.Show(lr("Couldn't find plugin!"), lr("Failed"), MessageBoxButtons.OK,
85 | MessageBoxIcon.Error)
86 | ElseIf solution.StartsWith("setting:set") Then
87 | SetSetting(solution.Split(":")(2).Trim(":"), solution.Split(":")(3).Trim(":"))
88 | Else
89 | MessageBox.Show(lr("This isn't a valid solution."), lr("Invalid solution"), MessageBoxButtons.OK,
90 | MessageBoxIcon.Error)
91 | End If
92 | Me.DialogResult = DialogResult.OK
93 | Me.Close()
94 | Catch ex As Exception
95 | Log(loggingLevel.Severe, "ErrorDiagnose", "Severe Exception while aplying fix for error(s)",
96 | ex.Message)
97 | End Try
98 | End Sub
99 |
100 | Private Sub BtnCancel_Click(sender As Object, e As EventArgs) Handles BtnCancel.Click
101 | Me.DialogResult = DialogResult.Cancel
102 | Me.Close()
103 | End Sub
104 | End Class
--------------------------------------------------------------------------------
/BukkitGUI/forms/BukgetPluginDialog.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports Net.Bertware.BukkitGUI.Core
16 | Imports Net.Bertware.BukkitGUI.MCInterop
17 |
18 | Public Class BukgetPluginDialog
19 | Public Plugin As BukgetPlugin
20 | Public file As String = ""
21 |
22 | Public Sub New()
23 |
24 | ' This call is required by the designer.
25 | InitializeComponent()
26 |
27 | ' Add any initialization after the InitializeComponent() call.
28 | End Sub
29 |
30 | Public Sub New(plugin As BukgetPlugin)
31 |
32 | ' This call is required by the designer.
33 | InitializeComponent()
34 |
35 | ' Add any initialization after the InitializeComponent() call.
36 | Me.Plugin = plugin
37 | End Sub
38 |
39 | Public Sub New(plugin As SimpleBukgetPlugin)
40 |
41 | ' This call is required by the designer.
42 | InitializeComponent()
43 |
44 | ' Add any initialization after the InitializeComponent() call.
45 | Me.Plugin = GetPluginInfoByNamespace(plugin.main)
46 | End Sub
47 |
48 | Public Sub New(main As String)
49 |
50 | ' This call is required by the designer.
51 | InitializeComponent()
52 |
53 | ' Add any initialization after the InitializeComponent() call.
54 | Me.Plugin = GetPluginInfoByNamespace(main)
55 | End Sub
56 |
57 | Private Sub PluginDialog_Load(sender As Object, e As EventArgs) Handles MyBase.Load
58 | If Plugin Is Nothing Then
59 | Log(livebug.loggingLevel.Warning, "BukGetPluginDialog",
60 | "Load of plugin data failed! No plugin defined.")
61 | MessageBox.Show(lr("No data for this plugin available"), lr("no data available"), MessageBoxButtons.OK,
62 | MessageBoxIcon.Error)
63 | Me.Close()
64 | Else
65 | Try
66 | loadplugin()
67 | Catch ex As Exception
68 | Log(loggingLevel.Warning, "BukGetPluginDialog", "Visualisation of plugin data failed!",
69 | ex.Message)
70 | MessageBox.Show(lr("Could not load plugin data for this plugin"), lr("Could not load plugin"),
71 | MessageBoxButtons.OK, MessageBoxIcon.Error)
72 | Me.Close()
73 | End Try
74 | End If
75 | End Sub
76 |
77 | Private Sub loadplugin()
78 | If Plugin Is Nothing Then Exit Sub
79 |
80 | If Plugin.name IsNot Nothing AndAlso Plugin.name <> "" Then
81 | lblName.Text = lr("Name:") & " " & Plugin.name
82 | Else
83 | If Plugin.slug IsNot Nothing AndAlso Plugin.slug <> "" Then lblName.Text = lr("Name:") & " " & Plugin.slug
84 | End If
85 |
86 | If Plugin.Description IsNot Nothing AndAlso Plugin.name <> "" Then _
87 | lblDescription.Text = lr("Description:") & " " & Plugin.Description
88 | lblStatus.Text = lr("Status:") & " " & Plugin.status.ToString
89 | If Plugin.BukkitDevLink IsNot Nothing Then ALlblWebsite.Text = lr("Website:") & " " & Plugin.BukkitDevLink
90 |
91 | If Plugin.Author IsNot Nothing Then lblAuthors.Text = lr("Authors:") & " " & Serialize(Plugin.Author)
92 |
93 | If Plugin.Category IsNot Nothing Then _
94 | lblcategories.Text = lr("Categories:") & " " & Serialize(Plugin.Category).ToString.Replace("_", " ")
95 |
96 | For Each Version As PluginVersion In Plugin.versions
97 | Dim str(5) As String
98 | str(0) = Version.ReleaseDate.Year.ToString & "/" & Version.ReleaseDate.Month.ToString.PadLeft(2, "0") & "/" &
99 | Version.ReleaseDate.Day.ToString.PadLeft(2, "0") & " - " &
100 | Version.ReleaseDate.Hour.ToString.PadLeft(2, "0") & ":" &
101 | Version.ReleaseDate.Minute.ToString.PadLeft(2, "0")
102 | str(1) = Version.version.ToString
103 | str(2) = Version.filename
104 | str(3) = ""
105 | For Each build As String In Version.builds
106 | str(3) = build & ","
107 | Next
108 | str(3) = str(3).Trim(",")
109 | str(4) = Version.type.ToString
110 | Dim lvi As New ListViewItem(str)
111 | LVVersions.Items.Add(lvi)
112 | Next
113 | End Sub
114 |
115 | Private Sub BtnClose_Click(sender As Object, e As EventArgs) Handles BtnClose.Click
116 | Me.Close()
117 | End Sub
118 |
119 | Private Sub BtnInstall_Click() Handles BtnInstall.Click, LVVersions.DoubleClick
120 | If LVVersions.SelectedItems.Count > 0 Then
121 | If file = "" Then Install(Plugin.versions(LVVersions.SelectedIndices(0)))
122 | If file <> "" Then Install(Plugin.versions(LVVersions.SelectedIndices(0)), file)
123 | Else
124 | If file = "" Then Install(Plugin.versions(0))
125 | If file <> "" Then Install(Plugin.versions(0), file)
126 | End If
127 | Me.Close()
128 | End Sub
129 | End Class
--------------------------------------------------------------------------------
/BukkitGUI/forms/OutputBrowser.Designer.vb:
--------------------------------------------------------------------------------
1 | Imports Net.Bertware.BukkitGUI.Core.language
2 |
3 | _
4 | Partial Class OutputBrowser
5 | Inherits System.Windows.Forms.Form
6 |
7 | 'Form overrides dispose to clean up the component list.
8 | _
9 | Protected Overrides Sub Dispose(ByVal disposing As Boolean)
10 | Try
11 | If disposing AndAlso components IsNot Nothing Then
12 | components.Dispose()
13 | End If
14 | Finally
15 | MyBase.Dispose(disposing)
16 | End Try
17 | End Sub
18 |
19 | 'Required by the Windows Form Designer
20 | Private components As System.ComponentModel.IContainer
21 |
22 | 'NOTE: The following procedure is required by the Windows Form Designer
23 | 'It can be modified using the Windows Form Designer.
24 | 'Do not modify it using the code editor.
25 | _
26 | Private Sub InitializeComponent()
27 | Me.components = New System.ComponentModel.Container()
28 | Me.TxtOutput = New Net.Bertware.Controls.AdvancedRichTextBox(Me.components)
29 | Me.BtnClose = New System.Windows.Forms.Button()
30 | Me.BtnCopy = New System.Windows.Forms.Button()
31 | Me.BtnRefresh = New System.Windows.Forms.Button()
32 | Me.RightClickMenu = New System.Windows.Forms.ContextMenuStrip(Me.components)
33 | Me.BtnRightClickCopy = New System.Windows.Forms.ToolStripMenuItem()
34 | Me.RightClickMenu.SuspendLayout()
35 | Me.SuspendLayout()
36 | '
37 | 'TxtOutput
38 | '
39 | Me.TxtOutput.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
40 | Or System.Windows.Forms.AnchorStyles.Left) _
41 | Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
42 | Me.TxtOutput.Location = New System.Drawing.Point(12, 12)
43 | Me.TxtOutput.Name = "TxtOutput"
44 | Me.TxtOutput.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical
45 | Me.TxtOutput.Size = New System.Drawing.Size(852, 483)
46 | Me.TxtOutput.TabIndex = 0
47 | Me.TxtOutput.Text = lr("")
48 | '
49 | 'BtnClose
50 | '
51 | Me.BtnClose.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
52 | Me.BtnClose.Location = New System.Drawing.Point(789, 501)
53 | Me.BtnClose.Name = "BtnClose"
54 | Me.BtnClose.Size = New System.Drawing.Size(75, 23)
55 | Me.BtnClose.TabIndex = 1
56 | Me.BtnClose.Text = lr("Close")
57 | Me.BtnClose.UseVisualStyleBackColor = True
58 | '
59 | 'BtnCopy
60 | '
61 | Me.BtnCopy.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
62 | Me.BtnCopy.Location = New System.Drawing.Point(708, 501)
63 | Me.BtnCopy.Name = "BtnCopy"
64 | Me.BtnCopy.Size = New System.Drawing.Size(75, 23)
65 | Me.BtnCopy.TabIndex = 2
66 | Me.BtnCopy.Text = lr("Copy")
67 | Me.BtnCopy.UseVisualStyleBackColor = True
68 | '
69 | 'BtnRefresh
70 | '
71 | Me.BtnRefresh.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
72 | Me.BtnRefresh.Location = New System.Drawing.Point(627, 501)
73 | Me.BtnRefresh.Name = "BtnRefresh"
74 | Me.BtnRefresh.Size = New System.Drawing.Size(75, 23)
75 | Me.BtnRefresh.TabIndex = 3
76 | Me.BtnRefresh.Text = lr("Refresh")
77 | Me.BtnRefresh.UseVisualStyleBackColor = True
78 | '
79 | 'RightClickMenu
80 | '
81 | Me.RightClickMenu.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.BtnRightClickCopy})
82 | Me.RightClickMenu.Name = "RightClickMenu"
83 | Me.RightClickMenu.Size = New System.Drawing.Size(103, 26)
84 | '
85 | 'BtnRightClickCopy
86 | '
87 | Me.BtnRightClickCopy.Name = "BtnRightClickCopy"
88 | Me.BtnRightClickCopy.Size = New System.Drawing.Size(102, 22)
89 | Me.BtnRightClickCopy.Text = lr("Copy")
90 | '
91 | 'OutputBrowser
92 | '
93 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
94 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
95 | Me.ClientSize = New System.Drawing.Size(876, 534)
96 | Me.Controls.Add(Me.BtnRefresh)
97 | Me.Controls.Add(Me.BtnCopy)
98 | Me.Controls.Add(Me.BtnClose)
99 | Me.Controls.Add(Me.TxtOutput)
100 | Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
101 | Me.MaximizeBox = False
102 | Me.MinimizeBox = False
103 | Me.Name = "OutputBrowser"
104 | Me.Text = lr("Browse console output")
105 | Me.RightClickMenu.ResumeLayout(False)
106 | Me.ResumeLayout(False)
107 |
108 | End Sub
109 | Friend WithEvents TxtOutput As Net.Bertware.Controls.AdvancedRichTextBox
110 | Friend WithEvents BtnClose As System.Windows.Forms.Button
111 | Friend WithEvents BtnCopy As System.Windows.Forms.Button
112 | Friend WithEvents BtnRefresh As System.Windows.Forms.Button
113 | Friend WithEvents RightClickMenu As System.Windows.Forms.ContextMenuStrip
114 | Friend WithEvents BtnRightClickCopy As System.Windows.Forms.ToolStripMenuItem
115 | End Class
116 |
--------------------------------------------------------------------------------
/BukkitGUI/dll/Net.Bertware.Controls.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Net.Bertware.Controls
6 |
7 |
8 |
9 |
10 |
11 | Add an entry to the history of this textbox
12 |
13 | The text to be added
14 | The total history
15 |
16 |
17 |
18 | Add an entry
19 |
20 | The text content for this entry
21 |
22 |
23 |
24 | Get the current history
25 |
26 | A list (of string) with the current history entries
27 |
28 |
29 |
30 | Go up a level in the history
31 |
32 | The entry at this level
33 |
34 |
35 |
36 | Go down a level in the history
37 |
38 | The entry at this level
39 |
40 |
41 |
42 | Go to the given level in the history
43 |
44 | The level to read
45 | The entry at this level
46 |
47 |
48 |
49 | Returns the cached ResourceManager instance used by this class.
50 |
51 |
52 |
53 | Overrides the current thread's CurrentUICulture property for all
54 | resource lookups using this strongly typed resource class.
55 |
56 |
57 |
58 | A strongly-typed resource class, for looking up localized strings, etc.
59 |
60 |
61 |
62 | Slightly modificated RichttextBox class. Adds for example colored output and autoscroll
63 |
64 |
65 |
66 |
67 | The value that is displayed on the progress bar.
68 |
69 |
70 |
71 | The maximum value for the Value property.
72 |
73 |
74 |
75 | The minimum value for the Value property.
76 |
77 |
78 |
79 | The minimum value for the Value property.
80 |
81 |
82 |
83 | The color of the glow.
84 |
85 |
86 |
87 | The color of the highlights.
88 |
89 |
90 |
91 | The color of the background.
92 |
93 |
94 |
95 | Whether the glow is animated.
96 |
97 |
98 |
99 | The color of the glow.
100 |
101 |
102 |
103 | The color of the glow.
104 |
105 |
106 |
107 | Whether the glow is animated.
108 |
109 |
110 | When the Value property is changed.
111 |
112 |
113 | When the Value property is changed.
114 |
115 |
116 | When the MinValue property is changed.
117 |
118 |
119 | When the MinValue property is changed.
120 |
121 |
122 | When the MaxValue property is changed.
123 |
124 |
125 | When the MaxValue property is changed.
126 |
127 |
128 |
129 | Required designer variable.
130 |
131 |
132 |
133 | Clean up any resources being used.
134 |
135 | true if managed resources should be disposed; otherwise, false.
136 |
137 |
138 | Required method for Designer support - do not modify
139 | the contents of this method with the code editor.
140 |
141 |
142 |
143 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/LanguageInstaller.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | Imports System.IO
16 | Imports System.Reflection
17 | Imports System.Threading
18 | Imports Net.Bertware.BukkitGUI.Core
19 |
20 | Namespace forms
21 |
22 |
23 | Public Class LanguageInstaller
24 | Private ReadOnly _languages() As String =
25 | {"bulgarian", "danish", "dutch", "french", "german", "italian", "japanese", "korean", "polish", "romanian", "russian",
26 | "simplifiedChinese", "spanish", "traditionalChinese", "turkish"}
27 |
28 | Private Event LanguagesLoaded()
29 |
30 | Private Sub LanguageInstaller_Load(sender As Object, e As EventArgs) Handles MyBase.Load
31 | Dim t As New Thread(AddressOf GetLanguages)
32 | t.IsBackground = True
33 | t.Name = "LanguageInstaller_getlanguages"
34 | t.Start()
35 | End Sub
36 |
37 | Private Sub update_ui() Handles Me.LanguagesLoaded
38 | If Me.InvokeRequired Then
39 | Dim d As New ContextCallback(AddressOf update_ui)
40 | Me.Invoke(d, New Object())
41 | Else
42 | ALVLanguages.Items.Clear()
43 | If _languages Is Nothing Then Exit Sub
44 | For Each t As String In _languages
45 | Dim lvi As New ListViewItem({t})
46 | ALVLanguages.Items.Add(lvi)
47 | Next
48 | 'For Each t As Translation In _languages
49 | ' Dim lvi As New ListViewItem({t.language, t.version, t.translator, t.comment})
50 | ' ALVLanguages.Items.Add(lvi)
51 | 'Next
52 | End If
53 | End Sub
54 |
55 | Private Sub GetLanguages()
56 | RaiseEvent LanguagesLoaded()
57 | Exit Sub
58 |
59 | 'Dim result As String = downloadstring(translations_list)
60 | 'If result Is Nothing OrElse result = "" Then
61 | ' result = downloadstring(translations_list)
62 | ' If result Is Nothing OrElse result = "" Then Exit Sub
63 | 'End If
64 |
65 | 'Dim langxml As New fxml
66 | 'langxml.Owner = "LanguageInstaller"
67 | 'langxml.LoadXML(result)
68 | 'For Each xmle As XmlElement In langxml.GetElementsByName("language")
69 | ' Try
70 | ' Dim t As New Translation
71 | ' t.language = xmle.GetAttribute("name")
72 | ' t.translator = xmle.GetElementsByTagName("translator")(0).InnerText
73 | ' t.comment = xmle.GetElementsByTagName("comment")(0).InnerText
74 | ' t.version = xmle.GetElementsByTagName("version")(0).InnerText
75 | ' t.url = xmle.GetElementsByTagName("url")(0).InnerText
76 | ' languages.Add(t)
77 | ' Catch ex As Exception
78 | ' Log(loggingLevel.Severe, "LanguageInstaller", "Could not parse translation info", ex.Message)
79 | ' End Try
80 | 'Next
81 |
82 | 'RaiseEvent LanguagesLoaded()
83 | End Sub
84 |
85 | Private Sub BtnInstall_Click(sender As Object, e As EventArgs) Handles BtnInstall.Click
86 | If ALVLanguages.SelectedItems.Count < 1 Then Exit Sub
87 |
88 | Dim language As String = ALVLanguages.SelectedItems(0).SubItems(0).Text
89 | Log(livebug.loggingLevel.Fine, "LanguageInstaller", "Installing language: " & language)
90 |
91 |
92 | ' livebug.write(loggingLevel.Fine, "Common", "DLL requested:" & args.Name)
93 | Dim resourceName As [String] = "Net.Bertware.BukkitGUI." & New AssemblyName("lang_" & language).Name & ".xml"
94 | Using reader = New StreamReader(Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
95 | File.WriteAllText(GetLanguageFilePath(language), reader.ReadToEnd())
96 | End Using
97 |
98 |
99 | 'Dim t As Translation = Nothing
100 | 'For Each lang As Translation In languages
101 | ' If lang.language = language Then t = lang
102 | 'Next
103 |
104 | 'If t Is Nothing Then Exit Sub
105 |
106 | 'Log(loggingLevel.Fine, "LanguageInstaller", "Downloading language: " & t.url)
107 |
108 | 'Dim _
109 | ' fd As _
110 | ' New FileDownloader(t.url, LocalizationPath & "/" & t.language & ".xml",
111 | ' Lr("Installing language:") & " " & t.language)
112 | 'fd.ShowDialog()
113 |
114 | Me.DialogResult = DialogResult.OK
115 | Me.Close()
116 | End Sub
117 |
118 | Private Sub BtnCancel_Click(sender As Object, e As EventArgs) Handles BtnCancel.Click
119 | Me.DialogResult = DialogResult.Cancel
120 | Me.Close()
121 | End Sub
122 | End Class
123 |
124 | Class Translation
125 | Public Language As String
126 | Public Translator As String
127 | Public Version As String
128 | Public Url As String
129 | Public Comment As String
130 | End Class
131 | End Namespace
132 |
--------------------------------------------------------------------------------
/Language_generator/Language_generator.vbproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 |
7 |
8 |
9 |
10 | {E10C6289-45F0-4CAE-AFA9-2B682FB4AB65}
11 | WinExe
12 | Language_generator
13 | Language_generator
14 | 512
15 | WindowsForms
16 | v3.5
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | true
28 | full
29 | true
30 | true
31 | bin\Debug\
32 | Language_generator.xml
33 | 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
34 |
35 |
36 | pdbonly
37 | false
38 | true
39 | true
40 | bin\Release\
41 | Language_generator.xml
42 | 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
43 |
44 |
45 | On
46 |
47 |
48 | Binary
49 |
50 |
51 | Off
52 |
53 |
54 | On
55 |
56 |
57 | Language_generator.My.MyApplication
58 |
59 |
60 |
61 | .\Bertware.Controls.dll
62 | True
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 | Form1.vb
87 |
88 |
89 | Form
90 |
91 |
92 |
93 |
94 | True
95 | Application.myapp
96 |
97 |
98 | True
99 | True
100 | Resources.resx
101 |
102 |
103 | True
104 | Settings.settings
105 | True
106 |
107 |
108 |
109 |
110 | Form1.vb
111 |
112 |
113 | VbMyResourcesResXFileCodeGenerator
114 | Resources.Designer.vb
115 | My.Resources
116 | Designer
117 |
118 |
119 |
120 |
121 | MyApplicationCodeGenerator
122 | Application.Designer.vb
123 |
124 |
125 | SettingsSingleFileGenerator
126 | My
127 | Settings.Designer.vb
128 |
129 |
130 |
131 |
132 | PreserveNewest
133 |
134 |
135 |
136 |
143 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/FeedBackDialog.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/FileDownloader.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/PortForwarder.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/ServerStopDialog.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/LicenseAcceptDialog.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/BukkitGUI/forms/ServerSettingDialog.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/BukkitGUI/Utilities/compression.vb:
--------------------------------------------------------------------------------
1 | '============================================='''
2 | '
3 | ' This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 | ' If a copy of the MPL was not distributed with this file,
5 | ' you can obtain one at http://mozilla.org/MPL/2.0/.
6 | '
7 | ' Source and compiled files may only be redistributed if they comply with
8 | ' the mozilla MPL2 license, and may not be monetized in any way,
9 | ' including but not limited to selling the software or distributing it through ad-sponsored channels.
10 | '
11 | ' ©Bertware, visit http://bertware.net
12 | '
13 | '============================================='''
14 |
15 | 'Compression module, ported from beta
16 | 'NEEDS REVIEW
17 | Imports System.IO
18 | Imports ICSharpCode.SharpZipLib.Zip
19 | Imports Microsoft.VisualBasic.FileIO
20 | Imports Net.Bertware.BukkitGUI.Core
21 |
22 | Namespace Utilities
23 | '
24 | ' Compress and decompress zip files.
25 | '
26 | '
27 | Module compression
28 | '''
29 | ''' Compress the content of a directory to a zip file
30 | '''
31 | ''' The directory that should be compressed
32 | ''' The output file path
33 | '''
34 | '''
35 | Public Function compress(ByVal DirectoryToZip As String, ByVal TheZipFile As String) As Boolean
36 | ' Compress file (DirectoryToZip is source, ZipFile is output file)
37 | ' Example: compression("c:/Directory", "c:/Directory.zip")
38 |
39 | Try
40 |
41 | Dim i As Integer ' index Create file index
42 | Dim mylength As Integer ' length of index
43 |
44 | ' Get complete name of files to compress
45 | Dim filestozip() As String = Directory.GetFiles(DirectoryToZip, "*.*", IO.SearchOption.AllDirectories)
46 |
47 | ' mydirname : name of directory to compress
48 | Dim mydirname As String = New DirectoryInfo(DirectoryToZip).Name
49 |
50 | ' create zip stream
51 | Dim ZipStream As ZipOutputStream = New ZipOutputStream(File.Create(TheZipFile))
52 |
53 | ' For all files
54 | For i = 0 To UBound(filestozip)
55 |
56 | ' Open file and read
57 | Dim fs As FileStream = File.OpenRead(filestozip(i))
58 | mylength = fs.Length
59 |
60 | ' Tableau de byte, de la taille du fichier à lire
61 | Dim buffer As Byte() = New Byte(mylength) {}
62 |
63 | ' Read and close files
64 | fs.Read(buffer, 0, mylength)
65 | fs.Close()
66 |
67 | ' define entry in zip
68 | Dim entry As ZipEntry = New ZipEntry(mydirname & filestozip(i).Replace(DirectoryToZip, ""))
69 |
70 | ' Add new entry
71 | ZipStream.PutNextEntry(entry)
72 |
73 | ' Create in zip archive
74 | ZipStream.Write(buffer, 0, mylength)
75 |
76 | Next
77 |
78 | 'Close stream
79 | ZipStream.Finish()
80 | ZipStream.Close()
81 |
82 | Return True
83 | Catch ex As Exception
84 | Return False
85 | Log(livebug.loggingLevel.Severe, "Compression", "Error while compressing files!", ex.Message)
86 | End Try
87 | End Function
88 |
89 |
90 | '''
91 | ''' Decompress a zip compatible archive
92 | '''
93 | ''' the directory where the files should be decompressed
94 | ''' the zip file to decompress
95 | ''' true if success
96 | '''
97 | Public Function decompress(ByVal destinationDirectory As String, ByVal myzipfile As String) As Boolean
98 | 'Decompress zip archive in DestinationDirectory
99 | 'Example: decompression("c:/DossierResultat", "c:/Dossier.zip")
100 |
101 | Try
102 | ' Create zipstream
103 | Dim zipIStream As ZipInputStream = New ZipInputStream(File.OpenRead(myzipfile))
104 | Dim theEntry As ZipEntry
105 |
106 | ' For all entry's
107 | Do While (1)
108 |
109 | ' Read next entry
110 | theEntry = zipIStream.GetNextEntry()
111 |
112 | If theEntry Is Nothing Then Exit Do 'end when done
113 |
114 | ' check if file
115 | If theEntry.IsFile Then
116 |
117 | ' Define zipfile
118 | Dim myFile As New FileInfo(destinationDirectory & "/" & theEntry.Name)
119 |
120 | ' Create directory
121 | If Not FileSystem.DirectoryExists(myFile.DirectoryName) Then _
122 | Directory.CreateDirectory(myFile.DirectoryName)
123 |
124 | ' Create end file
125 | Dim fs As FileStream = New FileStream(myFile.FullName, FileMode.Create)
126 | Dim size As Integer = 2048
127 | Dim data As Byte() = New Byte(size) {}
128 | Do Until (size <= 0)
129 | size = zipIStream.Read(data, 0, data.Length)
130 | fs.Write(data, 0, size)
131 | Loop
132 | fs.Flush()
133 | fs.Close()
134 | End If
135 | Loop
136 |
137 | ' Close stream
138 | zipIStream.Close()
139 | Return True
140 | Catch ex As Exception
141 | Return False
142 | Log(loggingLevel.Severe, "Compression", "Error while decompressing files!", ex.Message)
143 | End Try
144 | End Function
145 | End Module
146 | End Namespace
--------------------------------------------------------------------------------