Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pending changes exported from your codespace #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ second tab: `cd bungee && sudo java -jar bungee.jar`
<br>
<br>
Now go to the ports area and forward (and make public) ports `25565` and `8081`
<br>
Your eaglercraft server is setup!
<br>ch
Your eaglercraft server is setup!
59 changes: 30 additions & 29 deletions bungee/config.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
server_connect_timeout: 5000
enforce_secure_profile: false
listeners:
- query_port: 25577
motd: '&1Another Bungee server'
tab_list: GLOBAL_PING
query_enabled: false
proxy_protocol: false
forced_hosts:
pvp.md-5.net: pvp
ping_passthrough: false
priorities:
- lobby
bind_local_address: false
host: 127.0.0.1:25577
max_players: 1
tab_size: 60
force_default_server: true
remote_ping_cache: -1
network_compression_threshold: 256
forge_support: true
player_limit: -1
log_pings: true
permissions:
default:
- bungeecord.command.server
Expand All @@ -27,24 +13,39 @@ permissions:
- bungeecord.command.ip
- bungeecord.command.reload
- bungeecord.command.kick
log_pings: true
connection_throttle_limit: 3
server_connect_timeout: 5000
timeout: 30000
player_limit: -1
prevent_proxy_connections: false
ip_forward: true
groups: {}
remote_ping_timeout: 5000
connection_throttle: 4000
log_commands: false
stats: 614623bd-e602-4a2e-b09d-0acb68d88c3e
network_compression_threshold: 256
online_mode: false
forge_support: true
disabled_commands:
- disabledcommandhere
servers:
lobby:
motd: '&1Just another Waterfall - Forced Host'
address: localhost:25565
restricted: false
listeners:
- query_port: 25577
motd: '&113javii'
tab_list: GLOBAL_PING
query_enabled: false
proxy_protocol: false
forced_hosts:
pvp.md-5.net: pvp
ping_passthrough: false
priorities:
- lobby
bind_local_address: false
host: 127.0.0.1:25577
max_players: 1
tab_size: 60
force_default_server: true
ip_forward: true
remote_ping_timeout: 5000
reject_transfers: false
remote_ping_cache: -1
connection_throttle: 4000
stats: 614623bd-e602-4a2e-b09d-0acb68d88c3e
connection_throttle_limit: 3
groups: {}
prevent_proxy_connections: false
Binary file added bungee/eaglercraft_auths.db
Binary file not shown.
Binary file added bungee/eaglercraft_skins_cache.db
Binary file not shown.
Binary file added bungee/logs/2025-01-02-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-03-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-03-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-04-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-05-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-05-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-05-3.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-05-4.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-06-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-06-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-08-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-09-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-09-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-09-3.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-10-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-10-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-10-3.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-10-4.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-13-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-13-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-13-3.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-13-4.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-14-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-14-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-14-3.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-14-4.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-14-5.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-14-6.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-15-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-15-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-15-3.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-15-4.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-15-5.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-15-6.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-16-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-16-2.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-16-3.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-17-1.log.gz
Binary file not shown.
Binary file added bungee/logs/2025-01-17-2.log.gz
Binary file not shown.
211 changes: 211 additions & 0 deletions bungee/logs/latest.log

Large diffs are not rendered by default.

Binary file added bungee/modules/cmd_alert.jar
Binary file not shown.
Binary file added bungee/modules/cmd_find.jar
Binary file not shown.
Binary file added bungee/modules/cmd_list.jar
Binary file not shown.
Binary file added bungee/modules/cmd_send.jar
Binary file not shown.
Binary file added bungee/modules/cmd_server.jar
Binary file not shown.
Binary file added bungee/modules/reconnect_yaml.jar
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions bungee/plugins/EaglercraftXBungee/ice_servers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
voice_servers_no_passwd:
- 'stun:stun.l.google.com:19302'
- 'stun:stun1.l.google.com:19302'
- 'stun:stun2.l.google.com:19302'
- 'stun:stun3.l.google.com:19302'
- 'stun:stun4.l.google.com:19302'
- 'stun:openrelay.metered.ca:80'
voice_servers_passwd:
openrelay1:
url: 'turn:openrelay.metered.ca:80'
username: 'openrelayproject'
password: 'openrelayproject'
openrelay2:
url: 'turn:openrelay.metered.ca:443'
username: 'openrelayproject'
password: 'openrelayproject'
openrelay3:
url: 'turn:openrelay.metered.ca:443?transport=tcp'
username: 'openrelayproject'
password: 'openrelayproject'
8 changes: 4 additions & 4 deletions bungee/plugins/EaglercraftXBungee/listeners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ listener_01:
redirect_legacy_clients_to: 'null'
server_icon: server-icon.png
server_motd:
- '&6An EaglercraftX server'
- '&6Solo pueden entrar sigmas'
allow_motd: true
allow_query: true
request_motd_cache:
cache_ttl: 7200
online_server_list_animation: false
cache_ttl: 7200op
online_server_list_animation: true
online_server_list_results: true
online_server_list_trending: true
online_server_list_portfolios: false
online_server_list_portfolios: true
http_server:
enabled: true
root: '../../../web'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Eaglercraft Server</title>
<style type="text/css">
body {
margin: 16px;
font-family: sans-serif;
}
</style>
</head>
<script type="text/javascript">
{% embed text `message_api_v1.js` %}
</script>
<script type="text/javascript">

