@@ -88,7 +88,7 @@ class Tellraw {
 | 
				
			|||||||
    json() {
 | 
					    json() {
 | 
				
			||||||
        if (!this.cache) {
 | 
					        if (!this.cache) {
 | 
				
			||||||
            var temp = [];
 | 
					            var temp = [];
 | 
				
			||||||
            this.parts.forEach(function(t) {
 | 
					            this.parts.forEach(t => {
 | 
				
			||||||
                temp.push(t.convert());
 | 
					                temp.push(t.convert());
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
            this.cache = JSON.stringify(temp);
 | 
					            this.cache = JSON.stringify(temp);
 | 
				
			||||||
@@ -96,6 +96,14 @@ class Tellraw {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        return this.cache;
 | 
					        return this.cache;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    string() {
 | 
				
			||||||
 | 
					        var temp = '';
 | 
				
			||||||
 | 
					        this.parts.forEach(t => {
 | 
				
			||||||
 | 
					            temp += t.text
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        return temp;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default Tellraw
 | 
					export default Tellraw
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user