old_contents: exports.commands = {
  clearall: function (target, room, user) {
  		if (!this.can('declare')) return false;
  		if (room.battle) return this.sendReply("You cannot clearall in battle rooms.");
  
  		clearRoom(room);
  	},
  
  	gclearall: 'globalclearall',
  	globalclearall: function (target, room, user) {
  		if (!this.can('gdeclare')) return false;
  
  		for (let u in Users.users) {
  			Users.users[u].popup("All rooms are being clear.");
  		}
  
  		for (let r in Rooms.rooms) {
  			clearRoom(Rooms.rooms[r]);
  		}
  	},
  }
  
new_contents: exports.commands = {
  clearall: function (target, room, user) {
  		if (!this.can('declare')) return false;
  		if (room.battle) return this.sendReply("You cannot clearall in battle rooms.");
  
  		clearRoom(room);
  	},
  
  	gclearall: 'globalclearall',
  	globalclearall: function (target, room, user) {
  		if (!this.can('gdeclare')) return false;
  
  		for (var u in Users.users) {
  			Users.users[u].popup("All rooms are being clear.");
  		}
  
  		for (var r in Rooms.rooms) {
  			clearRoom(Rooms.rooms[r]);
  		}
  	},
  }
  
subject: Update clearall.js