// Open the channel, this can be any string
serverMessageAPI.openChannel("com.example.test_channel");

// Set the callback for when messages are recieved
serverMessageAPI.addEventListener("message", function(msg) {
var newElement = document.createElement("li");
if(msg.type === "binary") {
newElement.innerText = "[" + msg.channel + "][binary] ArrayBuffer(" + msg.data.byteLength + ")";
}else if(msg.type === "string") {
newElement.innerText = "[" + msg.channel + "][string] \"" + msg.data + "\"";
}
document.getElementById("messages_recieved").appendChild(newElement);
});

window.addEventListener("load", function() {
document.getElementById("message_send").addEventListener("click", function() {
var el = document.getElementById("message_contents");
var toSend = el.value.trim();
if(toSend.length > 0) {

// Send the message, can be a string, ArrayBuffer, Int8Array, or Uint8Array
serverMessageAPI.send("com.example.test_channel", toSend);

el.value = "";
}
});
});

/*
* // Add this event listener to your bungee plugin:
*
* @EventHandler
* public void testWebViewMessageAPI(EaglercraftWebViewMessageEvent event) {
* if(event.getType() == MessageType.STRING && event.getChannelName().equals("com.example.test_channel")) {
* event.sendResponse(event.getAsString());
* }
* }
*
*/

