Просмотр исходного кода

2.0.5

* [~] Look and feel will now be the same on Caali's and Pinkie's proxy
TeraProxy лет назад: 8
Родитель
Сommit
ecb8230deb
3 измененных файлов с 12 добавлено и 9 удалено
  1. 2 0
      README.md
  2. 8 7
      index.js
  3. 2 2
      manifest.json

+ 2 - 0
README.md

@@ -39,6 +39,8 @@ Based on true-everful-nostrum by Caali https://github.com/caali-hackerman
 ## Changelog
 <details>
 
+### 2.0.5
+* [~] Look and feel will now be the same on Caali's and Pinkie's proxy
 ### 2.0.4
 * [-] Removed support for patch versions < 75
 ### 2.0.3

+ 8 - 7
index.js

@@ -1,4 +1,4 @@
-// Version 2.0.4
+// Version 2.0.5
 // Based on true-everful-nostrum by Pinkie Pie https://github.com/pinkipi
 // Based on true-everful-nostrum by Caali https://github.com/caali-hackerman
 
@@ -29,13 +29,14 @@ module.exports = function Essentials(mod) {
 		enabled = true,
 		abnormalities = {},
 		counter = 0,
-		resetcount = null
+		resetcount = null,
+		niceName = mod.proxyAuthor !== 'caali' ? '[Essentials] ' : ''
 
 	// ############# //
 	// ### Hooks ### //
 	// ############# //
 
-	mod.game.on('enter_game', () => { setTimeout(start, 5000) })
+	mod.game.on('enter_game', () => { setTimeout(start, 6000) })
 	mod.game.on('leave_game', () => {
 		stop()
 		abnormalities = {}
@@ -61,7 +62,7 @@ module.exports = function Essentials(mod) {
 
 	if(mod.settings.log) {
 		mod.hook('C_USE_ITEM', 3, event => {
-			mod.command.message('Used item ID: ' + event.id)
+			mod.command.message(niceName + 'Used item ID: ' + event.id)
 		})
 	}
 
@@ -116,8 +117,8 @@ module.exports = function Essentials(mod) {
 		if(counter > 5) {
 			let missing = (item == mod.settings.nostrum) ? 'Nostrums' : 'Crystalbinds'
 			enabled = false
-			mod.command.message('You ran out of ' + missing + ' (ID: ' + item + '). Essentials has been disabled. Please restock and enable the module again by typing "essentials" in this chat.')
-			console.log('You ran out of ' + missing + ' (ID: ' + item + '). Essentials has been disabled. Please restock and enable the module again by typing "essentials" in proxy chat.')
+			mod.command.message(niceName + 'You ran out of ' + missing + ' (ID: ' + item + '). Essentials has been disabled. Please restock and enable the module again by typing "essentials" in this chat.')
+			console.log('[Essentials] You ran out of ' + missing + ' (ID: ' + item + '). Essentials has been disabled. Please restock and enable the module again by typing "essentials" in proxy chat.')
 			return
 		}
 		if(!resetcount) resetcount = setTimeout(() => { counter = 0; resetcount = null }, 15000)
@@ -155,7 +156,7 @@ module.exports = function Essentials(mod) {
 
 	mod.command.add('essentials', () => {
 		enabled = !enabled
-		mod.command.message('Essentials ' + (enabled ? '<font color="#56B4E9">enabled</font>' : '<font color="#E69F00">disabled</font>'))
+		mod.command.message(niceName + 'Essentials ' + (enabled ? '<font color="#56B4E9">enabled</font>' : '<font color="#E69F00">disabled</font>'))
 		console.log('Essentials ' + (enabled ? 'enabled' : 'disabled'))
 	})
 }

+ 2 - 2
manifest.json

@@ -1,8 +1,8 @@
 {
 	"files": {
 		"LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
-		"README.md": "5c25c3729ef010cd2572827bcea21432fa16712ffd0bf64db7aa167d2c40b689",
-		"index.js": "a914a20cd7fb73d453a315ad1c36805268bc044c42ee18198fb326596513170a",
+		"README.md": "5536df20503ef5e3c25b9f8ecb5ff2602a02b38950f837354338c62b81c07e2f",
+		"index.js": "f795a649eebbe4a0c7bd1c6bfc8f68be6749b2e2b2255078e4785b0b60f1306d",
 		"module.json": "ff65da8b58525c2468a904b0c5cda7490b98d395dd352dcc12bf58ca67faf3cb",
 		"settings_migrator.js": "d06d1adc3c700cb22392e8921a6e3b99302ae536f46bc3da200311eee1e8141d"
 	},