</script>
<body>
<h1>Message API Test</h1>
<h4>Server Version: {% global `plugin_name` %} {% global `plugin_version` %}</h4>
<h4>Make sure you enable javascript in "pause_menu.yml"</h4>
<p>Message: <input type="text" id="message_contents" placeholder="eagler"> <button id="message_send">Send</button></p>
<p>Recieved from server:</p>
<ul id="messages_recieved"></ul>
</body>
</html>
63 changes: 63 additions & 0 deletions bungee/plugins/EaglercraftXBungee/pause_menu/message_api_v1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
"use strict";
window.serverMessageAPI = (function() {
var channelOpen = null;
var messageHandlers = [];
window.addEventListener("message", function(evt) {
var dat = evt.data;
if((typeof dat === "object") && dat.ver === 1 && (typeof dat.type === "string") && (typeof dat.channel === "string") && dat.channel.length > 0) {
for(var i = 0; i < messageHandlers.length; ++i) {
messageHandlers[i](dat);
}
}
});
var ServerMessageAPIError = function(message) {
this.name = "ServerMessageAPIError";
this.message = message;
};
ServerMessageAPIError.prototype = Error.prototype;
var openCh = function(chName) {
if(channelOpen !== null) throw new ServerMessageAPIError("Cannot open multiple channels, this feature is not supported!");
channelOpen = chName;
window.parent.postMessage({ver:1,channel:chName,open:true}, "*");
};
var closeCh = function(chName) {
if(channelOpen !== chName) throw new ServerMessageAPIError("Cannot close channel \"" + chName + "\", that channel is not open!");
channelOpen = null;
window.parent.postMessage({ver:1,channel:chName,open:false}, "*");
};
var addListener = function(name, handler) {
if(name === "message") messageHandlers.push(handler);
};
var remListener = function(name, handler) {
if(name === "message") messageHandlers = messageHandlers.filter(function(o) { return o !== handler; });
};
var fixTypedArray = function(arr) {
if(arr.length === arr.buffer.byteLength) {
return arr.buffer;
}else {
var toSend = (data instanceof Uint8Array) ? new Uint8Array(arr.length) : new Int8Array(arr.length);
toSend.set(arr);
return toSend.buffer;
}
};
var send = function(chName, data) {
if(channelOpen !== chName) throw new ServerMessageAPIError("Cannot send message on channel \"" + chName + "\", that channel is not open!");
if(typeof data === "string") {
window.parent.postMessage({ver:1,channel:chName,data:data}, "*");
}else if(data instanceof ArrayBuffer) {
window.parent.postMessage({ver:1,channel:chName,data:data}, "*");
}else if((data instanceof Uint8Array) || (data instanceof Int8Array)) {
window.parent.postMessage({ver:1,channel:chName,data:fixTypedArray(data)}, "*");
}else {
throw new ServerMessageAPIError("Only strings, ArrayBuffers, Uint8Arrays, and Int8Arrays can be sent with this function!");
}
};
return {
ServerMessageAPIError: ServerMessageAPIError,
openChannel: openCh,
closeChannel: closeCh,
addEventListener: addListener,
removeEventListener: remListener,
send: send
};
})();
43 changes: 43 additions & 0 deletions bungee/plugins/EaglercraftXBungee/pause_menu/pause_menu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
enable_custom_pause_menu: false
server_info_button:
enable_button: true
button_text: 'Server Info'
button_mode_open_new_tab: false
server_info_embed_url: ''
button_mode_embed_file: true
server_info_embed_file: 'server_info.html'
server_info_embed_screen_title: 'Server Info'
server_info_embed_send_chunk_rate: 1
server_info_embed_send_chunk_size: 24576
enable_template_macros: true
server_info_embed_template_globals:
example_global: 'eagler'
allow_embed_template_eval_macro: false
enable_webview_javascript: false
enable_webview_message_api: false
enable_webview_strict_csp: true
discord_button:
enable_button: true
button_text: 'Discord'
button_url: 'https://invite url here'
custom_images:
icon_title_L: ''
icon_title_R: ''
icon_backToGame_L: ''
icon_backToGame_R: ''
icon_achievements_L: ''
icon_achievements_R: ''
icon_statistics_L: ''
icon_statistics_R: ''
icon_serverInfo_L: ''
icon_serverInfo_R: ''
icon_options_L: ''
icon_options_R: ''
icon_discord_L: ''
icon_discord_R: ''
icon_disconnect_L: ''
icon_disconnect_R: ''
icon_background_pause: 'test_image.png'
icon_background_all: 'test_image.png'
icon_watermark_pause: ''
icon_watermark_all: ''
30 changes: 30 additions & 0 deletions bungee/plugins/EaglercraftXBungee/pause_menu/server_info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Eaglercraft Server</title>
<style type="text/css">
body {
margin: 16px;
font-family: sans-serif;
}
</style>
</head>
<body>

<h1>Hello World</h1>

{% htmlescape on %}
<p>Server Name: {% global `server_name` %}</p>
<p>Using: {% global `plugin_name` %} {% global `plugin_version` %}</p>
<p>JVM: {% property `java.vm.name` `(unknown)` %} ({% property `java.vm.info` `null` %}) {% property `java.vm.vendor` `(unknown)` %}</p>
{% htmlescape off %}

<p><img src="data:image/png;base64,{% embed base64 `test_image.png` %}" /></p>

<!-- Note: JPEGs are recommended for larger images to reduce their size -->
<!-- <p><img src="data:image/jpeg;base64,(% embed base64 `large_image.jpg` %)" /></p> -->

</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion bungee/plugins/EaglercraftXBungee/settings.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server_name: 'EaglercraftXBungee Server'
server_name: '13javii world'
server_uuid: 85284b1b-0fcc-48f6-af75-d02360f59775
websocket_connection_timeout: 15000
websocket_handshake_timeout: 5000
Expand Down
9 changes: 9 additions & 0 deletions bungee/plugins/EaglercraftXBungee/updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
block_all_client_updates: false
discard_login_packet_certs: false
cert_packet_data_rate_limit: 524288
enable_eagcert_folder: true
download_latest_certs: true
download_certs_from:
- 'https://eaglercraft.com/backup.cert'
- 'https://deev.is/eagler/backup.cert'
check_for_update_every: 28800
1 change: 1 addition & 0 deletions server/banned-ips.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
18 changes: 18 additions & 0 deletions server/banned-players.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"uuid": "7a8635f9-cbd2-3bca-9a18-4e81658c5d41",
"name": "",
"created": "2025-01-15 07:52:43 +0000",
"source": "Dani_03iq",
"expires": "forever",
"reason": "Banned by an operator."
},
{
"uuid": "6c137f8a-f57e-3176-a96c-8340f9d830cd",
"name": "s",
"created": "2025-01-15 10:00:04 +0000",
"source": "Dani_03iq",
"expires": "forever",
"reason": "Banned by an operator."
}
]
Loading